mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
e0c626fbbc
Prevent multiple 'ignored unless specified at crate level' lints. The multiplication happens because we run the same lint three times: * In BuiltinCombinedEarlyLintPass * In BuiltinCombinedPreExpansionLintPass * In shallow_lint_levels_on Only run the lint one time by checking the `lint_added_lints` bool.
27 lines
813 B
Plaintext
27 lines
813 B
Plaintext
error: allow(uncommon_codepoints) is ignored unless specified at crate level
|
|
--> $DIR/crate_level_only_lint.rs:4:10
|
|
|
|
|
LL | #![allow(uncommon_codepoints)]
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/crate_level_only_lint.rs:1:30
|
|
|
|
|
LL | #![deny(uncommon_codepoints, unused_attributes)]
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: allow(uncommon_codepoints) is ignored unless specified at crate level
|
|
--> $DIR/crate_level_only_lint.rs:7:9
|
|
|
|
|
LL | #[allow(uncommon_codepoints)]
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: allow(uncommon_codepoints) is ignored unless specified at crate level
|
|
--> $DIR/crate_level_only_lint.rs:13:9
|
|
|
|
|
LL | #[allow(uncommon_codepoints)]
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|