Malformed suggestion for E0308 when macros are involved #140659
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I don't have the time to minimize this right now so I've committed the intermediate state that produces a pretty weird suggestion that's invalid:
You can find the reproducing code at https://github.com/nagisa/wasm-tools/tree/weird-diagnostic and running
cargo check --all-features
.Reproduces both on stable and nightly:
The text was updated successfully, but these errors were encountered: