Diagnostic on missing "?" suggests to ignore the error entirely, which can be problematic #130262
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
Rust should suggest to add the missing `?`, not to ignore the error entirely.
Rationale and extra context
See rust-lang/miri#3855 for an example where ignoring the error with
let _ =
can lead to critical bugs.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: