Skip to content

ICE debug_assert!(!erased.needs_infer(), "{:?}", erased); #105275

Closed as not planned
@matthiaskrgr

Description

Code

// build-fail
// compile-flags: -Copt-level=0
//~^^ ERROR overflow evaluating the requirement

pub fn encode_num<Writer: ExampleWriter>(n: u32, mut writer: Writer) -> Result<(), Writer::Error> {
    if n > 15 {
        encode_num(n / 16, &mut writer)?;
    }
    Ok(())
}

pub trait ExampleWriter {
    type Error;
}

impl<'a, T: ExampleWriter> ExampleWriter for &'a mut T {
    type Error = T::Error;
}

struct Error;

impl ExampleWriter for Error {
    type Error = ();
}

fn main() {
    encode_num(69, &mut Error).unwrap();
}

So with vanilla rustc

rustc 1.67.0-nightly (234151769 2022-12-03)
binary: rustc
commit-hash: 23415176968e81e0aac92d0218612a89c4e68a82
commit-date: 2022-12-03
host: x86_64-unknown-linux-gnu
release: 1.67.0-nightly
LLVM version: 15.0.4

you will get the good ol'
thread '<unnamed>' panicked at 'index out of bounds: the len is 0 but the index is 0', /cargo/registry/src/github.com-1ecc6299db9ec823/ena-0.14.0/src/snapshot_vec.rs:199:10 assertion which I have already seen a bunch of times.

thread '<unnamed>' panicked at 'index out of bounds: the len is 0 but the index is 0', /cargo/registry/src/github.com-1ecc6299db9ec823/ena-0.14.0/src/snapshot_vec.rs:199:10
stack backtrace:
   0:     0x7f6d3a56625a - std::backtrace_rs::backtrace::libunwind::trace::h39c51bcedb139b44
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f6d3a56625a - std::backtrace_rs::backtrace::trace_unsynchronized::h9cf890f6f509d0c3
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f6d3a56625a - std::sys_common::backtrace::_print_fmt::h4a0d7673c4689a86
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7f6d3a56625a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed99d8097fd95926
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f6d3a5c8e4e - core::fmt::write::hdab16ae0136a16af
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/core/src/fmt/mod.rs:1208:17
   5:     0x7f6d3a556675 - std::io::Write::write_fmt::h9619f0289bf5af21
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/io/mod.rs:1682:15
   6:     0x7f6d3a566025 - std::sys_common::backtrace::_print::h2fbe09348ca97657
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7f6d3a566025 - std::sys_common::backtrace::print::h72058f5ceb813403
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7f6d3a568d6f - std::panicking::default_hook::{{closure}}::h1542b395e584376b
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/panicking.rs:267:22
   9:     0x7f6d3a568aab - std::panicking::default_hook::hf92492522bb6bc51
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/panicking.rs:286:9
  10:     0x7f6d3a56958c - std::panicking::rust_panic_with_hook::h8e3ba576266d6126
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/panicking.rs:688:13
  11:     0x7f6d3a569329 - std::panicking::begin_panic_handler::{{closure}}::h5718d689762256a1
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/panicking.rs:579:13
  12:     0x7f6d3a56670c - std::sys_common::backtrace::__rust_end_short_backtrace::hb4469c61f2390e29
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/sys_common/backtrace.rs:137:18
  13:     0x7f6d3a569032 - rust_begin_unwind
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/panicking.rs:575:5
  14:     0x7f6d3a5c5863 - core::panicking::panic_fmt::h4dafe9d2577d7060
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/core/src/panicking.rs:64:14
  15:     0x7f6d3a5c5a32 - core::panicking::panic_bounds_check::hf370cb7cb7f7e64d
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/core/src/panicking.rs:147:5
  16:     0x7f6d3b8359c8 - <rustc_middle[eef20b0c23bc8b9b]::ty::Ty as rustc_middle[eef20b0c23bc8b9b]::ty::fold::TypeSuperFoldable>::super_fold_with::<rustc_infer[84fbd1c9bd9414bc]::infer::freshen::TypeFreshener>
  17:     0x7f6d3babf0a3 - <rustc_trait_selection[69a4b2fab63ed72e]::traits::select::SelectionContext>::select
  18:     0x7f6d3c15b0fd - rustc_trait_selection[69a4b2fab63ed72e]::traits::codegen::codegen_select_candidate
  19:     0x7f6d3c2fa17b - rustc_query_system[c6fc551e4ef2763b]::query::plumbing::try_execute_query::<rustc_query_impl[935dec28a6523c17]::plumbing::QueryCtxt, rustc_query_system[c6fc551e4ef2763b]::query::caches::DefaultCache<(rustc_middle[eef20b0c23bc8b9b]::ty::ParamEnv, rustc_middle[eef20b0c23bc8b9b]::ty::sty::Binder<rustc_middle[eef20b0c23bc8b9b]::ty::sty::TraitRef>), core[ec9ef0a26f3cf28]::result::Result<&rustc_middle[eef20b0c23bc8b9b]::traits::ImplSource<()>, rustc_middle[eef20b0c23bc8b9b]::traits::CodegenObligationError>>>
  20:     0x7f6d3c2381c1 - rustc_ty_utils[e127af94daa6312b]::instance::inner_resolve_instance
  21:     0x7f6d3bf9da2f - rustc_query_system[c6fc551e4ef2763b]::query::plumbing::get_query::<rustc_query_impl[935dec28a6523c17]::queries::resolve_instance, rustc_query_impl[935dec28a6523c17]::plumbing::QueryCtxt>
  22:     0x7f6d3c2b39e9 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_neighbours
  23:     0x7f6d3c2abf59 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  24:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  25:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  26:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  27:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  28:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  29:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  30:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  31:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  32:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  33:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  34:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  35:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  36:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  37:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  38:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  39:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  40:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  41:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  42:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  43:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  44:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  45:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  46:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  47:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  48:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  49:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  50:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  51:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  52:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  53:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  54:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  55:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  56:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  57:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  58:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  59:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  60:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  61:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  62:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  63:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  64:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  65:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  66:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  67:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  68:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  69:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  70:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  71:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  72:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  73:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  74:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  75:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  76:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  77:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  78:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  79:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  80:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  81:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  82:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  83:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  84:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  85:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  86:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  87:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  88:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  89:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  90:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  91:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  92:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  93:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  94:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  95:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  96:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  97:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  98:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
  99:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 100:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 101:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 102:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 103:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 104:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 105:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 106:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 107:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 108:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 109:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 110:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 111:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 112:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 113:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 114:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 115:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 116:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 117:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 118:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 119:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 120:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 121:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 122:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 123:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 124:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 125:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 126:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 127:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 128:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 129:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 130:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 131:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 132:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 133:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 134:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 135:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 136:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 137:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 138:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 139:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 140:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 141:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 142:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 143:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 144:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 145:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 146:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 147:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 148:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 149:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 150:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 151:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 152:     0x7f6d3c2ac3c4 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_items_rec
 153:     0x7f6d3cc88e65 - <rustc_session[87f0d63408877899]::session::Session>::time::<(), rustc_monomorphize[41c382e3ba61d756]::collector::collect_crate_mono_items::{closure#1}>
 154:     0x7f6d3cc88984 - rustc_monomorphize[41c382e3ba61d756]::collector::collect_crate_mono_items
 155:     0x7f6d3cc87d93 - rustc_monomorphize[41c382e3ba61d756]::partitioning::collect_and_partition_mono_items
 156:     0x7f6d3d062280 - rustc_query_system[c6fc551e4ef2763b]::query::plumbing::try_execute_query::<rustc_query_impl[935dec28a6523c17]::plumbing::QueryCtxt, rustc_query_system[c6fc551e4ef2763b]::query::caches::DefaultCache<(), (&std[b988c8daa9554a2a]::collections::hash::set::HashSet<rustc_span[653636119034ca50]::def_id::DefId, core[ec9ef0a26f3cf28]::hash::BuildHasherDefault<rustc_hash[2230d8a60abf7532]::FxHasher>>, &[rustc_middle[eef20b0c23bc8b9b]::mir::mono::CodegenUnit])>>
 157:     0x7f6d3d061f44 - rustc_query_system[c6fc551e4ef2763b]::query::plumbing::get_query::<rustc_query_impl[935dec28a6523c17]::queries::collect_and_partition_mono_items, rustc_query_impl[935dec28a6523c17]::plumbing::QueryCtxt>
 158:     0x7f6d3d061e7e - <rustc_query_impl[935dec28a6523c17]::Queries as rustc_middle[eef20b0c23bc8b9b]::ty::query::QueryEngine>::collect_and_partition_mono_items
 159:     0x7f6d3cd346eb - rustc_codegen_ssa[6d1b86094529188b]::base::codegen_crate::<rustc_codegen_llvm[503052878b417ad6]::LlvmCodegenBackend>
 160:     0x7f6d3cd3448e - <rustc_codegen_llvm[503052878b417ad6]::LlvmCodegenBackend as rustc_codegen_ssa[6d1b86094529188b]::traits::backend::CodegenBackend>::codegen_crate
 161:     0x7f6d3ca4bdd1 - <rustc_session[87f0d63408877899]::session::Session>::time::<alloc[c9a67e0c95f99b51]::boxed::Box<dyn core[ec9ef0a26f3cf28]::any::Any>, rustc_interface[c57545daadc3fa09]::passes::start_codegen::{closure#0}>
 162:     0x7f6d3ca4b8c5 - rustc_interface[c57545daadc3fa09]::passes::start_codegen
 163:     0x7f6d3ca46fad - <rustc_interface[c57545daadc3fa09]::passes::QueryContext>::enter::<<rustc_interface[c57545daadc3fa09]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[ec9ef0a26f3cf28]::result::Result<alloc[c9a67e0c95f99b51]::boxed::Box<dyn core[ec9ef0a26f3cf28]::any::Any>, rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>>
 164:     0x7f6d3ca447c4 - <rustc_interface[c57545daadc3fa09]::queries::Queries>::ongoing_codegen
 165:     0x7f6d3ca43991 - <rustc_interface[c57545daadc3fa09]::interface::Compiler>::enter::<rustc_driver[d87acf87108c2deb]::run_compiler::{closure#1}::{closure#2}, core[ec9ef0a26f3cf28]::result::Result<core[ec9ef0a26f3cf28]::option::Option<rustc_interface[c57545daadc3fa09]::queries::Linker>, rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>>
 166:     0x7f6d3ca3e978 - rustc_span[653636119034ca50]::with_source_map::<core[ec9ef0a26f3cf28]::result::Result<(), rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>, rustc_interface[c57545daadc3fa09]::interface::run_compiler<core[ec9ef0a26f3cf28]::result::Result<(), rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>, rustc_driver[d87acf87108c2deb]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
 167:     0x7f6d3ca3e465 - <scoped_tls[2510ce566f7fd87d]::ScopedKey<rustc_span[653636119034ca50]::SessionGlobals>>::set::<rustc_interface[c57545daadc3fa09]::interface::run_compiler<core[ec9ef0a26f3cf28]::result::Result<(), rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>, rustc_driver[d87acf87108c2deb]::run_compiler::{closure#1}>::{closure#0}, core[ec9ef0a26f3cf28]::result::Result<(), rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>>
 168:     0x7f6d3ca3da52 - std[b988c8daa9554a2a]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[c57545daadc3fa09]::util::run_in_thread_pool_with_globals<rustc_interface[c57545daadc3fa09]::interface::run_compiler<core[ec9ef0a26f3cf28]::result::Result<(), rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>, rustc_driver[d87acf87108c2deb]::run_compiler::{closure#1}>::{closure#0}, core[ec9ef0a26f3cf28]::result::Result<(), rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ec9ef0a26f3cf28]::result::Result<(), rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>>
 169:     0x7f6d3d1a6848 - <<std[b988c8daa9554a2a]::thread::Builder>::spawn_unchecked_<rustc_interface[c57545daadc3fa09]::util::run_in_thread_pool_with_globals<rustc_interface[c57545daadc3fa09]::interface::run_compiler<core[ec9ef0a26f3cf28]::result::Result<(), rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>, rustc_driver[d87acf87108c2deb]::run_compiler::{closure#1}>::{closure#0}, core[ec9ef0a26f3cf28]::result::Result<(), rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ec9ef0a26f3cf28]::result::Result<(), rustc_errors[57b9e96b8e7428c]::ErrorGuaranteed>>::{closure#1} as core[ec9ef0a26f3cf28]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
 170:     0x7f6d3e6b07f3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hd24e4095bea58fc3
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/alloc/src/boxed.rs:2000:9
 171:     0x7f6d3e6b07f3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7c7f47af88aff778
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/alloc/src/boxed.rs:2000:9
 172:     0x7f6d3e6b07f3 - std::sys::unix::thread::Thread::new::thread_start::h8d5de08b8b3f2cac
                               at /rustc/23415176968e81e0aac92d0218612a89c4e68a82/library/std/src/sys/unix/thread.rs:108:17
 173:     0x7f6d3a2ca8fd - <unknown>
 174:     0x7f6d3a34ca60 - <unknown>
 175:                0x0 - <unknown>

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions