]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/allow_attributes_without_reason.txt
Auto merge of #104673 - matthiaskrgr:rollup-85f65ov, r=matthiaskrgr
[rust.git] / src / tools / clippy / src / docs / allow_attributes_without_reason.txt
1 ### What it does
2 Checks for attributes that allow lints without a reason.
3
4 (This requires the `lint_reasons` feature)
5
6 ### Why is this bad?
7 Allowing a lint should always have a reason. This reason should be documented to
8 ensure that others understand the reasoning
9
10 ### Example
11 ```
12 #![feature(lint_reasons)]
13
14 #![allow(clippy::some_lint)]
15 ```
16
17 Use instead:
18 ```
19 #![feature(lint_reasons)]
20
21 #![allow(clippy::some_lint, reason = "False positive rust-lang/rust-clippy#1002020")]
22 ```