proc-macro-hack
proc-macro-hack copied to clipboard
Procedural macros in expression position
Currently, `only_hack_old_rustc` must be manually enabled at the definition site. However, any crates that add a dependency on `proc-macro-hack` (because they want to support older versions of `rustc`) probably want...
Specifically, 0.5.0 through 0.5.6 all fail with a `-Z minimal-versions` lockfile. 0.5.7 works, and 0.5.9 is the first 0.5 series version with a tag and using syn/quote 1.0. notes Interestingly,...
Rust macro_rules macros can be expanded in pattern position: ```rust macro_rules! zero { () => { 0 } } fn main() { if let zero!() = 0 {} } ```...
Nested macro with attribute `internal_macro_calls` requires increasing in case of nested macro calls
I'm very sorry to worry you again, but the problem with nested macros still exists. For now, there's no way to invoke nested macro in nested macro without increasing `internal_macro_calls`....