You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not something I intend to pursue myself, so closing in favor of #47.
A procedural macro that has tokens that Syn failed to parse as an expression can trigger an error message from the compiler against that input by expanding to:
macro_rules! assert_expr {($e:expr) => {
compile_error!{"unexpectedly succeeded"}};}assert_expr!{/* tokens from the caller */}
We should have a method of providing very nice error messages about Rust code, ideally using
proc_macro
itself with a stable interfaceThe text was updated successfully, but these errors were encountered: