bare_trait_objects suggestion JSON includes stray suggestion #102902
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
Running
rustc foo.rs --error=format=json
produces two machine-applicable suggestions. One of them is an empty span which has no effect. The relevant part of the JSON output is:Notice that the second suggestion is an empty string for an empty span.
I expect this to not emit an empty span suggestion.
The text was updated successfully, but these errors were encountered: