We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
The warning message of cast_possible_truncation incorrectly refers to cast_precision_loss.
Example code:
#[warn(clippy::cast_possible_truncation)] #[allow(clippy::cast_precision_loss)] fn main() { let x: u16 = 0; println!("{}", x as u8); }
The warning message contains the line:
= help: if this is intentional allow the lint with `#[allow(clippy::cast_precision_loss)]` ...
This message is produced by this line of code:
rust-clippy/clippy_lints/src/casts/cast_possible_truncation.rs
Line 171 in 0f75581
The text was updated successfully, but these errors were encountered:
d880cae
Successfully merging a pull request may close this issue.
The warning message of cast_possible_truncation incorrectly refers to cast_precision_loss.
Example code:
The warning message contains the line:
This message is produced by this line of code:
rust-clippy/clippy_lints/src/casts/cast_possible_truncation.rs
Line 171 in 0f75581
The text was updated successfully, but these errors were encountered: