Skip to content

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

Closed
@ekr

Description

@ekr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions