Open
Description
I tried this code:
#[allow(uncommon_codepoints)]
pub mod π {
}
I expected to see this happen: warning-free compilation
Instead, this happened:
warning: allow(uncommon_codepoints) is ignored unless specified at crate level
--> src/lib.rs:1:9
|
1 | #[allow(uncommon_codepoints)]
| ^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_attributes)]` on by default
warning: identifier contains uncommon Unicode codepoints
--> src/lib.rs:2:9
|
2 | pub mod π {
| ^
|
= note: `#[warn(uncommon_codepoints)]` on by default
warning: allow(uncommon_codepoints) is ignored unless specified at crate level
--> src/lib.rs:1:9
|
1 | #[allow(uncommon_codepoints)]
| ^^^^^^^^^^^^^^^^^^^
Meta
Tested on 1.53 stable and 1.55.0-nightly (2021-07-01 7100b31)