-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Panic in region_scope_tree
: assertion failed: prev.is_none()
#87877
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
danielhenrymantilla
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Aug 9, 2021
Nemo157
added
the
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
label
Aug 9, 2021
rustbot
added
the
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
label
Aug 9, 2021
searched nightlies: from nightly-2021-08-01 to nightly-2021-08-10 bisected with cargo-bisect-rustc v0.6.0Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --end=2021-08-10 --regress=ice --access=github --without-cargo -- check |
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-high +A-macros |
rustbot
added
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
P-high
High priority
and removed
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
labels
Aug 12, 2021
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Aug 13, 2021
…enkov Revert "Rollup merge of rust-lang#87779 - Aaron1011:stmt-ast-id, r=petrochenkov" Fixes rust-lang#87877 This change interacts badly with `noop_flat_map_stmt`, which synthesizes multiple statements with the same `NodeId`. I'm working on a better fix that will still allow us to remove this special case. For now, let's revert the change to fix the ICE. This reverts commit a4262cc, reversing changes made to 8ee962f.
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Aug 13, 2021
…enkov Revert "Rollup merge of rust-lang#87779 - Aaron1011:stmt-ast-id, r=petrochenkov" Fixes rust-lang#87877 This change interacts badly with `noop_flat_map_stmt`, which synthesizes multiple statements with the same `NodeId`. I'm working on a better fix that will still allow us to remove this special case. For now, let's revert the change to fix the ICE. This reverts commit a4262cc, reversing changes made to 8ee962f.
Thanks @Aaron1011, nice job 🙂 |
Michael-F-Bryan
pushed a commit
to hotg-ai/rune
that referenced
this issue
Aug 14, 2021
Michael-F-Bryan
pushed a commit
to hotg-ai/rune
that referenced
this issue
Aug 14, 2021
Bumped the nightly version because of rust-lang/rust#87877
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Context: "regression" caught by future-proofing CI from https://github.com/danielhenrymantilla/stackbox.rs/runs/3278204045?check_suite_focus=true
After working on reducing the code, I've identified the root cause of the ICE.
Code
<1.45.0
Rust: the trick is to use thesingle_item_funneler
to wrap an item-defs-emitting proc-macro call inside a function so that Rust doesn't interpret it as a statement, refusing the then-unstable stmt-emitting proc-macro call (minimal example).Meta
rustc --version --verbose
:Error output
Backtrace
cc @Aaron1011 I suspect this is up your alley 😉
The text was updated successfully, but these errors were encountered: