We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#![feature(macro_rules)] macro_rules! foo { () => { ($e) } } foo!{}
macro-variable.rs:3:28: 3:29 error: unknown macro variable `e` macro-variable.rs:3 macro_rules! foo { () => { ($e) } } ^
and if the RHS of the macro is changed to just => { $e }
=> { $e }
macro-variable.rs:1:1: 1:1 error: unknown macro variable `e` macro-variable.rs:1 #![feature(macro_rules)] ^
Preferably this would put the error snake under the whole $... expression too.
$...
The text was updated successfully, but these errors were encountered:
Cleanup and followup to PR rust-lang#17830: parsing changes
d85c017
Prevents breaking down `$name` tokens into separate `$` and `name`. Reports unknown macro variables. Fixes rust-lang#18775 Fixes rust-lang#18839 Fixes rust-lang#15640
52df822
Successfully merging a pull request may close this issue.
and if the RHS of the macro is changed to just
=> { $e }
Preferably this would put the error snake under the whole
$...
expression too.The text was updated successfully, but these errors were encountered: