Compiler Error when using Allocator API for Box with const generic allocator. #89682
Labels
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Meta
rustc --version --verbose
:Error output
thread 'rustc' panicked at 'Box', compiler/rustc_errors/src/lib.rs:1146:9 stack backtrace: 0: std::panicking::begin_panic 1: std::panic::panic_any 2: rustc_errors::HandlerInner::bug 3: rustc_errors::Handler::bug 4: rustc_middle::ty::context::tls::with_opt 5: rustc_middle::util::bug::opt_span_bug_fmt 6: rustc_middle::util::bug::bug_fmt 7: rustc_codegen_ssa::mir::operand::OperandRef::deref 8: rustc_codegen_ssa::mir::place::>::codegen_place 9: rustc_codegen_ssa::mir::rvalue::>::codegen_rvalue_operand 10: rustc_codegen_ssa::mir::codegen_mir 11: rustc_codegen_ssa::base::codegen_instance 12: rustc_codegen_llvm::base::compile_codegen_unit::module_codegen 13: rustc_query_system::dep_graph::graph::DepGraph::with_task 14: rustc_codegen_llvm::base::compile_codegen_unit 15: rustc_codegen_ssa::base::codegen_crate 16: ::codegen_crate 17: rustc_session::utils::::time 18: rustc_interface::queries::Queries::ongoing_codegen 19: rustc_interface::queries::::enter 20: rustc_span::with_source_map 21: scoped_tls::ScopedKey::set note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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.57.0-nightly (25ec827 2021-10-05) running on x86_64-apple-darwin
note: compiler flags: -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental --crate-type bin
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: could not compile
s
Note that this does not happen if you substitute the last line with
The text was updated successfully, but these errors were encountered: