Skip to content

improve lint doc text #143675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions compiler/rustc_lint/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ declare_lint! {
}

declare_lint! {
/// The `overflowing_literals` lint detects literal out of range for its
/// type.
/// The `overflowing_literals` lint detects literals out of range for their type.
///
/// ### Example
///
Expand All @@ -72,9 +71,9 @@ declare_lint! {
///
/// ### Explanation
///
/// It is usually a mistake to use a literal that overflows the type where
/// it is used. Either use a literal that is within range, or change the
/// type to be within the range of the literal.
/// It is usually a mistake to use a literal that overflows its type
/// Change either the literal or its type such that the literal is
/// within the range of its type.
OVERFLOWING_LITERALS,
Deny,
"literal out of range for its type"
Expand Down
Loading