2022-03-14 11:02:53 +00:00
|
|
|
error: `allow` attribute without specifying a reason
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/allow_attributes_without_reason.rs:3:1
|
2022-03-14 11:02:53 +00:00
|
|
|
|
|
2024-03-21 21:20:40 +00:00
|
|
|
LL | #![allow(unfulfilled_lint_expectations, clippy::duplicated_attributes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-03-14 11:02:53 +00:00
|
|
|
|
|
2022-09-22 16:04:22 +00:00
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
2022-03-14 11:02:53 +00:00
|
|
|
note: the lint level is defined here
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/allow_attributes_without_reason.rs:2:9
|
2022-03-14 11:02:53 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::allow_attributes_without_reason)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `allow` attribute without specifying a reason
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/allow_attributes_without_reason.rs:9:1
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | #[allow(dead_code)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
|
|
|
|
|
|
error: `allow` attribute without specifying a reason
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/allow_attributes_without_reason.rs:10:1
|
2022-03-14 11:02:53 +00:00
|
|
|
|
|
|
|
|
LL | #[allow(dead_code, deprecated)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
|
|
|
2023-07-02 12:35:19 +00:00
|
|
|
error: `expect` attribute without specifying a reason
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/allow_attributes_without_reason.rs:11:1
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | #[expect(dead_code)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
|
|
|
2024-02-10 22:31:36 +00:00
|
|
|
error: `allow` attribute without specifying a reason
|
2024-08-24 17:43:34 +00:00
|
|
|
--> tests/ui/allow_attributes_without_reason.rs:46:5
|
2024-02-10 22:31:36 +00:00
|
|
|
|
|
|
|
|
LL | #[allow(unused)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
|
|
|
|
|
|
error: `allow` attribute without specifying a reason
|
2024-08-24 17:43:34 +00:00
|
|
|
--> tests/ui/allow_attributes_without_reason.rs:46:5
|
2024-02-10 22:31:36 +00:00
|
|
|
|
|
|
|
|
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
|
2022-03-14 11:02:53 +00:00
|
|
|
|