E0606 could be auto-applicable in some cases #106903
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
No response
Rationale and extra context
The
x as u32
=>*x
transformation is trivial here, we should be able to do this withcargo fix --broken-code
imo. All remaining suggestions can already be applied so rustc can fix this code intolet y: u32 = (*x).into();
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: