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
cc #8092
macro_rules! enum_from_u32 { (pub enum $name:ident { $($(#[$var_attr:meta])* $variant:ident,)* }) => { pub enum $name { $($variant,)* } impl $name {} } } macro_rules! language_item_table { ( $( $variant:ident )* ) => { enum_from_u32! { pub enum LangItem { $( #[doc = concat!("The `", "bla", "` lang item.")] /// $variant, )* } } } } language_item_table! { Bool }
Results in:
pub enum$name{} impl$name{}
...which is parsed as a name! macro invocation, causing spurious "unresolved macro call" diagnostics
name!
The text was updated successfully, but these errors were encountered:
c9ca6a1
edwin0cheng
Successfully merging a pull request may close this issue.
cc #8092
Results in:
...which is parsed as a
name!
macro invocation, causing spurious "unresolved macro call" diagnosticsThe text was updated successfully, but these errors were encountered: