diff options
| author | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2023-09-29 03:08:34 +0200 |
|---|---|---|
| committer | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2023-09-29 03:08:34 +0200 |
| commit | ad5653b296e8b3a001f15a3c02c5b17de8d13d57 (patch) | |
| tree | 7c64c9a4f621c4bdda44e4d0621938f547723546 | |
| parent | 91997a4df416a0d058853f353de5e4648089dbb8 (diff) | |
| download | rust-ad5653b296e8b3a001f15a3c02c5b17de8d13d57.tar.gz rust-ad5653b296e8b3a001f15a3c02c5b17de8d13d57.zip | |
Add missing lint description headers
| -rw-r--r-- | clippy_lints/src/allow_attributes.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/clippy_lints/src/allow_attributes.rs b/clippy_lints/src/allow_attributes.rs index e1ef514edfd..e3f4cf79d31 100644 --- a/clippy_lints/src/allow_attributes.rs +++ b/clippy_lints/src/allow_attributes.rs @@ -8,6 +8,7 @@ use rustc_middle::lint::in_external_macro; use rustc_session::{declare_lint_pass, declare_tool_lint}; declare_clippy_lint! { + /// ### What it does /// Checks for usage of the `#[allow]` attribute and suggests replacing it with /// the `#[expect]` (See [RFC 2383](https://rust-lang.github.io/rfcs/2383-lint-reasons.html)) /// @@ -19,7 +20,6 @@ declare_clippy_lint! { /// (`#![allow]`) are usually used to enable or disable lints on a global scale. /// /// ### Why is this bad? - /// /// `#[expect]` attributes suppress the lint emission, but emit a warning, if /// the expectation is unfulfilled. This can be useful to be notified when the /// lint is no longer triggered. diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index e7fcef9e9de..7b743382fa1 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -3368,6 +3368,7 @@ declare_clippy_lint! { } declare_clippy_lint! { + /// ### What it does /// Looks for calls to [`Stdin::read_line`] to read a line from the standard input /// into a string, then later attempting to parse this string into a type without first trimming it, which will /// always fail because the string has a trailing newline in it. |
