rust-lang / rustc_codegen_cranelift

Cranelift based backend for rustc
Apache License 2.0
1.52k stars 94 forks source link

ICE: "shouldn't exist at codegen" #1354

Closed matthiaskrgr closed 1 year ago

matthiaskrgr commented 1 year ago

rustc @ bd39bbb4bb92df439bf6d85470e296cc6a47ffbd compiled with debug assertions and cranelift rustc -Zcodegen-backend=cranelift file.rs

#![crate_type="lib"]
use std::{collections::HashMap, hash::Hash};

struct C;

trait Ctx {
    type BindGroupId;
}

impl Ctx for C {
    type BindGroupId = u32;
}

pub struct BindGroup {
    _id: <C as Ctx>::BindGroupId,
}

pub fn insert(map: &mut HashMap<*const BindGroup, u32>, bind_group: *const BindGroup) {
    map.insert(bind_group, 1);
}

Stacktrace does not fit :roll_eyes:

matthiaskrgr commented 1 year ago
warning: unused import: `hash::Hash`
 --> /home/matthias/vcs/github/glacier2/fixed/85447.rs:2:33
  |
2 | use std::{collections::HashMap, hash::Hash};
  |                                 ^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

thread 'rustc' panicked at 'internal error: entered unreachable code: shouldn't exist at codegen (move _15, move _17)', src/base.rs:790:26
stack backtrace:
   0:     0x7f5ba5974a41 - std::backtrace_rs::backtrace::libunwind::trace::h57c700f2e7064cc9
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f5ba5974a41 - std::backtrace_rs::backtrace::trace_unsynchronized::h3bd6f8115b3aef84
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f5ba5974a41 - std::sys_common::backtrace::_print_fmt::h4e3cd4a1386ea18b
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7f5ba5974a41 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::ha4399f941a901f68
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f5ba59ec128 - core::fmt::write::h3693e9c93ce31d95
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/fmt/mod.rs:1232:17
   5:     0x7f5ba593dbef - std::io::Write::write_fmt::h7cd08f6496a9e03d
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/io/mod.rs:1684:15
   6:     0x7f5ba5974835 - std::sys_common::backtrace::_print::h1ea264f371a6489b
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7f5ba5974835 - std::sys_common::backtrace::print::h43e663fef4567fcf
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7f5ba5936ea4 - std::panicking::default_hook::{{closure}}::h94496c5e3b8314dc
   9:     0x7f5ba5936ea4 - std::panicking::default_hook::h62ce584520972394
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:286:9
  10:     0x7f5ba8635152 - <alloc[88ef48cbf1494855]::boxed::Box<dyn for<'a, 'b> core[3a7799eb5b53fe42]::ops::function::Fn<(&'a core[3a7799eb5b53fe42]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[3a7799eb5b53fe42]::marker::Sync + core[3a7799eb5b53fe42]::marker::Send> as core[3a7799eb5b53fe42]::ops::function::Fn<(&core[3a7799eb5b53fe42]::panic::panic_info::PanicInfo,)>>::call
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2002:9
  11:     0x7f5ba8635152 - rustc_driver_impl[c3d665e357a167ae]::DEFAULT_HOOK::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:1164:17
  12:     0x7f5ba593781b - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h20060c80854d9f26
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2002:9
  13:     0x7f5ba593781b - std::panicking::rust_panic_with_hook::hf3310e5853e10814
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:692:13
  14:     0x7f5ba5975ed9 - std::panicking::begin_panic_handler::{{closure}}::hb76bc4aa6a51e144
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:579:13
  15:     0x7f5ba5974b8e - std::sys_common::backtrace::__rust_end_short_backtrace::h76df651326f0b61a
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:137:18
  16:     0x7f5ba5937312 - rust_begin_unwind
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:575:5
  17:     0x7f5ba59f3153 - core::panicking::panic_fmt::ha9472d71642ed08e
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:64:14
  18:     0x7f5b9ef7d53b - rustc_codegen_cranelift[5edc41a9bc01c075]::base::codegen_stmt
  19:     0x7f5b9ef7d53b - rustc_codegen_cranelift[5edc41a9bc01c075]::base::codegen_fn_body
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_codegen_cranelift/src/base.rs:293:13
  20:     0x7f5b9ef7749f - rustc_codegen_cranelift[5edc41a9bc01c075]::base::codegen_fn::{closure#2}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_codegen_cranelift/src/base.rs:115:41
  21:     0x7f5b9ef7749f - <rustc_data_structures[3154e4d7ef9f97f8]::profiling::VerboseTimingGuard>::run::<(), rustc_codegen_cranelift[5edc41a9bc01c075]::base::codegen_fn::{closure#2}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/profiling.rs:723:9
  22:     0x7f5b9ef7749f - <rustc_session[5d167e6afbd1bddd]::session::Session>::time::<(), rustc_codegen_cranelift[5edc41a9bc01c075]::base::codegen_fn::{closure#2}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_session/src/utils.rs:10:50
  23:     0x7f5b9ef7749f - rustc_codegen_cranelift[5edc41a9bc01c075]::base::codegen_fn
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_codegen_cranelift/src/base.rs:115:5
  24:     0x7f5b9ef27aea - rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::module_codegen::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_codegen_cranelift/src/driver/aot.rs:294:50
  25:     0x7f5b9ef27aea - <rustc_data_structures[3154e4d7ef9f97f8]::profiling::VerboseTimingGuard>::run::<(), rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::module_codegen::{closure#0}::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/profiling.rs:723:9
  26:     0x7f5b9ef27aea - <rustc_session[5d167e6afbd1bddd]::session::Session>::time::<(), rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::module_codegen::{closure#0}::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_session/src/utils.rs:10:50
  27:     0x7f5b9ef27aea - rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::module_codegen::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_codegen_cranelift/src/driver/aot.rs:293:21
  28:     0x7f5b9ef27aea - <rustc_data_structures[3154e4d7ef9f97f8]::profiling::VerboseTimingGuard>::run::<(alloc[88ef48cbf1494855]::string::String, rustc_codegen_cranelift[5edc41a9bc01c075]::CodegenCx, cranelift_object[f3319470b96cbc32]::backend::ObjectModule, alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::base::CodegenedFunction>), rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::module_codegen::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/profiling.rs:723:9
  29:     0x7f5b9ef27aea - <rustc_session[5d167e6afbd1bddd]::session::Session>::time::<(alloc[88ef48cbf1494855]::string::String, rustc_codegen_cranelift[5edc41a9bc01c075]::CodegenCx, cranelift_object[f3319470b96cbc32]::backend::ObjectModule, alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::base::CodegenedFunction>), rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::module_codegen::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_session/src/utils.rs:10:50
  30:     0x7f5b9efbdf5e - rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::module_codegen
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_codegen_cranelift/src/driver/aot.rs:275:63
  31:     0x7f5b9eef4936 - <rustc_query_system[a5ca8acfaca2cdd1]::dep_graph::graph::DepGraph<rustc_middle[ebb8a7eed001d673]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[ebb8a7eed001d673]::ty::context::TyCtxt, (rustc_codegen_cranelift[5edc41a9bc01c075]::config::BackendConfig, alloc[88ef48cbf1494855]::sync::Arc<rustc_codegen_cranelift[5edc41a9bc01c075]::global_asm::GlobalAsmConfig>, rustc_span[bb644a7833b5c27d]::symbol::Symbol, rustc_codegen_cranelift[5edc41a9bc01c075]::concurrency_limiter::ConcurrencyLimiterToken), rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/dep_graph/graph.rs:296:14
  32:     0x7f5b9eeb51d7 - rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_codegen_cranelift/src/driver/aot.rs:391:25
  33:     0x7f5b9eeb51d7 - core[3a7799eb5b53fe42]::iter::adapters::map::map_fold::<&rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen, (), rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::iter::traits::iterator::Iterator::for_each::call<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen, <alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen>>::extend_trusted<core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}>>::{closure#0}>::{closure#0}>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/iter/adapters/map.rs:84:28
  34:     0x7f5b9eeb51d7 - <core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit> as core[3a7799eb5b53fe42]::iter::traits::iterator::Iterator>::fold::<(), core[3a7799eb5b53fe42]::iter::adapters::map::map_fold<&rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen, (), rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::iter::traits::iterator::Iterator::for_each::call<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen, <alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen>>::extend_trusted<core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}>>::{closure#0}>::{closure#0}>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/iter/traits/iterator.rs:2438:21
  35:     0x7f5b9eeb51d7 - <core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}> as core[3a7799eb5b53fe42]::iter::traits::iterator::Iterator>::fold::<(), core[3a7799eb5b53fe42]::iter::traits::iterator::Iterator::for_each::call<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen, <alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen>>::extend_trusted<core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}>>::{closure#0}>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/iter/adapters/map.rs:124:9
  36:     0x7f5b9ef9a1a2 - <core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}> as core[3a7799eb5b53fe42]::iter::traits::iterator::Iterator>::for_each::<<alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen>>::extend_trusted<core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}>>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/iter/traits/iterator.rs:837:9
  37:     0x7f5b9ef9a1a2 - <alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen>>::extend_trusted::<core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/vec/mod.rs:2856:17
  38:     0x7f5b9ef9a1a2 - <alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen> as alloc[88ef48cbf1494855]::vec::spec_extend::SpecExtend<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen, core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}>>>::spec_extend
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/vec/spec_extend.rs:26:9
  39:     0x7f5b9ef9a1a2 - <alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen> as alloc[88ef48cbf1494855]::vec::spec_from_iter_nested::SpecFromIterNested<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen, core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}>>>::from_iter
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/vec/spec_from_iter_nested.rs:62:9
  40:     0x7f5b9ef9a1a2 - <alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen> as alloc[88ef48cbf1494855]::vec::spec_from_iter::SpecFromIter<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen, core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}>>>::from_iter
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/vec/spec_from_iter.rs:33:9
  41:     0x7f5b9eee4347 - <alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen> as core[3a7799eb5b53fe42]::iter::traits::collect::FromIterator<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen>>::from_iter::<core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/vec/mod.rs:2724:9
  42:     0x7f5b9eee4347 - <core[3a7799eb5b53fe42]::iter::adapters::map::Map<core[3a7799eb5b53fe42]::slice::iter::Iter<rustc_middle[ebb8a7eed001d673]::mir::mono::CodegenUnit>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}::{closure#0}> as core[3a7799eb5b53fe42]::iter::traits::iterator::Iterator>::collect::<alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/iter/traits/iterator.rs:1860:9
  43:     0x7f5b9eee4347 - rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_codegen_cranelift/src/driver/aot.rs:413:14
  44:     0x7f5b9eee4347 - <rustc_data_structures[3154e4d7ef9f97f8]::profiling::VerboseTimingGuard>::run::<alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/profiling.rs:723:9
  45:     0x7f5b9eee4347 - <rustc_session[5d167e6afbd1bddd]::session::Session>::time::<alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_session/src/utils.rs:10:50
  46:     0x7f5b9eee4347 - rustc_codegen_cranelift[5edc41a9bc01c075]::driver::time::<alloc[88ef48cbf1494855]::vec::Vec<rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::OngoingModuleCodegen>, rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_codegen_cranelift/src/driver/mod.rs:52:9
  47:     0x7f5b9efbeaee - rustc_codegen_cranelift[5edc41a9bc01c075]::driver::aot::run_aot
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_codegen_cranelift/src/driver/aot.rs:378:19
  48:     0x7f5b9ef8550e - <rustc_codegen_cranelift[5edc41a9bc01c075]::CraneliftCodegenBackend as rustc_codegen_ssa[fd551e3b82dbfe2c]::traits::backend::CodegenBackend>::codegen_crate
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_codegen_cranelift/src/lib.rs:207:33
  49:     0x7f5ba92c0a9b - rustc_interface[acbff47840ecb8f1]::passes::start_codegen::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:964:9
  50:     0x7f5ba92c0a9b - <rustc_data_structures[3154e4d7ef9f97f8]::profiling::VerboseTimingGuard>::run::<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_interface[acbff47840ecb8f1]::passes::start_codegen::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/profiling.rs:723:9
  51:     0x7f5ba92c0a9b - <rustc_session[5d167e6afbd1bddd]::session::Session>::time::<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_interface[acbff47840ecb8f1]::passes::start_codegen::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_session/src/utils.rs:10:50
  52:     0x7f5ba92c0a9b - rustc_interface[acbff47840ecb8f1]::passes::start_codegen
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:963:19
  53:     0x7f5ba92bfcf8 - <rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:261:20
  54:     0x7f5ba92bfcf8 - <rustc_interface[acbff47840ecb8f1]::passes::QueryContext>::enter::<<rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:751:42
  55:     0x7f5ba92bfcf8 - rustc_middle[ebb8a7eed001d673]::ty::context::tls::enter_context::<<rustc_interface[acbff47840ecb8f1]::passes::QueryContext>::enter<<rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:115:38
  56:     0x7f5ba92bfcf8 - rustc_middle[ebb8a7eed001d673]::ty::context::tls::tlv::with_tlv::<rustc_middle[ebb8a7eed001d673]::ty::context::tls::enter_context<<rustc_interface[acbff47840ecb8f1]::passes::QueryContext>::enter<<rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:95:9
  57:     0x7f5ba92bfcf8 - rustc_middle[ebb8a7eed001d673]::ty::context::tls::enter_context::<<rustc_interface[acbff47840ecb8f1]::passes::QueryContext>::enter<<rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:115:5
  58:     0x7f5ba92bfcf8 - <rustc_interface[acbff47840ecb8f1]::passes::QueryContext>::enter::<<rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:751:9
  59:     0x7f5ba932e5d9 - <rustc_interface[acbff47840ecb8f1]::queries::QueryResult<rustc_interface[acbff47840ecb8f1]::passes::QueryContext>>::enter::<core[3a7799eb5b53fe42]::result::Result<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, <rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:69:9
  60:     0x7f5ba932e5d9 - <rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:248:13
  61:     0x7f5ba932e5d9 - <rustc_interface[acbff47840ecb8f1]::queries::Query<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>>>::compute::<<rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}>::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:43:41
  62:     0x7f5ba932e5d9 - <core[3a7799eb5b53fe42]::option::Option<core[3a7799eb5b53fe42]::result::Result<rustc_data_structures[3154e4d7ef9f97f8]::steal::Steal<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>>::get_or_insert_with::<<rustc_interface[acbff47840ecb8f1]::queries::Query<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>>>::compute<<rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}>::{closure#0}::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/option.rs:1593:49
  63:     0x7f5ba932e5d9 - <rustc_interface[acbff47840ecb8f1]::queries::Query<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>>>::compute::<<rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:43:17
  64:     0x7f5ba932e5d9 - <core[3a7799eb5b53fe42]::cell::RefMut<core[3a7799eb5b53fe42]::option::Option<core[3a7799eb5b53fe42]::result::Result<rustc_data_structures[3154e4d7ef9f97f8]::steal::Steal<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>>>::filter_map::<rustc_data_structures[3154e4d7ef9f97f8]::steal::Steal<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>>, <rustc_interface[acbff47840ecb8f1]::queries::Query<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>>>::compute<<rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/cell.rs:1588:15
  65:     0x7f5ba932e5d9 - <rustc_interface[acbff47840ecb8f1]::queries::Query<alloc[88ef48cbf1494855]::boxed::Box<dyn core[3a7799eb5b53fe42]::any::Any>>>::compute::<<rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:40:9
  66:     0x7f5ba932e5d9 - <rustc_interface[acbff47840ecb8f1]::queries::Queries>::ongoing_codegen
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:247:9
  67:     0x7f5ba86c8240 - rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}::{closure#2}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:371:13
  68:     0x7f5ba86c8240 - <rustc_interface[acbff47840ecb8f1]::interface::Compiler>::enter::<rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}::{closure#2}, core[3a7799eb5b53fe42]::result::Result<core[3a7799eb5b53fe42]::option::Option<rustc_interface[acbff47840ecb8f1]::queries::Linker>, rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:386:19
  69:     0x7f5ba8705875 - rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:292:22
  70:     0x7f5ba8705875 - rustc_interface[acbff47840ecb8f1]::interface::run_compiler::<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/interface.rs:300:21
  71:     0x7f5ba8705875 - rustc_span[bb644a7833b5c27d]::with_source_map::<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_span/src/lib.rs:1026:5
  72:     0x7f5ba86c8d69 - rustc_interface[acbff47840ecb8f1]::interface::run_compiler::<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/interface.rs:294:13
  73:     0x7f5ba86c8d69 - <scoped_tls[3e8267cb6b5069b8]::ScopedKey<rustc_span[bb644a7833b5c27d]::SessionGlobals>>::set::<rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>
                               at /home/matthias/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137:9
  74:     0x7f5ba864e2ff - rustc_span[bb644a7833b5c27d]::create_session_globals_then::<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_span/src/lib.rs:111:5
  75:     0x7f5ba864e2ff - rustc_interface[acbff47840ecb8f1]::util::run_in_thread_pool_with_globals::<rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/util.rs:147:38
  76:     0x7f5ba864e2ff - std[a3e1a1d40e09fad4]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[acbff47840ecb8f1]::util::run_in_thread_pool_with_globals<rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:121:18
  77:     0x7f5ba8646fd3 - <std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_::<rustc_interface[acbff47840ecb8f1]::util::run_in_thread_pool_with_globals<rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#1}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:558:17
  78:     0x7f5ba8646fd3 - <core[3a7799eb5b53fe42]::panic::unwind_safe::AssertUnwindSafe<<std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_<rustc_interface[acbff47840ecb8f1]::util::run_in_thread_pool_with_globals<rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#1}::{closure#0}> as core[3a7799eb5b53fe42]::ops::function::FnOnce<()>>::call_once
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic/unwind_safe.rs:271:9
  79:     0x7f5ba8646fd3 - std[a3e1a1d40e09fad4]::panicking::try::do_call::<core[3a7799eb5b53fe42]::panic::unwind_safe::AssertUnwindSafe<<std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_<rustc_interface[acbff47840ecb8f1]::util::run_in_thread_pool_with_globals<rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:483:40
  80:     0x7f5ba8646fd3 - std[a3e1a1d40e09fad4]::panicking::try::<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, core[3a7799eb5b53fe42]::panic::unwind_safe::AssertUnwindSafe<<std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_<rustc_interface[acbff47840ecb8f1]::util::run_in_thread_pool_with_globals<rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:447:19
  81:     0x7f5ba8646fd3 - std[a3e1a1d40e09fad4]::panic::catch_unwind::<core[3a7799eb5b53fe42]::panic::unwind_safe::AssertUnwindSafe<<std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_<rustc_interface[acbff47840ecb8f1]::util::run_in_thread_pool_with_globals<rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panic.rs:140:14
  82:     0x7f5ba8646fd3 - <std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_::<rustc_interface[acbff47840ecb8f1]::util::run_in_thread_pool_with_globals<rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#1}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:557:30
  83:     0x7f5ba8646fd3 - <<std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_<rustc_interface[acbff47840ecb8f1]::util::run_in_thread_pool_with_globals<rustc_interface[acbff47840ecb8f1]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>, rustc_driver_impl[c3d665e357a167ae]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[7deb60bbfdd1de15]::ErrorGuaranteed>>::{closure#1} as core[3a7799eb5b53fe42]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ops/function.rs:250:5
  84:     0x7f5ba5924698 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h1de6d10e235e916d
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1988:9
  85:     0x7f5ba5924698 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7d484493755f58f7
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1988:9
  86:     0x7f5ba59091a5 - std::sys::unix::thread::Thread::new::thread_start::hc0cec0ea00f343dd
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys/unix/thread.rs:108:17
  87:     0x7f5ba5a9f8fd - <unknown>
  88:     0x7f5ba5b21d20 - <unknown>
  89:                0x0 - <unknown>

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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.69.0-dev running on x86_64-unknown-linux-gnu

note: compiler flags: -Z codegen-backend=cranelift
matthiaskrgr commented 1 year ago

query stack during panic:
end of query stack
stmt _14 = (move _15, move _17)
fn std::ptr::const_ptr::<impl *const T>::is_aligned_to(_1: *const T, _2: usize) -> bool {
    debug self => _1;                    // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1584:32: 1584:36
    debug align => _2;                   // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1584:38: 1584:43
    let mut _0: bool;                    // return place in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1584:55: 1584:59
    let mut _3: bool;                    // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:12: 1585:36
    let mut _4: bool;                    // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:13: 1585:36
    let mut _5: usize;                   // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:13: 1585:18
    let _6: !;                           // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:9: 57:73
    let mut _7: std::fmt::Arguments<'_>; // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
    let mut _8: &[&str];                 // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
    let mut _9: &[&str; 1];              // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
    let _10: &[&str; 1];                 // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
    let mut _11: &[core::fmt::ArgumentV1<'_>]; // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
    let mut _12: &[core::fmt::ArgumentV1<'_>; 0]; // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
    let _13: &[core::fmt::ArgumentV1<'_>; 0]; // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
    let mut _14: (*const (), usize);     // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:36: 1604:62
    let mut _15: *const ();              // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:37: 1604:54
    let mut _16: *const T;               // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:37: 1604:41
    let mut _17: usize;                  // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:56: 1604:61
    let mut _18: &[core::fmt::ArgumentV1<'_>; 0]; // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
    let mut _19: &[&str; 1];             // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
    let mut _26: *const ();              // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:18: 1604:89
    let mut _27: usize;                  // in scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:18: 1604:89
    scope 1 {
        scope 4 (inlined std::ptr::const_ptr::<impl *const T>::cast::<()>) { // at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:42: 1604:54
            debug self => _16;           // in scope 4 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:60:26: 60:30
            let mut _25: *const T;       // in scope 4 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:61:9: 61:13
        }
        scope 5 (inlined std::ptr::const_ptr::<impl *const T>::is_aligned_to::runtime_impl) { // at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:18: 1604:89
            debug ptr => _26;            // in scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1590:25: 1590:28
            debug align => _27;          // in scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1590:41: 1590:46
            let mut _28: usize;          // in scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:13: 1591:37
            let mut _29: usize;          // in scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:13: 1591:23
            let mut _30: *const ();      // in scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:13: 1591:16
            let mut _31: usize;          // in scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:26: 1591:37
            let mut _32: usize;          // in scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:27: 1591:32
            let mut _33: (usize, bool);  // in scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:26: 1591:37
            scope 6 (inlined std::ptr::const_ptr::<impl *const ()>::addr) { // at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:17: 1591:23
                debug self => _30;       // in scope 6 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:205:17: 205:21
                let mut _34: *const ();  // in scope 6 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:209:33: 209:50
                let mut _35: *const ();  // in scope 6 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:209:33: 209:37
                scope 7 {
                    scope 8 (inlined std::ptr::const_ptr::<impl *const ()>::cast::<()>) { // at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:209:38: 209:50
                        debug self => _35; // in scope 8 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:60:26: 60:30
                        let mut _36: *const (); // in scope 8 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:61:9: 61:13
                    }
                }
            }
        }
    }
    scope 2 (inlined core::num::<impl usize>::is_power_of_two) { // at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:19: 1585:36
        debug self => _5;                // in scope 2 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:2143:38: 2143:42
        let mut _20: u32;                // in scope 2 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:2144:13: 2144:30
        let mut _21: usize;              // in scope 2 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:2144:13: 2144:17
        scope 3 (inlined core::num::<impl usize>::count_ones) { // at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:2144:18: 2144:30
            debug self => _21;           // in scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:88:33: 88:37
            let mut _22: u64;            // in scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:13: 89:48
            let mut _23: u64;            // in scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:31: 89:47
            let mut _24: usize;          // in scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:31: 89:35
        }
    }

    bb0: {
        StorageLive(_3);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:12: 1585:36
        StorageLive(_4);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:13: 1585:36
        StorageLive(_5);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:13: 1585:18
        _5 = _2;                         // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:13: 1585:18
        StorageLive(_20);                // scope 2 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:2144:13: 2144:30
        StorageLive(_21);                // scope 2 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:2144:13: 2144:17
        _21 = _5;                        // scope 2 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:2144:13: 2144:17
        StorageLive(_22);                // scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:13: 89:48
        StorageLive(_23);                // scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:31: 89:47
        StorageLive(_24);                // scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:31: 89:35
        _24 = _21;                       // scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:31: 89:35
        _23 = move _24 as u64 (IntToInt); // scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:31: 89:47
        StorageDead(_24);                // scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:46: 89:47
        _22 = std::intrinsics::ctpop::<u64>(move _23) -> bb4; // scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:13: 89:48
                                         // mir::Constant
                                         // + span: /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:13: 89:30
                                         // + literal: Const { ty: extern "rust-intrinsic" fn(u64) -> u64 {std::intrinsics::ctpop::<u64>}, val: Value(<ZST>) }
    }

    bb1: {
        StorageLive(_6);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:9: 57:73
        StorageLive(_7);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
        StorageLive(_8);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
        StorageLive(_9);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
        StorageLive(_10);                // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
        _19 = const _;                   // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
                                         // mir::Constant
                                         // + span: /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
                                         // + literal: Const { ty: &[&str; 1], val: Unevaluated(std::ptr::const_ptr::<impl *const T>::is_aligned_to, [T], Some(promoted[1])) }
        _10 = _19;                       // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
        _9 = _10;                        // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
        _8 = move _9 as &[&str] (Pointer(Unsize)); // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:20: 1586:64
        StorageDead(_9);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1586:63: 1586:64
        StorageLive(_11);                // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
        StorageLive(_12);                // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
        StorageLive(_13);                // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
        _18 = const _;                   // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
                                         // mir::Constant
                                         // + span: /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
                                         // + literal: Const { ty: &[core::fmt::ArgumentV1<'_>; 0], val: Unevaluated(std::ptr::const_ptr::<impl *const T>::is_aligned_to, [T], Some(promoted[0])) }
        _13 = _18;                       // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
        _12 = _13;                       // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
        _11 = move _12 as &[core::fmt::ArgumentV1<'_>] (Pointer(Unsize)); // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
        StorageDead(_12);                // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:71: 57:72
        _7 = std::fmt::Arguments::<'_>::new_v1(move _8, move _11) -> bb2; // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
                                         // mir::Constant
                                         // + span: /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:38: 57:72
                                         // + user_ty: UserType(0)
                                         // + literal: Const { ty: fn(&[&'static str], &[core::fmt::ArgumentV1<'_>]) -> std::fmt::Arguments<'_> {std::fmt::Arguments::<'_>::new_v1}, val: Value(<ZST>) }
    }

    bb2: {
        StorageDead(_11);                // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:71: 57:72
        StorageDead(_8);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:71: 57:72
        _6 = std::rt::panic_fmt(move _7); // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:9: 57:73
                                         // mir::Constant
                                         // + span: /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic.rs:57:9: 57:37
                                         // + literal: Const { ty: for<'a> fn(std::fmt::Arguments<'a>) -> ! {std::rt::panic_fmt}, val: Value(<ZST>) }
    }

    bb3: {
        StorageDead(_3);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1587:9: 1587:10
        StorageLive(_14);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:36: 1604:62
        StorageLive(_15);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:37: 1604:54
        StorageLive(_16);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:37: 1604:41
        _16 = _1;                        // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:37: 1604:41
        StorageLive(_25);                // scope 4 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:61:9: 61:13
        _25 = _16;                       // scope 4 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:61:9: 61:13
        _15 = move _25 as *const () (PtrToPtr); // scope 4 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:61:9: 61:18
        StorageDead(_25);                // scope 4 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:61:17: 61:18
        StorageDead(_16);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:53: 1604:54
        StorageLive(_17);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:56: 1604:61
        _17 = _2;                        // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:56: 1604:61
        _14 = (move _15, move _17);      // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:36: 1604:62
        StorageDead(_17);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:61: 1604:62
        StorageDead(_15);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:61: 1604:62
        StorageLive(_26);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:18: 1604:89
        _26 = move (_14.0: *const ());   // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:18: 1604:89
        StorageLive(_27);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:18: 1604:89
        _27 = move (_14.1: usize);       // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:18: 1604:89
        StorageLive(_28);                // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:13: 1591:37
        StorageLive(_29);                // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:13: 1591:23
        StorageLive(_30);                // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:13: 1591:16
        _30 = _26;                       // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:13: 1591:16
        StorageLive(_34);                // scope 7 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:209:33: 209:50
        StorageLive(_35);                // scope 7 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:209:33: 209:37
        _35 = _30;                       // scope 7 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:209:33: 209:37
        StorageLive(_36);                // scope 8 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:61:9: 61:13
        _36 = _35;                       // scope 8 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:61:9: 61:13
        _34 = move _36 as *const () (PtrToPtr); // scope 8 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:61:9: 61:18
        StorageDead(_36);                // scope 8 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:61:17: 61:18
        StorageDead(_35);                // scope 7 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:209:49: 209:50
        _29 = std::intrinsics::transmute::<*const (), usize>(move _34) -> bb6; // scope 7 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:209:18: 209:51
                                         // mir::Constant
                                         // + span: /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:209:18: 209:32
                                         // + literal: Const { ty: unsafe extern "rust-intrinsic" fn(*const ()) -> usize {std::intrinsics::transmute::<*const (), usize>}, val: Value(<ZST>) }
    }

    bb4: {
        StorageDead(_23);                // scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:47: 89:48
        _20 = move _22 as u32 (IntToInt); // scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:13: 89:55
        StorageDead(_22);                // scope 3 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:89:54: 89:55
        StorageDead(_21);                // scope 2 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:2144:29: 2144:30
        _4 = Eq(move _20, const 1_u32);  // scope 2 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:2144:13: 2144:35
        StorageDead(_20);                // scope 2 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/num/uint_macros.rs:2144:34: 2144:35
        StorageDead(_5);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:35: 1585:36
        _3 = Not(move _4);               // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:12: 1585:36
        StorageDead(_4);                 // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:35: 1585:36
        switchInt(move _3) -> [0: bb3, otherwise: bb1]; // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1585:12: 1585:36
    }

    bb5: {
        _31 = move (_33.0: usize);       // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:26: 1591:37
        StorageDead(_32);                // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:36: 1591:37
        _28 = BitAnd(move _29, move _31); // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:13: 1591:37
        StorageDead(_31);                // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:36: 1591:37
        StorageDead(_29);                // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:36: 1591:37
        _0 = Eq(move _28, const 0_usize); // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:13: 1591:42
        StorageDead(_28);                // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:41: 1591:42
        StorageDead(_27);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:18: 1604:89
        StorageDead(_26);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:18: 1604:89
        StorageDead(_14);                // scope 1 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1604:88: 1604:89
        return;                          // scope 0 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1605:6: 1605:6
    }

    bb6: {
        StorageDead(_34);                // scope 7 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:209:50: 209:51
        StorageDead(_30);                // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:22: 1591:23
        StorageLive(_31);                // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:26: 1591:37
        StorageLive(_32);                // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:27: 1591:32
        _32 = _27;                       // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:27: 1591:32
        _33 = CheckedSub(_32, const 1_usize); // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:26: 1591:37
        assert(!move (_33.1: bool), "attempt to compute `{} - {}`, which would overflow", move _32, const 1_usize) -> bb5; // scope 5 at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ptr/const_ptr.rs:1591:26: 1591:37
    }
}

warning: 1 warning emitted
matthiaskrgr commented 1 year ago

Hmm something is messed up with collections..? This also crashes crashes cranelift:

const V: Vec<i32> = Vec::new();

pub fn main() {}
matthiaskrgr commented 1 year ago

ah nevermind, an empty main also makes it crash? :laughing: pub fn main() {}

bjorn3 commented 1 year ago

This should have been fixed by https://github.com/bjorn3/rustc_codegen_cranelift/commit/8494882773392b461e9609e4f4a60818b26e964c, but that commit is not yet synced back to the rust repo.

matthiaskrgr commented 1 year ago

Hm, when is the next sync? :sweat_smile: because right now it seems cranelift is monstly unusable built from the rustc repo like that... :confused:

bjorn3 commented 1 year ago

I can probably do a sync tomorrow.

bjorn3 commented 1 year ago

https://github.com/rust-lang/rust/pull/107843

bjorn3 commented 1 year ago

merged.