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

Compiler crashed with error: internal compiler error: ../src/librustc_typeck/check/mod.rs:4396: unexpected definition: PrimTy(TyUint(u8)) #38372

Closed
ekr opened this issue Dec 14, 2016 · 0 comments · Fixed by #38375
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@ekr
Copy link

ekr commented Dec 14, 2016

STR:

Compile this revision with nightly. ekr/tls_interop@c3527ed

full report:

   Compiling tls_interop v0.1.0 (file:///Users/ekr/dev/tls_interop)
error: internal compiler error: ../src/librustc_typeck/check/mod.rs:4396: unexpected definition: PrimTy(TyUint(u8))

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

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

error: Could not compile `tls_interop`.

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


15:41:56|~/dev/tls_interop (master)$ RUST_BACKTRACE=1 cargo run
   Compiling tls_interop v0.1.0 (file:///Users/ekr/dev/tls_interop)
error: internal compiler error: ../src/librustc_typeck/check/mod.rs:4396: unexpected definition: PrimTy(TyUint(u8))

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: run with `RUST_BACKTRACE=1` for a backtrace

thread 'rustc' panicked at 'Box<Any>', ../src/librustc_errors/lib.rs:423
stack backtrace:
   1:        0x1108def7a - std::sys::imp::backtrace::tracing::imp::write::hbea47d9dd19b523c
   2:        0x1108ec26f - std::panicking::default_hook::{{closure}}::h6875a2976258b020
   3:        0x1108ebe1d - std::panicking::default_hook::h88ffbc5922643264
   4:        0x1108ec736 - std::panicking::rust_panic_with_hook::hc790e47d4ecc86cd
   5:        0x1106b283a - std::panicking::begin_panic::h264cdc75d51b518b
   6:        0x1106c54c4 - rustc_errors::Handler::bug::h620f7270292f0095
   7:        0x10d28dc5c - rustc::session::opt_span_bug_fmt::{{closure}}::h4a9b70c3df8b4b3a
   8:        0x10d28da69 - rustc::session::opt_span_bug_fmt::h7d83586c6e2c7ae6
   9:        0x10d28d5ea - rustc::session::bug_fmt::he2d2f00a4afa9d1e
  10:        0x10cad078d - rustc_typeck::check::FnCtxt::instantiate_value_path::h4229ac945aebfa55
  11:        0x10cabec31 - rustc_typeck::check::FnCtxt::check_expr_kind::hfeeca7568cc99087
  12:        0x10cabd86d - rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_lvalue_pref::h5d7f5141d7386bb8
  13:        0x10cabf993 - rustc_typeck::check::FnCtxt::check_expr_kind::hfeeca7568cc99087
  14:        0x10cabd86d - rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_lvalue_pref::h5d7f5141d7386bb8
  15:        0x10caced27 - rustc_typeck::check::FnCtxt::check_decl_initializer::h43ea4d26b2a62ae8
  16:        0x10cacee2d - rustc_typeck::check::FnCtxt::check_decl_local::h15d42ee7f4d79e8d
  17:        0x10cacf13f - rustc_typeck::check::FnCtxt::check_stmt::h155d968e61fdfae6
  18:        0x10cacf46e - rustc_typeck::check::FnCtxt::check_block_with_expected::he90dd72b6855e5e4
  19:        0x10cabdd93 - rustc_typeck::check::FnCtxt::check_expr_kind::hfeeca7568cc99087
  20:        0x10cabd86d - rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_lvalue_pref::h5d7f5141d7386bb8
  21:        0x10caa4663 - rustc_typeck::check::check_fn::h96bd864b4d4fc711
  22:        0x10caa31f7 - rustc_typeck::check::check_bare_fn::h87386ea43f4e272e
  23:        0x10caa6193 - rustc_typeck::check::check_item_body::h1e039ede2f960fb9
  24:        0x10caa0dad - rustc_typeck::check::check_item_bodies::hd22adb7703cc56d7
  25:        0x10cb0e9de - rustc_typeck::check_crate::h92f6bdfe03b6afba
  26:        0x10c0b24d0 - rustc_driver::driver::phase_3_run_analysis_passes::{{closure}}::hd97ec26bf3a98036
  27:        0x10c09a404 - rustc_driver::driver::phase_3_run_analysis_passes::h6d446abb74c09795
  28:        0x10c08a86a - rustc_driver::driver::compile_input::h8e119234b60571d5
  29:        0x10c0d1a4b - rustc_driver::run_compiler::h57c4f233cd1a0c04
  30:        0x10bff0088 - std::panicking::try::do_call::hf679f17bf3b43b0b
  31:        0x1108eecea - __rust_maybe_catch_panic
  32:        0x10c01318f - <F as alloc::boxed::FnBox<A>>::call_box::h21b5b32059700da6
  33:        0x1108eb3b4 - std::sys::imp::thread::Thread::new::thread_start::h8084b1107992ae5b
  34:     0x7fff9024299c - _pthread_body
  35:     0x7fff90242919 - _pthread_start

error: Could not compile `tls_interop`.

To learn more, run the command again with --verbose.
@steveklabnik steveklabnik added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Dec 14, 2016
bors added a commit that referenced this issue Dec 15, 2016
Fix regression in resolution of primitive types

Fix often encountered ICE.
Extracted from #38154
Fixes #38155, fixes #38188, fixes #38277, fixes #38280, fixes #38292, fixes #38311, fixes #38344, fixes #38363, fixes #38372 (duplicates)

r? @jseyfried or @eddyb or @nrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants