mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
56 lines
1.8 KiB
Text
56 lines
1.8 KiB
Text
error: `allow` attribute without specifying a reason
|
|
--> tests/ui/allow_attributes_without_reason.rs:3:1
|
|
|
|
|
LL | #![allow(unfulfilled_lint_expectations, clippy::duplicated_attributes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
note: the lint level is defined here
|
|
--> tests/ui/allow_attributes_without_reason.rs:2:9
|
|
|
|
|
LL | #![deny(clippy::allow_attributes_without_reason)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `allow` attribute without specifying a reason
|
|
--> tests/ui/allow_attributes_without_reason.rs:9:1
|
|
|
|
|
LL | #[allow(dead_code)]
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
|
|
error: `allow` attribute without specifying a reason
|
|
--> tests/ui/allow_attributes_without_reason.rs:10:1
|
|
|
|
|
LL | #[allow(dead_code, deprecated)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
|
|
error: `expect` attribute without specifying a reason
|
|
--> tests/ui/allow_attributes_without_reason.rs:11:1
|
|
|
|
|
LL | #[expect(dead_code)]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
|
|
error: `allow` attribute without specifying a reason
|
|
--> tests/ui/allow_attributes_without_reason.rs:47:5
|
|
|
|
|
LL | #[allow(unused)]
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
|
|
error: `allow` attribute without specifying a reason
|
|
--> tests/ui/allow_attributes_without_reason.rs:47:5
|
|
|
|
|
LL | #[allow(unused)]
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: aborting due to 6 previous errors
|
|
|