Skip to content

Missing link to cast_possible_wrap #11805

Closed
@smoelius

Description

@smoelius

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`
}

(Playgound)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions