-
Notifications
You must be signed in to change notification settings - Fork 2k
Regression in useless_transmute due to rustup #5343
Copy link
Copy link
Open
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.I-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveT-middleType: Probably requires verifiying typesType: Probably requires verifiying types
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.I-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveT-middleType: Probably requires verifiying typesType: Probably requires verifiying types
Type
Fields
Give feedbackNo fields configured for issues without a type.
After rust-lang/rust#69189, the following check returns
truefor types, where only the lifetimes differ:&'a T == &'b Trust-clippy/clippy_lints/src/transmute.rs
Lines 303 to 307 in c036c4f
According to rust-lang/rust#69189 (comment), this probably needs to be fixed by checking the lifetimes of the types with MIR
borrowck.Originally posted by @flip1995 in #5333