Add filtering to rustc_on_unimplemented
to avoid misleading suggestion
#55000
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
F-on_unimplemented
Error messages that can be tackled with `#[rustc_on_unimplemented]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
After #54946, the code
let x = [0..10]; for _ in x {}
will cause the following output:Add a way to identify this case to
rustc_on_unimplemented
, in order to avoid giving this misleading/incorrect diagnostic.The text was updated successfully, but these errors were encountered: