Diagnostic for E0533 (expected value, found struct variant) has hint with incorrect applicability #131878
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
Either of:
Or:
Rationale and extra context
The diagnostic is taken by Rust Analyzer and applied, as it is marked applicable. It should either not be marked applicable, OR (preferably) fixed so that it doesn't contain the placeholder
/* value */
.Originally reported at rust-lang/rust-analyzer#18302, since it causes incorrect replacements in the IDE
Other cases
No response
Rust Version
I'm running on the nightly in the playground (https://play.rust-lang.org/), since I'm at a company that internally has a patched rustc. The playground reports:
Anything else?
The text was updated successfully, but these errors were encountered: