Skip to content

Commit 67a83ff

Browse files
committed
Auto merge of #11582 - DaniPopes:missing-headers, r=xFrednet
Add missing lint description headers Discovered in https://github.com/rust-lang/rust-analyzer/pull/15680/files#diff-7cb229b5139c72b6c230e3c195be375724c92226421fd57d5cf08872503e8c27L214-R226 changelog: none
2 parents d38fa1a + ad5653b commit 67a83ff

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)