Skip to content
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

ICE in universal_regions.rs when compiling bitflags using NLL #46717

Closed
est31 opened this issue Dec 13, 2017 · 2 comments
Closed

ICE in universal_regions.rs when compiling bitflags using NLL #46717

est31 opened this issue Dec 13, 2017 · 2 comments
Labels
A-NLL Area: Non-lexical lifetimes (NLL) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@est31
Copy link
Member

est31 commented Dec 13, 2017

Clone https://github.com/rust-lang-nursery/bitflags and trying to compile it with NLL enabled gives you an ICE:

$ RUSTFLAGS="-Zborrowck=mir -Z nll" cargo build
error: internal compiler error: /checkout/src/librustc_mir/borrow_check/nll/universal_regions.rs:496: impossible case reached

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.24.0-nightly (6a3601944 2017-12-12) running on x86_64-unknown-linux-gnu

thread 'rustc' panicked at 'Box<Any>', /checkout/src/librustc_errors/lib.rs:501:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.

error: Could not compile `bitflags`.

To learn more, run the command again with --verbose.

Minimized testcase:

pub struct Foo;
pub const FOO: Foo = Foo;
@est31
Copy link
Member Author

est31 commented Dec 13, 2017

@nikomatsakis is this a dupe of #46702 ? If so please close :)

@sfackler sfackler added A-NLL Area: Non-lexical lifetimes (NLL) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ labels Dec 20, 2017
@sapphire-arches
Copy link
Contributor

I'm not sure if this is a dupe, but it appears to be fixed on nightly now, so I'm going to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-NLL Area: Non-lexical lifetimes (NLL) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants