File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 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;
88use rustc_session:: { declare_lint_pass, declare_tool_lint} ;
99
1010declare_clippy_lint ! {
11+ /// ### What it does
1112 /// Checks for usage of the `#[allow]` attribute and suggests replacing it with
1213 /// the `#[expect]` (See [RFC 2383](https://rust-lang.github.io/rfcs/2383-lint-reasons.html))
1314 ///
@@ -19,7 +20,6 @@ declare_clippy_lint! {
1920 /// (`#![allow]`) are usually used to enable or disable lints on a global scale.
2021 ///
2122 /// ### Why is this bad?
22- ///
2323 /// `#[expect]` attributes suppress the lint emission, but emit a warning, if
2424 /// the expectation is unfulfilled. This can be useful to be notified when the
2525 /// lint is no longer triggered.
Original file line number Diff line number Diff line change @@ -3368,6 +3368,7 @@ declare_clippy_lint! {
33683368}
33693369
33703370declare_clippy_lint ! {
3371+ /// ### What it does
33713372 /// Looks for calls to [`Stdin::read_line`] to read a line from the standard input
33723373 /// into a string, then later attempting to parse this string into a type without first trimming it, which will
33733374 /// always fail because the string has a trailing newline in it.
You can’t perform that action at this time.
0 commit comments