Closed ZNielsen closed 1 year ago
Hit an error with the nightly compiler. Not sure what the last nightly version I was using was, but I can confirm this used to build just fine.
rustc --version --verbose:
rustc --version --verbose
rustc 1.68.0-nightly (0468a00ae 2022-12-17) binary: rustc commit-hash: 0468a00ae3fd6ef1a6a0f9eaf637d7aa9e604acc commit-date: 2022-12-17 host: aarch64-apple-darwin release: 1.68.0-nightly LLVM version: 15.0.6
error: internal compiler error: compiler/rustc_codegen_llvm/src/context.rs:971:13: failed to get layout for `rocket::futures::future::Either<((), Pin<&mut rocket::futures::future::MapErr<hyper::server::shutdown::Graceful<rocket::h ttp::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, hyper::service::make::MakeServiceFn<[closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::{closure#0}]>, rocket::Shutdown, hyper: :common::exec::Exec>, [closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::{closure#1}]>>), (Result<(), rocket::Error>, rocket::Shutdown)>`: unable to determine layout for `rocket::futures::future::Either<(( ), Pin<&mut rocket::futures::future::MapErr<hyper::server::shutdown::Graceful<rocket::http::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, hyper::service::make::MakeServiceFn<[closure@rocket::server::<im pl Rocket<Orbit>>::http_server<L>::{closure#0}::{closure#0}]>, rocket::Shutdown, hyper::common::exec::Exec>, [closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::{closure#1}]>>), (Result<(), rocket::Error>, rocket::Shutdown)>` because `rocket::futures::future::Either<((), Pin<&mut rocket::futures::future::MapErr<hyper::server::shutdown::Graceful<rocket::http::private::Incoming<rocket::ext::CancellableListener<rocket::Shutdown, L>>, h yper::service::make::MakeServiceFn<[closure@rocket::server::<impl Rocket<Orbit>>::http_server<L>::{closure#0}::{closure#0}]>, rocket::Shutdown, hyper::common::exec::Exec>, [closure@rocket::server::<impl Rocket<Orbit>>::http_server <L>::{closure#0}::{closure#1}]>>), (Result<(), rocket::Error>, rocket::Shutdown)>` cannot be normalized
``` thread 'rustc' panicked at 'Box', /rustc/0468a00ae3fd6ef1a6a0f9eaf637d7aa9e604acc/compiler/rustc_errors/src/lib.rs:973:33 stack backtrace: 0: 0x101652894 - ::fmt::h78b40c26d5b68363 1: 0x1016a3b4c - core::fmt::write::h10a4055287babe71 2: 0x101645e50 - std::io::Write::write_fmt::had0bf36856ab3411 3: 0x1016526a8 - std::sys_common::backtrace::print::h54c1e3ac308e8d12 4: 0x101655158 - std::panicking::default_hook::{{closure}}::h943b7ea12ce7721b 5: 0x101654eb0 - std::panicking::default_hook::h7ea6571063632ef6 6: 0x1098b22e4 - rustc_driver[aea5d5b66a820d93]::DEFAULT_HOOK::{closure#0}::{closure#0} 7: 0x101655850 - std::panicking::rust_panic_with_hook::hdedc2fa44c593b2e 8: 0x109acb484 - std[94c272b5e7685a6e]::panicking::begin_panic::::{closure#0} 9: 0x109ac6edc - std[94c272b5e7685a6e]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> 10: 0x10dabfd94 - std[94c272b5e7685a6e]::panicking::begin_panic:: 11: 0x109ac6c7c - std[94c272b5e7685a6e]::panic::panic_any:: 12: 0x109abf53c - ::span_bug:: 13: 0x109abf0e0 - ::span_bug:: 14: 0x1099efb3c - rustc_middle[f1c1ea426cbec5e4]::ty::context::tls::with_context_opt::::{closure#0}, ()>::{closure#0}, ()> 15: 0x1099efa08 - rustc_middle[f1c1ea426cbec5e4]::util::bug::opt_span_bug_fmt:: 16: 0x10dabfe08 - rustc_middle[f1c1ea426cbec5e4]::util::bug::span_bug_fmt:: 17: 0x1099eb518 - ::handle_layout_err 18: 0x1099e486c - ::spanned_layout_of::{closure#0} 19: 0x1099eae70 - ___rust_realloc 20: 0x1099dfbac - >::project_type:: 21: 0x109ab751c - >::codegen_place 22: 0x109ab7cc4 - >::codegen_consume 23: 0x109aac7cc - >::codegen_rvalue 24: 0x109ab3e04 - >::codegen_block 25: 0x109aab0a0 - rustc_codegen_ssa[a9885fd9e56bc2f4]::mir::codegen_mir:: 26: 0x1099c7600 - rustc_codegen_ssa[a9885fd9e56bc2f4]::base::codegen_instance:: 27: 0x109a65cb8 - ::define:: 28: 0x109ad1550 - rustc_codegen_llvm[bcc25b7c68fc7c93]::base::compile_codegen_unit::module_codegen 29: 0x109a2ee40 - >::with_task::> 30: 0x109ad62f0 - ::compile_codegen_unit 31: 0x1099c6ddc - rustc_codegen_ssa[a9885fd9e56bc2f4]::base::codegen_crate:: 32: 0x109ad747c - ::codegen_crate 33: 0x109928fdc - ::time::, rustc_interface[688da3a0d72c0835]::passes::start_codegen::{closure#0} > 34: 0x109955c28 - rustc_interface[688da3a0d72c0835]::passes::start_codegen 35: 0x109954c10 - ::enter::<::ongoing_codegen::{closure#0}::{closure#0}, core[e4a553f48de12b3]::result::Result< alloc[e4ff4d0497fd8ba1]::boxed::Box, rustc_errors[9698c2e11fa3da5b]::ErrorGuaranteed>> 36: 0x1099a5ba8 - ::ongoing_codegen 37: 0x10988ebd0 - rustc_span[6fffbf6d99902008]::with_source_map::, rustc_interface[688da3a0d72c0835]::interface::run_compiler, rustc_driver[aea5d5b66a820d93]::run_compiler::{closure#1}>::{closure#0}::{closure#0}> 38: 0x109882814 - >::set::, rustc_driver[aea5d5b66a820d93]::run_compiler::{closure#1}>::{closure#0}, core[e4a553f48de12b3]::result::Result<(), rustc_errors[9698c2e11fa3da5b]::ErrorGuaranteed>> 39: 0x109857530 - std[94c272b5e7685a6e]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver[aea5d5b66a820d93]::run_compiler::{closure#1}>::{closure#0}, core[e4a553f48de12b3]::result::Result<(), rustc_errors[9698 c2e11fa3da5b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e4a553f48de12b3]::result::Result<(), rustc_errors[9698c2e11fa3da5b]::ErrorGuaranteed>> 40: 0x10983e148 - <::spawn_unchecked_, rustc_driver[aea5d5b66a820d93]::run_compiler::{closure#1}>::{closure#0}, core[e4a553f48de12b3]::result::Result<(), rustc_errors[9698c2e11fa3da5b]::Er rorGuaranteed>>::{closure#0}::{closure#0}, core[e4a553f48de12b3]::result::Result<(), rustc_errors[9698c2e11fa3da5b]::ErrorGuaranteed>>::{closure#1} as core[e4a553f48de12b3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 41: 0x10165dc6c - std::sys::unix::thread::Thread::new::thread_start::h54da5a7b9c5163fa 42: 0x1a0cb506c - __pthread_deallocate ``` Extra info ``` 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 (0468a00ae 2022-12-17) running on aarch64-apple-darwin note: compiler flags: --crate-type bin -C opt-level=3 -C embed-bitcode=no note: some of the compiler flags provided by cargo are hidden query stack during panic: end of query stack ```
Probably a dupe of https://github.com/rust-lang/rust/issues/105809
Closing as duplicate.
Hit an error with the nightly compiler. Not sure what the last nightly version I was using was, but I can confirm this used to build just fine.
Meta
rustc --version --verbose
:Error output
Backtrace
``` thread 'rustc' panicked at 'Box', /rustc/0468a00ae3fd6ef1a6a0f9eaf637d7aa9e604acc/compiler/rustc_errors/src/lib.rs:973:33
stack backtrace:
0: 0x101652894 - ::fmt::h78b40c26d5b68363
1: 0x1016a3b4c - core::fmt::write::h10a4055287babe71
2: 0x101645e50 - std::io::Write::write_fmt::had0bf36856ab3411
3: 0x1016526a8 - std::sys_common::backtrace::print::h54c1e3ac308e8d12
4: 0x101655158 - std::panicking::default_hook::{{closure}}::h943b7ea12ce7721b
5: 0x101654eb0 - std::panicking::default_hook::h7ea6571063632ef6
6: 0x1098b22e4 - rustc_driver[aea5d5b66a820d93]::DEFAULT_HOOK::{closure#0}::{closure#0}
7: 0x101655850 - std::panicking::rust_panic_with_hook::hdedc2fa44c593b2e
8: 0x109acb484 - std[94c272b5e7685a6e]::panicking::begin_panic::::{closure#0}
9: 0x109ac6edc - std[94c272b5e7685a6e]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !>
10: 0x10dabfd94 - std[94c272b5e7685a6e]::panicking::begin_panic::
11: 0x109ac6c7c - std[94c272b5e7685a6e]::panic::panic_any::
12: 0x109abf53c - ::span_bug::
13: 0x109abf0e0 - ::span_bug::
14: 0x1099efb3c - rustc_middle[f1c1ea426cbec5e4]::ty::context::tls::with_context_opt::::{closure#0}, ()>::{closure#0}, ()>
15: 0x1099efa08 - rustc_middle[f1c1ea426cbec5e4]::util::bug::opt_span_bug_fmt::
16: 0x10dabfe08 - rustc_middle[f1c1ea426cbec5e4]::util::bug::span_bug_fmt::
17: 0x1099eb518 - ::handle_layout_err
18: 0x1099e486c - ::spanned_layout_of::{closure#0}
19: 0x1099eae70 - ___rust_realloc
20: 0x1099dfbac - >::project_type::
21: 0x109ab751c - >::codegen_place
22: 0x109ab7cc4 - >::codegen_consume
23: 0x109aac7cc - >::codegen_rvalue
24: 0x109ab3e04 - >::codegen_block
25: 0x109aab0a0 - rustc_codegen_ssa[a9885fd9e56bc2f4]::mir::codegen_mir::
26: 0x1099c7600 - rustc_codegen_ssa[a9885fd9e56bc2f4]::base::codegen_instance::
27: 0x109a65cb8 - ::define::
28: 0x109ad1550 - rustc_codegen_llvm[bcc25b7c68fc7c93]::base::compile_codegen_unit::module_codegen
29: 0x109a2ee40 - >::with_task::>
30: 0x109ad62f0 - ::compile_codegen_unit
31: 0x1099c6ddc - rustc_codegen_ssa[a9885fd9e56bc2f4]::base::codegen_crate::
32: 0x109ad747c - ::codegen_crate
33: 0x109928fdc - ::time::, rustc_interface[688da3a0d72c0835]::passes::start_codegen::{closure#0}
>
34: 0x109955c28 - rustc_interface[688da3a0d72c0835]::passes::start_codegen
35: 0x109954c10 - ::enter::<::ongoing_codegen::{closure#0}::{closure#0}, core[e4a553f48de12b3]::result::Result<
alloc[e4ff4d0497fd8ba1]::boxed::Box, rustc_errors[9698c2e11fa3da5b]::ErrorGuaranteed>>
36: 0x1099a5ba8 - ::ongoing_codegen
37: 0x10988ebd0 - rustc_span[6fffbf6d99902008]::with_source_map::, rustc_interface[688da3a0d72c0835]::interface::run_compiler, rustc_driver[aea5d5b66a820d93]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
38: 0x109882814 - >::set::, rustc_driver[aea5d5b66a820d93]::run_compiler::{closure#1}>::{closure#0}, core[e4a553f48de12b3]::result::Result<(), rustc_errors[9698c2e11fa3da5b]::ErrorGuaranteed>>
39: 0x109857530 - std[94c272b5e7685a6e]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver[aea5d5b66a820d93]::run_compiler::{closure#1}>::{closure#0}, core[e4a553f48de12b3]::result::Result<(), rustc_errors[9698
c2e11fa3da5b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e4a553f48de12b3]::result::Result<(), rustc_errors[9698c2e11fa3da5b]::ErrorGuaranteed>>
40: 0x10983e148 - <::spawn_unchecked_, rustc_driver[aea5d5b66a820d93]::run_compiler::{closure#1}>::{closure#0}, core[e4a553f48de12b3]::result::Result<(), rustc_errors[9698c2e11fa3da5b]::Er
rorGuaranteed>>::{closure#0}::{closure#0}, core[e4a553f48de12b3]::result::Result<(), rustc_errors[9698c2e11fa3da5b]::ErrorGuaranteed>>::{closure#1} as core[e4a553f48de12b3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
41: 0x10165dc6c - std::sys::unix::thread::Thread::new::thread_start::h54da5a7b9c5163fa
42: 0x1a0cb506c - __pthread_deallocate
```
Extra info
```
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 (0468a00ae 2022-12-17) running on aarch64-apple-darwin
note: compiler flags: --crate-type bin -C opt-level=3 -C embed-bitcode=no
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
```