Bad span for ? removal suggestion in parentheses #114392
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.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
The suggestion span for removing the
?
is off-by-one, and suggests removing the parenthesis instead of the?
.Other cases
No response
Anything else?
rustc 1.73.0-nightly (7bd81ee 2023-07-13)
binary: rustc
commit-hash: 7bd81ee
commit-date: 2023-07-13
host: aarch64-apple-darwin
release: 1.73.0-nightly
LLVM version: 16.0.5
The text was updated successfully, but these errors were encountered: