]> git.lizzy.rs Git - rust.git/blob - tests/ui/allow_attributes_without_reason.stderr
Add lint to detect `allow` attributes without reason
[rust.git] / tests / ui / allow_attributes_without_reason.stderr
1 error: `allow` attribute without specifying a reason
2   --> $DIR/allow_attributes_without_reason.rs:5:1
3    |
4 LL | #[allow(dead_code)]
5    | ^^^^^^^^^^^^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/allow_attributes_without_reason.rs:2:9
9    |
10 LL | #![deny(clippy::allow_attributes_without_reason)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = help: try adding a reason at the end with `, reason = ".."`
13
14 error: `allow` attribute without specifying a reason
15   --> $DIR/allow_attributes_without_reason.rs:6:1
16    |
17 LL | #[allow(dead_code, deprecated)]
18    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19    |
20    = help: try adding a reason at the end with `, reason = ".."`
21
22 error: aborting due to 2 previous errors
23