bad span for suggestion in format string #94010
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The span for a typo suggestion inside a format string encompasses the
{}
characters, causing them to be removed, breaking the format string.The current output is:
Applying the fix results in:
which is now missing the
{}
characters.The text was updated successfully, but these errors were encountered: