File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use rustc_middle::lint::in_external_macro;
8
8
use rustc_session:: { declare_lint_pass, declare_tool_lint} ;
9
9
10
10
declare_clippy_lint ! {
11
+ /// ### What it does
11
12
/// Checks for usage of the `#[allow]` attribute and suggests replacing it with
12
13
/// the `#[expect]` (See [RFC 2383](https://rust-lang.github.io/rfcs/2383-lint-reasons.html))
13
14
///
@@ -19,7 +20,6 @@ declare_clippy_lint! {
19
20
/// (`#![allow]`) are usually used to enable or disable lints on a global scale.
20
21
///
21
22
/// ### Why is this bad?
22
- ///
23
23
/// `#[expect]` attributes suppress the lint emission, but emit a warning, if
24
24
/// the expectation is unfulfilled. This can be useful to be notified when the
25
25
/// lint is no longer triggered.
Original file line number Diff line number Diff line change @@ -3368,6 +3368,7 @@ declare_clippy_lint! {
3368
3368
}
3369
3369
3370
3370
declare_clippy_lint ! {
3371
+ /// ### What it does
3371
3372
/// Looks for calls to [`Stdin::read_line`] to read a line from the standard input
3372
3373
/// into a string, then later attempting to parse this string into a type without first trimming it, which will
3373
3374
/// always fail because the string has a trailing newline in it.
You can’t perform that action at this time.
0 commit comments