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
#[allow(non_camel_case_types)] only works if applied to the whole enum. If applied to a variant, it does nothing.
#[allow(non_camel_case_types)]
enum A { #[allow(non_camel_case_types)] B_B }
It should either suppress the warning for that variant or give an error or warning that this directive can't be applied in this context.
The text was updated successfully, but these errors were encountered:
Rollup merge of rust-lang#39813 - sanxiyn:non-camel-case-variant, r=p…
3d203c0
…etrochenkov Use check_variant for non_camel_case_types lint This way we automatically consider lint attributes. Fix rust-lang#38452.
4a919cb
Understand. As a workaround, I've just suppress the warnings for the module.
#![allow(non_camel_case_types)] pub mod gen_pages;
Sorry, something went wrong.
No branches or pull requests
#[allow(non_camel_case_types)]
only works if applied to the whole enum. If applied to a variant, it does nothing.It should either suppress the warning for that variant or give an error or warning that this directive can't be applied in this context.
The text was updated successfully, but these errors were encountered: