Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error 'failed to get layout for' #105809

Closed
rhomber opened this issue Dec 17, 2022 · 21 comments · Fixed by #105905
Closed

Compile error 'failed to get layout for' #105809

rhomber opened this issue Dec 17, 2022 · 21 comments · Fixed by #105905
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ P-critical Critical priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. S-has-mcve Status: A Minimal Complete and Verifiable Example has been found for this issue T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@rhomber
Copy link

rhomber commented Dec 17, 2022

Code

It's not failing in my project, but a dependency (but rocket).

Meta

Fails the same in two environments:

rustc 1.68.0-nightly (9c07efe84 2022-12-16) running on aarch64-apple-darwin
compiler flags: --crate-type lib -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental=[REDACTED]

AND

rustc 1.68.0-nightly (9c07efe84 2022-12-16) running on x86_64-unknown-linux-gnu
compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]

Error output

   Compiling rocket_cors v0.6.0-alpha1 (https://github.com/lawliet89/rocket_cors?branch=master#c17e8145)
error: internal compiler error: compiler/rustc_codegen_llvm/src/context.rs:969:13: failed to get layout for `&mut Pin<&mut rocket::http::hyper::server::shutdown::Graceful<rocket::http::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, service::make::MakeServiceFn<[closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::{closure#2}]>, rocket::Shutdown, hyper::common::exec::Exec>>`: unable to determine layout for `&mut Pin<&mut rocket::http::hyper::server::shutdown::Graceful<rocket::http::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, service::make::MakeServiceFn<[closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::{closure#2}]>, rocket::Shutdown, hyper::common::exec::Exec>>` because `&mut Pin<&mut rocket::http::hyper::server::shutdown::Graceful<rocket::http::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, service::make::MakeServiceFn<[closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::{closure#2}]>, rocket::Shutdown, hyper::common::exec::Exec>>` cannot be normalized

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/9c07efe84f28a44f3044237696acc295aa407ee5/compiler/rustc_errors/src/lib.rs:973:33
stack backtrace:
   0:        0x1033ae8e4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf05b923e3705aab6
   1:        0x1033ffb9c - core::fmt::write::h4d4011c40e30a20e
   2:        0x1033a1ea0 - std::io::Write::write_fmt::hac39cff9713a22a8
   3:        0x1033ae6f8 - std::sys_common::backtrace::print::h269f9d0fba6134d5
   4:        0x1033b11a8 - std::panicking::default_hook::{{closure}}::h1b64b947323e5455
   5:        0x1033b0f00 - std::panicking::default_hook::hd5000a9bd64dd6fe
   6:        0x10b602654 - rustc_driver[3bb78e66a26ba6d7]::DEFAULT_HOOK::{closure#0}::{closure#0}
   7:        0x1033b18a0 - std::panicking::rust_panic_with_hook::ha951c23f48d097e1
   8:        0x10b81bda4 - std[4a15b4f0527ee59b]::panicking::begin_panic::<rustc_errors[dfa53bcc3145749c]::ExplicitBug>::{closure#0}
   9:        0x10b81772c - std[4a15b4f0527ee59b]::sys_common::backtrace::__rust_end_short_backtrace::<std[4a15b4f0527ee59b]::panicking::begin_panic<rustc_errors[dfa53bcc3145749c]::ExplicitBug>::{closure#0}, !>
  10:        0x10f80f92c - std[4a15b4f0527ee59b]::panicking::begin_panic::<rustc_errors[dfa53bcc3145749c]::ExplicitBug>
  11:        0x10b81759c - std[4a15b4f0527ee59b]::panic::panic_any::<rustc_errors[dfa53bcc3145749c]::ExplicitBug>
  12:        0x10b80fe5c - <rustc_errors[dfa53bcc3145749c]::HandlerInner>::span_bug::<rustc_span[d14b04d350947fdd]::span_encoding::Span, &alloc[8854800cdb100ea]::string::String>
  13:        0x10b80fa00 - <rustc_errors[dfa53bcc3145749c]::Handler>::span_bug::<rustc_span[d14b04d350947fdd]::span_encoding::Span, &alloc[8854800cdb100ea]::string::String>
  14:        0x10b73fd9c - rustc_middle[f5dd9b07379f660d]::ty::context::tls::with_context_opt::<rustc_middle[f5dd9b07379f660d]::ty::context::tls::with_opt<rustc_middle[f5dd9b07379f660d]::util::bug::opt_span_bug_fmt<rustc_span[d14b04d350947fdd]::span_encoding::Span>::{closure#0}, ()>::{closure#0}, ()>
  15:        0x10b73fc68 - rustc_middle[f5dd9b07379f660d]::util::bug::opt_span_bug_fmt::<rustc_span[d14b04d350947fdd]::span_encoding::Span>
  16:        0x10f80f9a0 - rustc_middle[f5dd9b07379f660d]::util::bug::span_bug_fmt::<rustc_span[d14b04d350947fdd]::span_encoding::Span>
  17:        0x10b73b778 - <rustc_codegen_llvm[2f081aae4baaf7a2]::context::CodegenCx as rustc_middle[f5dd9b07379f660d]::ty::layout::LayoutOfHelpers>::handle_layout_err
  18:        0x10b734acc - <rustc_codegen_llvm[2f081aae4baaf7a2]::context::CodegenCx as rustc_middle[f5dd9b07379f660d]::ty::layout::LayoutOf>::spanned_layout_of::{closure#0}
  19:        0x10b73b0d0 - <rustc_codegen_llvm[2f081aae4baaf7a2]::context::CodegenCx as rustc_middle[f5dd9b07379f660d]::ty::layout::LayoutOf>::layout_of
  20:        0x10b72fe0c - <rustc_codegen_ssa[8d103e59afe8e517]::mir::place::PlaceRef<&rustc_codegen_llvm[2f081aae4baaf7a2]::llvm_::ffi::Value>>::project_type::<rustc_codegen_llvm[2f081aae4baaf7a2]::builder::Builder>
  21:        0x10b807e3c - <rustc_codegen_ssa[8d103e59afe8e517]::mir::FunctionCx<rustc_codegen_llvm[2f081aae4baaf7a2]::builder::Builder>>::codegen_place
  22:        0x10b7fe588 - <rustc_codegen_ssa[8d103e59afe8e517]::mir::FunctionCx<rustc_codegen_llvm[2f081aae4baaf7a2]::builder::Builder>>::codegen_rvalue_operand
  23:        0x10b804748 - <rustc_codegen_ssa[8d103e59afe8e517]::mir::FunctionCx<rustc_codegen_llvm[2f081aae4baaf7a2]::builder::Builder>>::codegen_block
  24:        0x10b7fb9c0 - rustc_codegen_ssa[8d103e59afe8e517]::mir::codegen_mir::<rustc_codegen_llvm[2f081aae4baaf7a2]::builder::Builder>
  25:        0x10b717a64 - rustc_codegen_ssa[8d103e59afe8e517]::base::codegen_instance::<rustc_codegen_llvm[2f081aae4baaf7a2]::builder::Builder>
  26:        0x10b7b65d8 - <rustc_middle[f5dd9b07379f660d]::mir::mono::MonoItem as rustc_codegen_ssa[8d103e59afe8e517]::mono_item::MonoItemExt>::define::<rustc_codegen_llvm[2f081aae4baaf7a2]::builder::Builder>
  27:        0x10b821e70 - rustc_codegen_llvm[2f081aae4baaf7a2]::base::compile_codegen_unit::module_codegen
  28:        0x10b780c40 - <rustc_query_system[22b17381a42b3400]::dep_graph::graph::DepGraph<rustc_middle[f5dd9b07379f660d]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[f5dd9b07379f660d]::ty::context::TyCtxt, rustc_span[d14b04d350947fdd]::symbol::Symbol, rustc_codegen_ssa[8d103e59afe8e517]::ModuleCodegen<rustc_codegen_llvm[2f081aae4baaf7a2]::ModuleLlvm>>
  29:        0x10b826c10 - <rustc_codegen_llvm[2f081aae4baaf7a2]::LlvmCodegenBackend as rustc_codegen_ssa[8d103e59afe8e517]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
  30:        0x10b717240 - rustc_codegen_ssa[8d103e59afe8e517]::base::codegen_crate::<rustc_codegen_llvm[2f081aae4baaf7a2]::LlvmCodegenBackend>
  31:        0x10b827d9c - <rustc_codegen_llvm[2f081aae4baaf7a2]::LlvmCodegenBackend as rustc_codegen_ssa[8d103e59afe8e517]::traits::backend::CodegenBackend>::codegen_crate
  32:        0x10b6793b8 - <rustc_session[4c9d27593fc597b6]::session::Session>::time::<alloc[8854800cdb100ea]::boxed::Box<dyn core[41fe635294967b39]::any::Any>, rustc_interface[cf09683c24aec831]::passes::start_codegen::{closure#0}>
  33:        0x10b6a6004 - rustc_interface[cf09683c24aec831]::passes::start_codegen
  34:        0x10b6a4fec - <rustc_interface[cf09683c24aec831]::passes::QueryContext>::enter::<<rustc_interface[cf09683c24aec831]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[41fe635294967b39]::result::Result<alloc[8854800cdb100ea]::boxed::Box<dyn core[41fe635294967b39]::any::Any>, rustc_errors[dfa53bcc3145749c]::ErrorGuaranteed>>
  35:        0x10b6f5f84 - <rustc_interface[cf09683c24aec831]::queries::Queries>::ongoing_codegen
  36:        0x10b5df0e8 - rustc_span[d14b04d350947fdd]::with_source_map::<core[41fe635294967b39]::result::Result<(), rustc_errors[dfa53bcc3145749c]::ErrorGuaranteed>, rustc_interface[cf09683c24aec831]::interface::run_compiler<core[41fe635294967b39]::result::Result<(), rustc_errors[dfa53bcc3145749c]::ErrorGuaranteed>, rustc_driver[3bb78e66a26ba6d7]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  37:        0x10b5d2b5c - <scoped_tls[f45245cb1acfce05]::ScopedKey<rustc_span[d14b04d350947fdd]::SessionGlobals>>::set::<rustc_interface[cf09683c24aec831]::interface::run_compiler<core[41fe635294967b39]::result::Result<(), rustc_errors[dfa53bcc3145749c]::ErrorGuaranteed>, rustc_driver[3bb78e66a26ba6d7]::run_compiler::{closure#1}>::{closure#0}, core[41fe635294967b39]::result::Result<(), rustc_errors[dfa53bcc3145749c]::ErrorGuaranteed>>
  38:        0x10b5a7878 - std[4a15b4f0527ee59b]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[cf09683c24aec831]::util::run_in_thread_pool_with_globals<rustc_interface[cf09683c24aec831]::interface::run_compiler<core[41fe635294967b39]::result::Result<(), rustc_errors[dfa53bcc3145749c]::ErrorGuaranteed>, rustc_driver[3bb78e66a26ba6d7]::run_compiler::{closure#1}>::{closure#0}, core[41fe635294967b39]::result::Result<(), rustc_errors[dfa53bcc3145749c]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[41fe635294967b39]::result::Result<(), rustc_errors[dfa53bcc3145749c]::ErrorGuaranteed>>
  39:        0x10b58e490 - <<std[4a15b4f0527ee59b]::thread::Builder>::spawn_unchecked_<rustc_interface[cf09683c24aec831]::util::run_in_thread_pool_with_globals<rustc_interface[cf09683c24aec831]::interface::run_compiler<core[41fe635294967b39]::result::Result<(), rustc_errors[dfa53bcc3145749c]::ErrorGuaranteed>, rustc_driver[3bb78e66a26ba6d7]::run_compiler::{closure#1}>::{closure#0}, core[41fe635294967b39]::result::Result<(), rustc_errors[dfa53bcc3145749c]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[41fe635294967b39]::result::Result<(), rustc_errors[dfa53bcc3145749c]::ErrorGuaranteed>>::{closure#1} as core[41fe635294967b39]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  40:        0x1033b9cbc - std::sys::unix::thread::Thread::new::thread_start::ha67a48e73a2ba1c0
  41:        0x19b00c26c - __pthread_deallocate
Backtrace

As above.

@rhomber rhomber added C-bug Category: This is a bug. 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. labels Dec 17, 2022
@Rageking8
Copy link
Contributor

@rustbot label +E-needs-mcve

@rustbot rustbot added the E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example label Dec 17, 2022
@trevyn
Copy link
Contributor

trevyn commented Dec 17, 2022

I just had a similar error in a daily CI run: https://github.com/trevyn/turbo/actions/runs/3717940350/jobs/6305763615#step:22:2010

So, probably broken between rustc 1.68.0-nightly (ec56537 2022-12-15) and 1.68.0-nightly (9c07efe 2022-12-16)

ec56537...9c07efe

@Noratrieb
Copy link
Member

Noratrieb commented Dec 17, 2022

I created an MCVE from turbo (required edition 2018):

use std::{future::Future, pin::Pin};

// Create a `T` without affecting analysis like `loop {}`.
fn create<T>() -> T {
    loop {}
}

async fn trivial_future() {}

struct Connection<H> {
    _h: H,
}

async fn complex_future<H>(conn: &Connection<H>) {
    let small_fut = async move {
        let _ = conn;
        trivial_future().await;
    };

    let mut tuple = (small_fut,);
    let (small_fut_again,) = &mut tuple;
    let _ = small_fut_again;
}

fn main() {
    let mut fut = complex_future(&Connection { _h: () });

    let mut cx = create();
    let future = unsafe { Pin::new_unchecked(&mut fut) };
    let _ = future.poll(&mut cx);
}

@Noratrieb
Copy link
Member

searched nightlies: from nightly-2022-01-01 to nightly-2022-12-17
regressed nightly: nightly-2022-12-17
searched commit range: ec56537...9c07efe
regressed commit: 03770f0

bisected with cargo-bisect-rustc v0.6.4

Host triple: x86_64-unknown-linux-gnu
Reproduce with:

cargo bisect-rustc --access github --regress ice

cc @b-naber @lcnr

@rhomber
Copy link
Author

rhomber commented Dec 17, 2022

Can confirm nightly-2022-12-12 (I could try a newer one, but haven't) works. So it's a recent change that's broken things.

@b-naber
Copy link
Contributor

b-naber commented Dec 17, 2022

Given the backtrace in the first post it does seem plausible that this ICE is caused by that change, but for some reason I cannot reproduce the ICE in your MCVE on my local branch for that PR.

@matthiaskrgr matthiaskrgr added S-has-mcve Status: A Minimal Complete and Verifiable Example has been found for this issue and removed E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example labels Dec 17, 2022
@matthiaskrgr
Copy link
Member

Hmm is this an apple-only crash? I can't reproduce on x86_64.

@Noratrieb
Copy link
Member

Just checked again, my MCVE require edition 2018.

@rhomber
Copy link
Author

rhomber commented Dec 17, 2022

No it happens on both aarch64-apple-darwin and x86_64-unknown-linux-gnu. We also have it happening on a GitHub action (which is also x86_64), several unconnected repos.

And the edition I am using is:

edition = "2021"

@matthiaskrgr
Copy link
Member

oh weird, I see now that this does only crash with -Zmir-opt-level<=1 but 2 or anything above will make it compile fine, hm.

@b-naber
Copy link
Contributor

b-naber commented Dec 18, 2022

I still cannot reproduce this on my local branch even when using different mir-opt-levels.

@Noratrieb
Copy link
Member

Noratrieb commented Dec 18, 2022

I can reproduce my example with the current master branch using rustc --edition 2018 file.rs

backtrace
error: internal compiler error: compiler/rustc_codegen_llvm/src/context.rs:969:13: failed to get layout for `Connection<H>`: the type `H` has an unknown layout

thread 'rustc' panicked at 'Box<dyn Any>', /home/nilsh/projects/rust/compiler/rustc_errors/src/lib.rs:973:33
stack backtrace:
   0:     0x7f2b3af34647 - std::backtrace_rs::backtrace::libunwind::trace::hbda7f17d8173f1da
                               at /home/nilsh/projects/rust/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f2b3af34647 - std::backtrace_rs::backtrace::trace_unsynchronized::h8133d047512bc619
                               at /home/nilsh/projects/rust/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f2b3af34647 - std::sys_common::backtrace::_print_fmt::h2bc30874d5baf609
                               at /home/nilsh/projects/rust/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7f2b3af34647 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4dca3ce2a252ea70
                               at /home/nilsh/projects/rust/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f2b3b00ab28 - core::fmt::write::hb4f3f6f08e10fabf
                               at /home/nilsh/projects/rust/library/core/src/fmt/mod.rs:1208:17
   5:     0x7f2b3af99fe1 - std::io::Write::write_fmt::hf860c428b5d56ea2
                               at /home/nilsh/projects/rust/library/std/src/io/mod.rs:1682:15
   6:     0x7f2b3af3446a - std::sys_common::backtrace::_print::hc34de8c5877b433d
                               at /home/nilsh/projects/rust/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7f2b3af3446a - std::sys_common::backtrace::print::ha0dbaa3c0bce9d10
                               at /home/nilsh/projects/rust/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7f2b3af414c7 - std::panicking::default_hook::{{closure}}::h86122d147d40ec67
   9:     0x7f2b3af412c0 - std::panicking::default_hook::h1c25ed6507f0a719
                               at /home/nilsh/projects/rust/library/std/src/panicking.rs:286:9
  10:     0x7f2b3c7f6ff4 - <alloc[d426fd0be2d16a6b]::boxed::Box<dyn for<'a, 'b> core[584d80f921d3c2b7]::ops::function::Fn<(&'a core[584d80f921d3c2b7]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[584d80f921d3c2b7]::marker::Sync + core[584d80f921d3c2b7]::marker::Send> as core[584d80f921d3c2b7]::ops::function::Fn<(&core[584d80f921d3c2b7]::panic::panic_info::PanicInfo,)>>::call
                               at /home/nilsh/projects/rust/library/alloc/src/boxed.rs:2024:9
  11:     0x7f2b3c7f6ff4 - rustc_driver[c0ebef4b5a350350]::DEFAULT_HOOK::{closure#0}::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_driver/src/lib.rs:1202:13
  12:     0x7f2b3c7f6ff4 - <rustc_driver[c0ebef4b5a350350]::DEFAULT_HOOK::{closure#0}::{closure#0} as core[584d80f921d3c2b7]::ops::function::FnOnce<(&core[584d80f921d3c2b7]::panic::panic_info::PanicInfo,)>>::call_once
                               at /home/nilsh/projects/rust/library/core/src/ops/function.rs:422:5
  13:     0x7f2b3c7f6ff4 - <rustc_driver[c0ebef4b5a350350]::DEFAULT_HOOK::{closure#0}::{closure#0} as core[584d80f921d3c2b7]::ops::function::FnOnce<(&core[584d80f921d3c2b7]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0}
                               at /home/nilsh/projects/rust/library/core/src/ops/function.rs:422:5
  14:     0x7f2b3af41b54 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hf5a3aab415c4e1e7
                               at /home/nilsh/projects/rust/library/alloc/src/boxed.rs:2024:9
  15:     0x7f2b3af41b54 - std::panicking::rust_panic_with_hook::h4cc86ae4240d3987
                               at /home/nilsh/projects/rust/library/std/src/panicking.rs:692:13
  16:     0x7f2b3cb0af13 - std[adc46dc960aa655]::panicking::begin_panic::<rustc_errors[2fbccf98e0fb6daa]::ExplicitBug>::{closure#0}
                               at /home/nilsh/projects/rust/library/std/src/panicking.rs:608:9
  17:     0x7f2b3cb075d6 - std[adc46dc960aa655]::sys_common::backtrace::__rust_end_short_backtrace::<std[adc46dc960aa655]::panicking::begin_panic<rustc_errors[2fbccf98e0fb6daa]::ExplicitBug>::{closure#0}, !>
                               at /home/nilsh/projects/rust/library/std/src/sys_common/backtrace.rs:137:18
  18:     0x7f2b3cb06c46 - std[adc46dc960aa655]::panicking::begin_panic::<rustc_errors[2fbccf98e0fb6daa]::ExplicitBug>
                               at /home/nilsh/projects/rust/library/std/src/panicking.rs:607:12
  19:     0x7f2b3cb40eb6 - std[adc46dc960aa655]::panic::panic_any::<rustc_errors[2fbccf98e0fb6daa]::ExplicitBug>
                               at /home/nilsh/projects/rust/library/std/src/panic.rs:61:5
  20:     0x7f2b3cb40e58 - <rustc_errors[2fbccf98e0fb6daa]::HandlerInner>::span_bug::<rustc_span[d50b082f3e833889]::span_encoding::Span, &alloc[d426fd0be2d16a6b]::string::String>
                               at /home/nilsh/projects/rust/compiler/rustc_errors/src/lib.rs:1514:9
  21:     0x7f2b3cb40a17 - <rustc_errors[2fbccf98e0fb6daa]::Handler>::span_bug::<rustc_span[d50b082f3e833889]::span_encoding::Span, &alloc[d426fd0be2d16a6b]::string::String>
                               at /home/nilsh/projects/rust/compiler/rustc_errors/src/lib.rs:973:9
  22:     0x7f2b3cb5a564 - rustc_middle[59b60a8cad6ad26d]::util::bug::opt_span_bug_fmt::<rustc_span[d50b082f3e833889]::span_encoding::Span>::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/util/bug.rs:34:40
  23:     0x7f2b3cb5a564 - rustc_middle[59b60a8cad6ad26d]::ty::context::tls::with_opt::<rustc_middle[59b60a8cad6ad26d]::util::bug::opt_span_bug_fmt<rustc_span[d50b082f3e833889]::span_encoding::Span>::{closure#0}, ()>::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/ty/context.rs:1376:40
  24:     0x7f2b3cb5a564 - rustc_middle[59b60a8cad6ad26d]::ty::context::tls::with_context_opt::<rustc_middle[59b60a8cad6ad26d]::ty::context::tls::with_opt<rustc_middle[59b60a8cad6ad26d]::util::bug::opt_span_bug_fmt<rustc_span[d50b082f3e833889]::span_encoding::Span>::{closure#0}, ()>::{closure#0}, ()>
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/ty/context.rs:1328:22
  25:     0x7f2b3cb5a564 - rustc_middle[59b60a8cad6ad26d]::ty::context::tls::with_opt::<rustc_middle[59b60a8cad6ad26d]::util::bug::opt_span_bug_fmt<rustc_span[d50b082f3e833889]::span_encoding::Span>::{closure#0}, ()>
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/ty/context.rs:1376:9
  26:     0x7f2b3cb5a3a9 - rustc_middle[59b60a8cad6ad26d]::util::bug::opt_span_bug_fmt::<rustc_span[d50b082f3e833889]::span_encoding::Span>
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/util/bug.rs:31:5
  27:     0x7f2b3cb5a367 - rustc_middle[59b60a8cad6ad26d]::util::bug::span_bug_fmt::<rustc_span[d50b082f3e833889]::span_encoding::Span>
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/util/bug.rs:22:5
  28:     0x7f2b3cb0bf07 - <rustc_codegen_llvm[ef8529757c6fb92]::context::CodegenCx as rustc_middle[59b60a8cad6ad26d]::ty::layout::LayoutOfHelpers>::handle_layout_err
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_llvm/src/context.rs:969:13
  29:     0x7f2b3cb0b812 - <rustc_codegen_llvm[ef8529757c6fb92]::context::CodegenCx as rustc_middle[59b60a8cad6ad26d]::ty::layout::LayoutOf>::spanned_layout_of::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/ty/layout.rs:528:32
  30:     0x7f2b3cb0bd82 - <core[584d80f921d3c2b7]::result::Result<rustc_target[9d5e5d6a8fd248c]::abi::TyAndLayout<rustc_middle[59b60a8cad6ad26d]::ty::Ty>, rustc_middle[59b60a8cad6ad26d]::ty::layout::LayoutError>>::map_err::<!, <rustc_codegen_llvm[ef8529757c6fb92]::context::CodegenCx as rustc_middle[59b60a8cad6ad26d]::ty::layout::LayoutOf>::spanned_layout_of::{closure#0}>
                               at /home/nilsh/projects/rust/library/core/src/result.rs:860:27
  31:     0x7f2b3cb0bd82 - <rustc_codegen_llvm[ef8529757c6fb92]::context::CodegenCx as rustc_middle[59b60a8cad6ad26d]::ty::layout::LayoutOf>::spanned_layout_of
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/ty/layout.rs:527:13
  32:     0x7f2b3cb0bd82 - <rustc_codegen_llvm[ef8529757c6fb92]::context::CodegenCx as rustc_middle[59b60a8cad6ad26d]::ty::layout::LayoutOf>::layout_of
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/ty/layout.rs:514:9
  33:     0x7f2b3cb0c63c - <rustc_target[9d5e5d6a8fd248c]::abi::TyAndLayout<rustc_middle[59b60a8cad6ad26d]::ty::Ty> as rustc_codegen_llvm[ef8529757c6fb92]::type_of::LayoutLlvmExt>::llvm_type
  34:     0x7f2b3cb0f2bc - rustc_codegen_llvm[ef8529757c6fb92]::type_of::struct_llfields
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_llvm/src/type_of.rs:138:21
  35:     0x7f2b3cb0e5f2 - rustc_codegen_llvm[ef8529757c6fb92]::type_of::uncached_llvm_type
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_llvm/src/type_of.rs:88:63
  36:     0x7f2b3cb0c5dd - <rustc_target[9d5e5d6a8fd248c]::abi::TyAndLayout<rustc_middle[59b60a8cad6ad26d]::ty::Ty> as rustc_codegen_llvm[ef8529757c6fb92]::type_of::LayoutLlvmExt>::llvm_type
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_llvm/src/type_of.rs:276:13
  37:     0x7f2b3cad8756 - <rustc_codegen_llvm[ef8529757c6fb92]::context::CodegenCx as rustc_codegen_ssa[9d9dcb37c59659f6]::traits::type_::LayoutTypeMethods>::backend_type
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_llvm/src/type_.rs:257:9
  38:     0x7f2b3cad8756 - <rustc_codegen_ssa[9d9dcb37c59659f6]::mir::place::PlaceRef<&rustc_codegen_llvm[ef8529757c6fb92]::llvm_::ffi::Value>>::project_type::<rustc_codegen_llvm[ef8529757c6fb92]::builder::Builder>
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_ssa/src/mir/place.rs:517:26
  39:     0x7f2b3cb23f98 - <rustc_codegen_ssa[9d9dcb37c59659f6]::mir::FunctionCx<rustc_codegen_llvm[ef8529757c6fb92]::builder::Builder>>::codegen_place
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_ssa/src/mir/place.rs:565:56
  40:     0x7f2b3cb196fd - <rustc_codegen_ssa[9d9dcb37c59659f6]::mir::FunctionCx<rustc_codegen_llvm[ef8529757c6fb92]::builder::Builder>>::codegen_place_to_pointer::<<rustc_codegen_ssa[9d9dcb37c59659f6]::mir::FunctionCx<rustc_codegen_llvm[ef8529757c6fb92]::builder::Builder>>::codegen_rvalue_operand::{closure#0}>
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_ssa/src/mir/rvalue.rs:511:24
  41:     0x7f2b3cb196fd - <rustc_codegen_ssa[9d9dcb37c59659f6]::mir::FunctionCx<rustc_codegen_llvm[ef8529757c6fb92]::builder::Builder>>::codegen_rvalue_operand
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_ssa/src/mir/rvalue.rs:356:17
  42:     0x7f2b3cb14b54 - <rustc_codegen_ssa[9d9dcb37c59659f6]::mir::FunctionCx<rustc_codegen_llvm[ef8529757c6fb92]::builder::Builder>>::codegen_statement
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_ssa/src/mir/statement.rs:22:43
  43:     0x7f2b3cb14b54 - <rustc_codegen_ssa[9d9dcb37c59659f6]::mir::FunctionCx<rustc_codegen_llvm[ef8529757c6fb92]::builder::Builder>>::codegen_block
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_ssa/src/mir/block.rs:1226:17
  44:     0x7f2b3cb14b54 - rustc_codegen_ssa[9d9dcb37c59659f6]::mir::codegen_mir::<rustc_codegen_llvm[ef8529757c6fb92]::builder::Builder>
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_ssa/src/mir/mod.rs:261:9
  45:     0x7f2b3ca4ea28 - rustc_codegen_ssa[9d9dcb37c59659f6]::base::codegen_instance::<rustc_codegen_llvm[ef8529757c6fb92]::builder::Builder>
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_ssa/src/base.rs:398:5
  46:     0x7f2b3cb51f86 - <rustc_middle[59b60a8cad6ad26d]::mir::mono::MonoItem as rustc_codegen_ssa[9d9dcb37c59659f6]::mono_item::MonoItemExt>::define::<rustc_codegen_llvm[ef8529757c6fb92]::builder::Builder>
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_ssa/src/mono_item.rs:91:17
  47:     0x7f2b3c9f7c6b - rustc_codegen_llvm[ef8529757c6fb92]::base::compile_codegen_unit::module_codegen
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_llvm/src/base.rs:95:17
  48:     0x7f2b3cb3c642 - <rustc_query_system[e73a8ec897c74754]::dep_graph::graph::DepGraph<rustc_middle[59b60a8cad6ad26d]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[59b60a8cad6ad26d]::ty::context::TyCtxt, rustc_span[d50b082f3e833889]::symbol::Symbol, rustc_codegen_ssa[9d9dcb37c59659f6]::ModuleCodegen<rustc_codegen_llvm[ef8529757c6fb92]::ModuleLlvm>>
                               at /home/nilsh/projects/rust/compiler/rustc_query_system/src/dep_graph/graph.rs:296:14
  49:     0x7f2b3c9f788a - rustc_codegen_llvm[ef8529757c6fb92]::base::compile_codegen_unit
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_llvm/src/base.rs:64:23
  50:     0x7f2b3ca4dd2e - <rustc_codegen_llvm[ef8529757c6fb92]::LlvmCodegenBackend as rustc_codegen_ssa[9d9dcb37c59659f6]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_llvm/src/lib.rs:128:9
  51:     0x7f2b3ca4dd2e - rustc_codegen_ssa[9d9dcb37c59659f6]::base::codegen_crate::<rustc_codegen_llvm[ef8529757c6fb92]::LlvmCodegenBackend>
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_ssa/src/base.rs:737:34
  52:     0x7f2b3cb6ffb4 - <rustc_codegen_llvm[ef8529757c6fb92]::LlvmCodegenBackend as rustc_codegen_ssa[9d9dcb37c59659f6]::traits::backend::CodegenBackend>::codegen_crate
                               at /home/nilsh/projects/rust/compiler/rustc_codegen_llvm/src/lib.rs:335:18
  53:     0x7f2b3c9beaff - rustc_interface[a457c10140b33d94]::passes::start_codegen::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_interface/src/passes.rs:989:9
  54:     0x7f2b3c9beaff - <rustc_data_structures[b3d31ca178a02ff3]::profiling::VerboseTimingGuard>::run::<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_interface[a457c10140b33d94]::passes::start_codegen::{closure#0}>
                               at /home/nilsh/projects/rust/compiler/rustc_data_structures/src/profiling.rs:726:9
  55:     0x7f2b3c9beaff - <rustc_session[dd3e8ae2581a4383]::session::Session>::time::<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_interface[a457c10140b33d94]::passes::start_codegen::{closure#0}>
                               at /home/nilsh/projects/rust/compiler/rustc_session/src/utils.rs:10:9
  56:     0x7f2b3c98b979 - rustc_interface[a457c10140b33d94]::passes::start_codegen
                               at /home/nilsh/projects/rust/compiler/rustc_interface/src/passes.rs:988:19
  57:     0x7f2b3c9dd69d - <rustc_interface[a457c10140b33d94]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_interface/src/queries.rs:253:20
  58:     0x7f2b3c9dd69d - <rustc_interface[a457c10140b33d94]::passes::QueryContext>::enter::<<rustc_interface[a457c10140b33d94]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_interface/src/passes.rs:765:42
  59:     0x7f2b3c9dd69d - rustc_middle[59b60a8cad6ad26d]::ty::context::tls::enter_context::<<rustc_interface[a457c10140b33d94]::passes::QueryContext>::enter<<rustc_interface[a457c10140b33d94]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}, core[584d80f921d3c2b7]::result::Result<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/ty/context.rs:1311:50
  60:     0x7f2b3c9dd69d - rustc_middle[59b60a8cad6ad26d]::ty::context::tls::set_tlv::<rustc_middle[59b60a8cad6ad26d]::ty::context::tls::enter_context<<rustc_interface[a457c10140b33d94]::passes::QueryContext>::enter<<rustc_interface[a457c10140b33d94]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}, core[584d80f921d3c2b7]::result::Result<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}, core[584d80f921d3c2b7]::result::Result<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/ty/context.rs:1295:9
  61:     0x7f2b3c9dd69d - rustc_middle[59b60a8cad6ad26d]::ty::context::tls::enter_context::<<rustc_interface[a457c10140b33d94]::passes::QueryContext>::enter<<rustc_interface[a457c10140b33d94]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}, core[584d80f921d3c2b7]::result::Result<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>
                               at /home/nilsh/projects/rust/compiler/rustc_middle/src/ty/context.rs:1311:9
  62:     0x7f2b3c9dd69d - <rustc_interface[a457c10140b33d94]::passes::QueryContext>::enter::<<rustc_interface[a457c10140b33d94]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>
                               at /home/nilsh/projects/rust/compiler/rustc_interface/src/passes.rs:765:9
  63:     0x7f2b3c96c2b4 - <rustc_interface[a457c10140b33d94]::queries::Queries>::ongoing_codegen::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_interface/src/queries.rs:240:13
  64:     0x7f2b3c96c2b4 - <core[584d80f921d3c2b7]::option::Option<core[584d80f921d3c2b7]::result::Result<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>, rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>>::get_or_insert_with::<<rustc_interface[a457c10140b33d94]::queries::Queries>::ongoing_codegen::{closure#0}>
                               at /home/nilsh/projects/rust/library/core/src/option.rs:1590:49
  65:     0x7f2b3c96c2b4 - <rustc_interface[a457c10140b33d94]::queries::Query<alloc[d426fd0be2d16a6b]::boxed::Box<dyn core[584d80f921d3c2b7]::any::Any>>>::compute::<<rustc_interface[a457c10140b33d94]::queries::Queries>::ongoing_codegen::{closure#0}>
                               at /home/nilsh/projects/rust/compiler/rustc_interface/src/queries.rs:38:9
  66:     0x7f2b3c7f02f9 - rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}::{closure#2}
                               at /home/nilsh/projects/rust/compiler/rustc_driver/src/lib.rs:395:13
  67:     0x7f2b3c7f02f9 - <rustc_interface[a457c10140b33d94]::interface::Compiler>::enter::<rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}::{closure#2}, core[584d80f921d3c2b7]::result::Result<core[584d80f921d3c2b7]::option::Option<rustc_interface[a457c10140b33d94]::queries::Linker>, rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>
                               at /home/nilsh/projects/rust/compiler/rustc_interface/src/queries.rs:380:19
  68:     0x7f2b3c813f26 - rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}
                               at /home/nilsh/projects/rust/compiler/rustc_driver/src/lib.rs:306:22
  69:     0x7f2b3c813f26 - rustc_interface[a457c10140b33d94]::interface::run_compiler::<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_interface/src/interface.rs:327:21
  70:     0x7f2b3c813f26 - rustc_span[d50b082f3e833889]::with_source_map::<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
                               at /home/nilsh/projects/rust/compiler/rustc_span/src/lib.rs:1023:5
  71:     0x7f2b3c7ecb18 - rustc_interface[a457c10140b33d94]::interface::run_compiler::<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_interface/src/interface.rs:321:13
  72:     0x7f2b3c7ecb18 - <scoped_tls[3f7a8f801319db86]::ScopedKey<rustc_span[d50b082f3e833889]::SessionGlobals>>::set::<rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>
                               at /home/nilsh/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137:9
  73:     0x7f2b3c7f419a - rustc_span[d50b082f3e833889]::create_session_globals_then::<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}>
                               at /home/nilsh/projects/rust/compiler/rustc_span/src/lib.rs:111:5
  74:     0x7f2b3c7f419a - rustc_interface[a457c10140b33d94]::util::run_in_thread_pool_with_globals::<rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}::{closure#0}
                               at /home/nilsh/projects/rust/compiler/rustc_interface/src/util.rs:145:38
  75:     0x7f2b3c7f419a - std[adc46dc960aa655]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[a457c10140b33d94]::util::run_in_thread_pool_with_globals<rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>
                               at /home/nilsh/projects/rust/library/std/src/sys_common/backtrace.rs:121:18
  76:     0x7f2b3c7e500b - <std[adc46dc960aa655]::thread::Builder>::spawn_unchecked_::<rustc_interface[a457c10140b33d94]::util::run_in_thread_pool_with_globals<rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#1}::{closure#0}
                               at /home/nilsh/projects/rust/library/std/src/thread/mod.rs:550:17
  77:     0x7f2b3c7e500b - <core[584d80f921d3c2b7]::panic::unwind_safe::AssertUnwindSafe<<std[adc46dc960aa655]::thread::Builder>::spawn_unchecked_<rustc_interface[a457c10140b33d94]::util::run_in_thread_pool_with_globals<rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#1}::{closure#0}> as core[584d80f921d3c2b7]::ops::function::FnOnce<()>>::call_once
                               at /home/nilsh/projects/rust/library/core/src/panic/unwind_safe.rs:271:9
  78:     0x7f2b3c7e500b - std[adc46dc960aa655]::panicking::try::do_call::<core[584d80f921d3c2b7]::panic::unwind_safe::AssertUnwindSafe<<std[adc46dc960aa655]::thread::Builder>::spawn_unchecked_<rustc_interface[a457c10140b33d94]::util::run_in_thread_pool_with_globals<rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>
                               at /home/nilsh/projects/rust/library/std/src/panicking.rs:483:40
  79:     0x7f2b3c7e500b - std[adc46dc960aa655]::panicking::try::<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, core[584d80f921d3c2b7]::panic::unwind_safe::AssertUnwindSafe<<std[adc46dc960aa655]::thread::Builder>::spawn_unchecked_<rustc_interface[a457c10140b33d94]::util::run_in_thread_pool_with_globals<rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
                               at /home/nilsh/projects/rust/library/std/src/panicking.rs:447:19
  80:     0x7f2b3c7d3a7a - std[adc46dc960aa655]::panic::catch_unwind::<core[584d80f921d3c2b7]::panic::unwind_safe::AssertUnwindSafe<<std[adc46dc960aa655]::thread::Builder>::spawn_unchecked_<rustc_interface[a457c10140b33d94]::util::run_in_thread_pool_with_globals<rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>
                               at /home/nilsh/projects/rust/library/std/src/panic.rs:137:14
  81:     0x7f2b3c7d3a7a - <std[adc46dc960aa655]::thread::Builder>::spawn_unchecked_::<rustc_interface[a457c10140b33d94]::util::run_in_thread_pool_with_globals<rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#1}
                               at /home/nilsh/projects/rust/library/std/src/thread/mod.rs:549:30
  82:     0x7f2b3c7d3a7a - <<std[adc46dc960aa655]::thread::Builder>::spawn_unchecked_<rustc_interface[a457c10140b33d94]::util::run_in_thread_pool_with_globals<rustc_interface[a457c10140b33d94]::interface::run_compiler<core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>, rustc_driver[c0ebef4b5a350350]::run_compiler::{closure#1}>::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[584d80f921d3c2b7]::result::Result<(), rustc_errors[2fbccf98e0fb6daa]::ErrorGuaranteed>>::{closure#1} as core[584d80f921d3c2b7]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /home/nilsh/projects/rust/library/core/src/ops/function.rs:422:5
  83:     0x7f2b3af90548 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3587e93147111652
                               at /home/nilsh/projects/rust/library/alloc/src/boxed.rs:1990:9
  84:     0x7f2b3af90548 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3f0a63b14d118cff
                               at /home/nilsh/projects/rust/library/alloc/src/boxed.rs:1990:9
  85:     0x7f2b3af7413c - std::sys::unix::thread::Thread::new::thread_start::hd1102045f43f18a5
                               at /home/nilsh/projects/rust/library/std/src/sys/unix/thread.rs:108:17
  86:     0x7f2b3ac86b43 - start_thread
                               at ./nptl/./nptl/pthread_create.c:442:8
  87:     0x7f2b3ad18a00 - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
  88:                0x0 - <unknown>

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.68.0-dev running on x86_64-unknown-linux-gnu

query stack during panic:
end of query stack
error: aborting due to previous error
my config and env
rustc 1.68.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.68.0-dev
LLVM version: 15.0.6
profile = "compiler"
changelog-seen = 2

[rust]
debug = true
incremental = true
deny-warnings = false
overflow-checks = true
use-lld = true

It also doesn't ICE for me with -Zmir-opt-level > 1, the MIR opts probably optimize away the interesting part that causes the ICE.

@lcnr lcnr added the regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. label Dec 19, 2022
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Dec 19, 2022
fasterthanlime added a commit to bearcove/loona that referenced this issue Dec 19, 2022
@ftupas
Copy link

ftupas commented Dec 19, 2022

hello there, had a similar error in a CI run: https://github.com/keep-starknet-strange/beerus/actions/runs/3720223159/jobs/6309558454

error: internal compiler error: compiler/rustc_codegen_llvm/src/context.rs:969:13: failed to get layout for `&mut Pin<&mut 
server::shutdown::Graceful<rocket::http::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, 
service::make::MakeServiceFn<[closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::
{closure#2}]>, rocket::Shutdown, hyper::common::exec::Exec>>`: unable to determine layout for `&mut Pin<&mut 
server::shutdown::Graceful<rocket::http::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, 
service::make::MakeServiceFn<[closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::
{closure#2}]>, rocket::Shutdown, hyper::common::exec::Exec>>` because `&mut Pin<&mut 
server::shutdown::Graceful<rocket::http::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, 
service::make::MakeServiceFn<[closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::
{closure#2}]>, rocket::Shutdown, hyper::common::exec::Exec>>` cannot be normalized

...
note: rustc 1.68.0-nightly (9c07efe84 2022-12-16) running on x86_64-unknown-linux-gnu)

@matthiaskrgr matthiaskrgr pinned this issue Dec 19, 2022
@jackh726 jackh726 added P-critical Critical priority and removed I-prioritize Issue: Indicates that prioritization has been requested for this issue. labels Dec 19, 2022
@jackh726
Copy link
Member

Assigning this as P-critical. We should get a fix or revert today if we can. It's getting hit a lot.

@pichain001
Copy link

I updated the compiler this morning to check and the rocket code doesn't pass compilation still. What is the expected timeframe to get this bug fixed (either with a corrective or a temporary patch as I could see in the trail)? Thanks in advance.

@dimm-com-ua
Copy link

dimm-com-ua commented Dec 20, 2022

I updated the compiler this morning to check and the rocket code doesn't pass compilation still. What is the expected timeframe to get this bug fixed (either with a corrective or a temporary patch as I could see in the trail)? Thanks in advance.

Have the same problem as before. Rocket application can't be compiled with the same errors as yesterday.

@lqd
Copy link
Member

lqd commented Dec 20, 2022

The revert fixing this issue has already been merged, but has missed the nightly-2022-12-20 cutoff (the current nightly, rustc -v: 935dc0721 2022-12-19) and will be present in tomorrow's nightly.

@justinacolmena
Copy link

Simple async hello world application works on stable 1.66.0, I will keep testing it.
https://github.com/justinacolmena/farmgate/tree/15777c7ed2c865b70adde7c97f4465cef816df2f
rustc 1.68.0-nightly (935dc07 2022-12-19)

error: internal compiler error: compiler/rustc_codegen_llvm/src/context.rs:971:13: failed to get layout for `&mut Pin<&mut server::shutdown::Graceful<rocket::http::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, service::make::MakeServiceFn<[closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::{closure#2}]>, rocket::Shutdown, hyper::common::exec::Exec>>`: unable to determine layout for `&mut Pin<&mut server::shutdown::Graceful<rocket::http::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, service::make::MakeServiceFn<[closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::{closure#2}]>, rocket::Shutdown, hyper::common::exec::Exec>>` because `&mut Pin<&mut server::shutdown::Graceful<rocket::http::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, service::make::MakeServiceFn<[closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::{closure#2}]>, rocket::Shutdown, hyper::common::exec::Exec>>` cannot be normalized

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/compiler/rustc_errors/src/lib.rs:973:33
stack backtrace:
   0:     0x7fea74365a7a - std::backtrace_rs::backtrace::libunwind::trace::h06c3ddb908575635
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fea74365a7a - std::backtrace_rs::backtrace::trace_unsynchronized::h8bfc3753e1cc3345
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fea74365a7a - std::sys_common::backtrace::_print_fmt::h3c304feda98d6679
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fea74365a7a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h98af9289a7a29dc2
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fea743c87ae - core::fmt::write::h02538848739b7e2a
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/core/src/fmt/mod.rs:1208:17
   5:     0x7fea74355f45 - std::io::Write::write_fmt::h4aac2f2c3f0128af
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/std/src/io/mod.rs:1682:15
   6:     0x7fea74365845 - std::sys_common::backtrace::_print::h2e2acfe71f2fdb67
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7fea74365845 - std::sys_common::backtrace::print::h5bf077c253fab052
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7fea7436858f - std::panicking::default_hook::{{closure}}::h0ceeeedebdf177d0
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/std/src/panicking.rs:267:22
   9:     0x7fea743682cb - std::panicking::default_hook::h7d6f04e84940bd1d
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/std/src/panicking.rs:286:9
  10:     0x7fea77640511 - rustc_driver[3622bb61b1ebe64a]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7fea74368dcd - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hc60f5ae29562b326
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/alloc/src/boxed.rs:2032:9
  12:     0x7fea74368dcd - std::panicking::rust_panic_with_hook::hce0f8648dbfb386b
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/std/src/panicking.rs:692:13
  13:     0x7fea774d3a81 - std[688abfdbcfe52504]::panicking::begin_panic::<rustc_errors[19d12f94925af316]::ExplicitBug>::{closure#0}
  14:     0x7fea774d3156 - std[688abfdbcfe52504]::sys_common::backtrace::__rust_end_short_backtrace::<std[688abfdbcfe52504]::panicking::begin_panic<rustc_errors[19d12f94925af316]::ExplicitBug>::{closure#0}, !>
  15:     0x7fea7746cb46 - std[688abfdbcfe52504]::panicking::begin_panic::<rustc_errors[19d12f94925af316]::ExplicitBug>
  16:     0x7fea774d0376 - std[688abfdbcfe52504]::panic::panic_any::<rustc_errors[19d12f94925af316]::ExplicitBug>
  17:     0x7fea774d0299 - <rustc_errors[19d12f94925af316]::HandlerInner>::span_bug::<rustc_span[ea560f4838c45ec0]::span_encoding::Span, &alloc[b02cc7237b8b6455]::string::String>
  18:     0x7fea774cff00 - <rustc_errors[19d12f94925af316]::Handler>::span_bug::<rustc_span[ea560f4838c45ec0]::span_encoding::Span, &alloc[b02cc7237b8b6455]::string::String>
  19:     0x7fea774d33d9 - rustc_middle[f828bfe4cd5e1a59]::ty::context::tls::with_context_opt::<rustc_middle[f828bfe4cd5e1a59]::ty::context::tls::with_opt<rustc_middle[f828bfe4cd5e1a59]::util::bug::opt_span_bug_fmt<rustc_span[ea560f4838c45ec0]::span_encoding::Span>::{closure#0}, ()>::{closure#0}, ()>
  20:     0x7fea774d3276 - rustc_middle[f828bfe4cd5e1a59]::util::bug::opt_span_bug_fmt::<rustc_span[ea560f4838c45ec0]::span_encoding::Span>
  21:     0x7fea75d8f694 - rustc_middle[f828bfe4cd5e1a59]::util::bug::span_bug_fmt::<rustc_span[ea560f4838c45ec0]::span_encoding::Span>
  22:     0x7fea77476cc2 - <rustc_codegen_llvm[74aa7289b70d0100]::context::CodegenCx as rustc_middle[f828bfe4cd5e1a59]::ty::layout::LayoutOfHelpers>::handle_layout_err
  23:     0x7fea77473801 - <rustc_codegen_llvm[74aa7289b70d0100]::context::CodegenCx as rustc_middle[f828bfe4cd5e1a59]::ty::layout::LayoutOf>::spanned_layout_of::{closure#0}
  24:     0x7fea774766fa - <rustc_codegen_llvm[74aa7289b70d0100]::context::CodegenCx as rustc_middle[f828bfe4cd5e1a59]::ty::layout::LayoutOf>::layout_of
  25:     0x7fea7746bb06 - <rustc_codegen_ssa[cc351e334a9b8a56]::mir::place::PlaceRef<&rustc_codegen_llvm[74aa7289b70d0100]::llvm_::ffi::Value>>::project_type::<rustc_codegen_llvm[74aa7289b70d0100]::builder::Builder>
  26:     0x7fea75d93c39 - <rustc_codegen_ssa[cc351e334a9b8a56]::mir::FunctionCx<rustc_codegen_llvm[74aa7289b70d0100]::builder::Builder>>::codegen_place
  27:     0x7fea75d6f4f8 - <rustc_codegen_ssa[cc351e334a9b8a56]::mir::FunctionCx<rustc_codegen_llvm[74aa7289b70d0100]::builder::Builder>>::codegen_block
  28:     0x7fea75d5d207 - rustc_codegen_ssa[cc351e334a9b8a56]::mir::codegen_mir::<rustc_codegen_llvm[74aa7289b70d0100]::builder::Builder>
  29:     0x7fea76b0fd16 - rustc_codegen_llvm[74aa7289b70d0100]::base::compile_codegen_unit::module_codegen
  30:     0x7fea76ce625c - <rustc_query_system[ffa0917f108ec877]::dep_graph::graph::DepGraph<rustc_middle[f828bfe4cd5e1a59]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[f828bfe4cd5e1a59]::ty::context::TyCtxt, rustc_span[ea560f4838c45ec0]::symbol::Symbol, rustc_codegen_ssa[cc351e334a9b8a56]::ModuleCodegen<rustc_codegen_llvm[74aa7289b70d0100]::ModuleLlvm>>
  31:     0x7fea76ce5e37 - <rustc_codegen_llvm[74aa7289b70d0100]::LlvmCodegenBackend as rustc_codegen_ssa[cc351e334a9b8a56]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
  32:     0x7fea76ce3883 - rustc_codegen_ssa[cc351e334a9b8a56]::base::codegen_crate::<rustc_codegen_llvm[74aa7289b70d0100]::LlvmCodegenBackend>
  33:     0x7fea76ce3029 - <rustc_codegen_llvm[74aa7289b70d0100]::LlvmCodegenBackend as rustc_codegen_ssa[cc351e334a9b8a56]::traits::backend::CodegenBackend>::codegen_crate
  34:     0x7fea768d7481 - <rustc_session[951b5ce950426db2]::session::Session>::time::<alloc[b02cc7237b8b6455]::boxed::Box<dyn core[62c015fcd585be4a]::any::Any>, rustc_interface[299971c75fff0058]::passes::start_codegen::{closure#0}>
  35:     0x7fea768d6fa9 - rustc_interface[299971c75fff0058]::passes::start_codegen
  36:     0x7fea768d4ca6 - <rustc_interface[299971c75fff0058]::passes::QueryContext>::enter::<<rustc_interface[299971c75fff0058]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[62c015fcd585be4a]::result::Result<alloc[b02cc7237b8b6455]::boxed::Box<dyn core[62c015fcd585be4a]::any::Any>, rustc_errors[19d12f94925af316]::ErrorGuaranteed>>
  37:     0x7fea768d2156 - <rustc_interface[299971c75fff0058]::queries::Queries>::ongoing_codegen
  38:     0x7fea768d1677 - <rustc_interface[299971c75fff0058]::interface::Compiler>::enter::<rustc_driver[3622bb61b1ebe64a]::run_compiler::{closure#1}::{closure#2}, core[62c015fcd585be4a]::result::Result<core[62c015fcd585be4a]::option::Option<rustc_interface[299971c75fff0058]::queries::Linker>, rustc_errors[19d12f94925af316]::ErrorGuaranteed>>
  39:     0x7fea768cc658 - rustc_span[ea560f4838c45ec0]::with_source_map::<core[62c015fcd585be4a]::result::Result<(), rustc_errors[19d12f94925af316]::ErrorGuaranteed>, rustc_interface[299971c75fff0058]::interface::run_compiler<core[62c015fcd585be4a]::result::Result<(), rustc_errors[19d12f94925af316]::ErrorGuaranteed>, rustc_driver[3622bb61b1ebe64a]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  40:     0x7fea768cc145 - <scoped_tls[6f6de2f0677d8068]::ScopedKey<rustc_span[ea560f4838c45ec0]::SessionGlobals>>::set::<rustc_interface[299971c75fff0058]::interface::run_compiler<core[62c015fcd585be4a]::result::Result<(), rustc_errors[19d12f94925af316]::ErrorGuaranteed>, rustc_driver[3622bb61b1ebe64a]::run_compiler::{closure#1}>::{closure#0}, core[62c015fcd585be4a]::result::Result<(), rustc_errors[19d12f94925af316]::ErrorGuaranteed>>
  41:     0x7fea768cb732 - std[688abfdbcfe52504]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[299971c75fff0058]::util::run_in_thread_pool_with_globals<rustc_interface[299971c75fff0058]::interface::run_compiler<core[62c015fcd585be4a]::result::Result<(), rustc_errors[19d12f94925af316]::ErrorGuaranteed>, rustc_driver[3622bb61b1ebe64a]::run_compiler::{closure#1}>::{closure#0}, core[62c015fcd585be4a]::result::Result<(), rustc_errors[19d12f94925af316]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[62c015fcd585be4a]::result::Result<(), rustc_errors[19d12f94925af316]::ErrorGuaranteed>>
  42:     0x7fea76f03aba - <<std[688abfdbcfe52504]::thread::Builder>::spawn_unchecked_<rustc_interface[299971c75fff0058]::util::run_in_thread_pool_with_globals<rustc_interface[299971c75fff0058]::interface::run_compiler<core[62c015fcd585be4a]::result::Result<(), rustc_errors[19d12f94925af316]::ErrorGuaranteed>, rustc_driver[3622bb61b1ebe64a]::run_compiler::{closure#1}>::{closure#0}, core[62c015fcd585be4a]::result::Result<(), rustc_errors[19d12f94925af316]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[62c015fcd585be4a]::result::Result<(), rustc_errors[19d12f94925af316]::ErrorGuaranteed>>::{closure#1} as core[62c015fcd585be4a]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  43:     0x7fea74372dc3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h16c8b1a5112fc07f
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/alloc/src/boxed.rs:2000:9
  44:     0x7fea74372dc3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h0cc5ff4fc4b4dcff
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/alloc/src/boxed.rs:2000:9
  45:     0x7fea74372dc3 - std::sys::unix::thread::Thread::new::thread_start::ha7c6dff74603472f
                               at /rustc/935dc07218b4bf6e20231e44eb9263b612fd649b/library/std/src/sys/unix/thread.rs:108:17
  46:     0x7fea7411414d - start_thread
  47:     0x7fea74195a00 - __GI___clone3
  48:                0x0 - <unknown>

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.68.0-nightly (935dc0721 2022-12-19) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
warning: `farmgate` (bin "farmgate") generated 7 warnings (run `cargo fix --bin "farmgate"` to apply 7 suggestions)
error: could not compile `farmgate`; 7 warnings emitted

@d-ufrik
Copy link

d-ufrik commented Dec 20, 2022

I updated the compiler this morning to check and the rocket code doesn't pass compilation still. What is the expected timeframe to get this bug fixed (either with a corrective or a temporary patch as I could see in the trail)? Thanks in advance.

Would it help if you override version to 1.66 or another one?

@ghost
Copy link

ghost commented Dec 27, 2022

Why is this still pinned?

@Noratrieb
Copy link
Member

It made sense to keep it pinned for people who haven't updated their nightly yet and are still hitting it. But I guess we could unpin it now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ P-critical Critical priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. S-has-mcve Status: A Minimal Complete and Verifiable Example has been found for this issue T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.