Allow non camel case macro names?

#[allow(non_camel_case_types)]
macro_rules! Foo! { ... }

IntelliJ still highlights this as a warning. I purposely want Foo! instead of foo! because this particular macro expands to something meant to be used as a Type signature.

Is there a way to tell say "hey, for this particular Macro, it is okay to have Uppercase" ?

The compiler doesn't emit any warning here. If it's an intellij specific error maybe there're some settings for it?

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b0b1edadbeb2c6e21636dba36a693b1b

4 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.