Closed
Description
Run Clippy over this code and you will see a link to cast_sign_loss
but not to cast_possible_wrap
:
#![warn(clippy::pedantic)]
fn main() {
let x: i64 = 1;
let _ = x as u64; // warning with link to `cast_sign_loss`
let y: u64 = 1;
let _: i64 = y as i64; // warning, but no link to `cast_possible_wrap`
}
Metadata
Metadata
Assignees
Labels
No labels