Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ad5653b

Browse files
committed
Add missing lint description headers
1 parent 91997a4 commit ad5653b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clippy_lints/src/allow_attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use rustc_middle::lint::in_external_macro;
88
use rustc_session::{declare_lint_pass, declare_tool_lint};
99

1010
declare_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.

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3368,6 +3368,7 @@ declare_clippy_lint! {
33683368
}
33693369

33703370
declare_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.

0 commit comments

Comments
 (0)