-
Couldn't load subscription status.
- Fork 13.9k
Fix emit_unused_delims_expr ICE
#104433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix emit_unused_delims_expr ICE
#104433
Conversation
|
r? @lcnr (rustbot has picked a reviewer for you, use r? to override) |
compiler/rustc_lint/src/unused.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the following comment, the block always has just one statement.
rust/compiler/rustc_lint/src/unused.rs
Lines 992 to 998 in 101e182
| // emit a warning under the following conditions: | |
| // | |
| // - the block does not have a label | |
| // - the block is not `unsafe` | |
| // - the block contains exactly one expression (do not lint `{ expr; }`) | |
| // - `followed_by_block` is true and the internal expr may contain a `{` | |
| // - the block is not multiline (do not lint multiline match arms) |
add ui tests
…iaskrgr Rollup of 11 pull requests Successful merges: - rust-lang#103852 (Don't remap early-bound regions for return-position `impl Trait` in trait originating from `impl`) - rust-lang#104366 (Simplify settings theme choice) - rust-lang#104433 (Fix `emit_unused_delims_expr` ICE) - rust-lang#104444 (Fix ICE in in_operand for ty error) - rust-lang#104483 (Convert predicates into Predicate in the Obligation constructor) - rust-lang#104496 (Don't attempt to normalize compiler backtraces) - rust-lang#104503 (rustdoc: remove redundant font-color CSS on `.where`) - rust-lang#104508 (Check `dyn*` return type correctly) - rust-lang#104515 (ICE fixing, remove is_tainted_by_errors since we have ty_error for delay bug) - rust-lang#104532 (Migrate tooltip style to CSS variables) - rust-lang#104545 (Readd the matches_macro diag item) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fix `emit_unused_delims_expr` ICE Fixes rust-lang#104897 This is also related to rust-lang#104433.
Fixes #104392