Skip to content

ICE: unexpected panic in librustc/ty/mod.rs #44952

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

Closed
joshlf opened this issue Oct 1, 2017 · 1 comment
Closed

ICE: unexpected panic in librustc/ty/mod.rs #44952

joshlf opened this issue Oct 1, 2017 · 1 comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ regression-from-stable-to-nightly Performance or correctness regression from stable to nightly.

Comments

@joshlf
Copy link
Contributor

joshlf commented Oct 1, 2017

Source

lib.rs

Compiler output

error: internal compiler error: unexpected panic

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.22.0-nightly (6f87d20a7 2017-09-29) running on x86_64-apple-darwin

thread 'rustc' panicked at 'assertion failed: `(left == right)`
  left: `2`,
 right: `0`', src/librustc/ty/mod.rs:751:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
@TimNN TimNN added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. labels Oct 1, 2017
@arielb1
Copy link
Contributor

arielb1 commented Oct 1, 2017

Minified:

struct Node<K>(K);
impl<K> Node<K> {
    fn balance<'a, L: Into<&'a Node<K>>>() {}
}

fn main() {}

arielb1 added a commit to arielb1/rust that referenced this issue Oct 1, 2017
bors added a commit that referenced this issue Oct 2, 2017
handle nested generics in Generics::type_param/region_param

Fixes #44952.

r? @eddyb
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) ❄️ regression-from-stable-to-nightly Performance or correctness regression from stable to nightly.
Projects
None yet
Development

No branches or pull requests

3 participants