-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustc panic: Inner macro with loop-label inside closure. #63837
Labels
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.
Comments
fn main() {
'outer: loop {
macro_rules! exit_loop { () => { break 'outer; } }
loop {
println!("Start of inner");
None.ok_or_else(||{exit_loop!();});
// println!("Not reachable");
}
// println!("End of outer");
}
println!("End of main");
}
|
jonas-schievink
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
I-nominated
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Aug 23, 2019
fn main() {
'outer: loop {
|| break 'outer;
}
} Same ICE occurs without a macro https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=93265ea0d7805a69b469e948170797af. No ICE occurs on |
The same ICE and backtrace can be found in #62480 |
Duplicate of #62480, closing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=3bc7b5bf33f55dbb70550fb8f4b6804c
The text was updated successfully, but these errors were encountered: