Created
June 30, 2023 05:10
-
-
Save jyn514/3839839de17f8eb67d812b3619bc0dbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rustc src/main.rs -Ztreat-err-as-bug=3 | |
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_returned_lifetime_short`: | |
the fluent string has an argument `category_desc` that was not found. | |
help: no arguments are available | |
the fluent string has an argument `free_region_name` that was not found. | |
help: no arguments are available | |
the fluent string has an argument `outlived_fr_name` that was not found. | |
help: no arguments are available | |
', compiler/rustc_errors/src/emitter.rs:2397:77 | |
stack backtrace: | |
0: 0x7f2aebbc0c41 - trace | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 | |
1: 0x7f2aebbc0c41 - trace_unsynchronized<std::sys_common::backtrace::_print_fmt::{closure_env#1}> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 | |
2: 0x7f2aebbc0c41 - _print_fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:65:5 | |
3: 0x7f2aebbc0c41 - fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:44:22 | |
4: 0x7f2aebc215ff - fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/fmt/rt.rs:138:9 | |
5: 0x7f2aebc215ff - write | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/fmt/mod.rs:1094:21 | |
6: 0x7f2aebbb3e41 - write_fmt<std::sys::unix::stdio::Stderr> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/io/mod.rs:1713:15 | |
7: 0x7f2aebbc0a55 - _print | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:47:5 | |
8: 0x7f2aebbc0a55 - print | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:34:9 | |
9: 0x7f2aebbc3737 - {closure#1} | |
10: 0x7f2aebbc3524 - default_hook | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:288:9 | |
11: 0x7f2aea9eab9b - <rustc_driver_impl[2c5b2b7144ba4963]::install_ice_hook::{closure#0} as core[3b51cfb2973b92d3]::ops::function::FnOnce<(&core[3b51cfb2973b92d3]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0} | |
12: 0x7f2aebbc3e7d - call<(&core::panic::panic_info::PanicInfo), (dyn core::ops::function::Fn<(&core::panic::panic_info::PanicInfo), Output=()> + core::marker::Send + core::marker::Sync), alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1999:9 | |
13: 0x7f2aebbc3e7d - rust_panic_with_hook | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:709:13 | |
14: 0x7f2aebbc3c17 - {closure#0} | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:597:13 | |
15: 0x7f2aebbc1076 - __rust_end_short_backtrace<std::panicking::begin_panic_handler::{closure_env#0}, !> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:151:18 | |
16: 0x7f2aebbc3962 - begin_panic_handler | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:593:5 | |
17: 0x7f2aebc1d883 - panic_fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/panicking.rs:67:14 | |
18: 0x7f2aebc1dea3 - unwrap_failed | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/result.rs:1651:5 | |
19: 0x7f2ae9fa3159 - <rustc_errors[42e9a0ae1c6c231e]::emitter::FileWithAnnotatedLines>::collect_annotations | |
20: 0x7f2ae9f930b5 - <rustc_errors[42e9a0ae1c6c231e]::emitter::EmitterWriter>::emit_message_default::{closure#0} | |
21: 0x7f2ae9f8e1f2 - <rustc_errors[42e9a0ae1c6c231e]::emitter::EmitterWriter>::emit_messages_default | |
22: 0x7f2ae9f850ba - <rustc_errors[42e9a0ae1c6c231e]::emitter::EmitterWriter as rustc_errors[42e9a0ae1c6c231e]::emitter::Emitter>::emit_diagnostic | |
23: 0x7f2aea14b360 - <rustc_errors[42e9a0ae1c6c231e]::HandlerInner>::emit_diagnostic::{closure#2} | |
24: 0x7f2aea13baef - rustc_interface[49ce9cf1b47ee487]::callbacks::track_diagnostic | |
25: 0x7f2ae9b16882 - <rustc_errors[42e9a0ae1c6c231e]::HandlerInner>::emit_diagnostic | |
26: 0x7f2aea70db68 - <rustc_errors[42e9a0ae1c6c231e]::HandlerInner>::span_bug::<rustc_error_messages[72afe9222563619e]::MultiSpan, &str> | |
27: 0x7f2aea70d206 - <rustc_errors[42e9a0ae1c6c231e]::Handler>::delay_span_bug::<rustc_error_messages[72afe9222563619e]::MultiSpan, &str> | |
28: 0x7f2ae920fd5f - <rustc_borrowck[e852cbba1a670b64]::error::BorrowckErrors>::buffer_error | |
29: 0x7f2ae991bae7 - rustc_borrowck[e852cbba1a670b64]::do_mir_borrowck | |
30: 0x7f2ae991252d - rustc_borrowck[e852cbba1a670b64]::mir_borrowck | |
31: 0x7f2ae8a231be - rustc_query_impl[c260fe59c5a1f8a8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[c260fe59c5a1f8a8]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7d35fbcd17b00552]::query::erase::Erased<[u8; 8usize]>> | |
32: 0x7f2ae8a2318e - <rustc_query_impl[c260fe59c5a1f8a8]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[3b51cfb2973b92d3]::ops::function::FnOnce<(rustc_middle[7d35fbcd17b00552]::ty::context::TyCtxt, rustc_span[f28d2217a6c7d60a]::def_id::LocalDefId)>>::call_once | |
33: 0x7f2ae8af784d - rustc_query_system[24b7b0d139511329]::query::plumbing::try_execute_query::<rustc_query_impl[c260fe59c5a1f8a8]::DynamicConfig<rustc_query_system[24b7b0d139511329]::query::caches::VecCache<rustc_span[f28d2217a6c7d60a]::def_id::LocalDefId, rustc_middle[7d35fbcd17b00552]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[c260fe59c5a1f8a8]::plumbing::QueryCtxt, false> | |
34: 0x7f2aea36cbd1 - rustc_query_impl[c260fe59c5a1f8a8]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace | |
35: 0x7f2ae9e7967e - rustc_data_structures[896e75692740b7a8]::sync::par_for_each_in::<&[rustc_span[f28d2217a6c7d60a]::def_id::LocalDefId], <rustc_middle[7d35fbcd17b00552]::hir::map::Map>::par_body_owners<rustc_interface[49ce9cf1b47ee487]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}> | |
36: 0x7f2ae9e79396 - <rustc_session[e41e3da63aeec22d]::session::Session>::time::<(), rustc_interface[49ce9cf1b47ee487]::passes::analysis::{closure#1}> | |
37: 0x7f2ae9e78f7f - rustc_interface[49ce9cf1b47ee487]::passes::analysis | |
38: 0x7f2ae9f090ba - rustc_query_impl[c260fe59c5a1f8a8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[c260fe59c5a1f8a8]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7d35fbcd17b00552]::query::erase::Erased<[u8; 1usize]>> | |
39: 0x7f2ae9f090a9 - <rustc_query_impl[c260fe59c5a1f8a8]::query_impl::analysis::dynamic_query::{closure#2} as core[3b51cfb2973b92d3]::ops::function::FnOnce<(rustc_middle[7d35fbcd17b00552]::ty::context::TyCtxt, ())>>::call_once | |
40: 0x7f2aea083628 - rustc_query_system[24b7b0d139511329]::query::plumbing::try_execute_query::<rustc_query_impl[c260fe59c5a1f8a8]::DynamicConfig<rustc_query_system[24b7b0d139511329]::query::caches::SingleCache<rustc_middle[7d35fbcd17b00552]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[c260fe59c5a1f8a8]::plumbing::QueryCtxt, false> | |
41: 0x7f2aea0833f9 - rustc_query_impl[c260fe59c5a1f8a8]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace | |
42: 0x7f2aea05a475 - <rustc_middle[7d35fbcd17b00552]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[2c5b2b7144ba4963]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>> | |
43: 0x7f2ae9caf60f - <rustc_interface[49ce9cf1b47ee487]::interface::Compiler>::enter::<rustc_driver_impl[2c5b2b7144ba4963]::run_compiler::{closure#1}::{closure#2}, core[3b51cfb2973b92d3]::result::Result<core[3b51cfb2973b92d3]::option::Option<rustc_interface[49ce9cf1b47ee487]::queries::Linker>, rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>> | |
44: 0x7f2ae9cad1a9 - <scoped_tls[8b9cc80f2d7e9304]::ScopedKey<rustc_span[f28d2217a6c7d60a]::SessionGlobals>>::set::<rustc_interface[49ce9cf1b47ee487]::interface::run_compiler<core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>, rustc_driver_impl[2c5b2b7144ba4963]::run_compiler::{closure#1}>::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>> | |
45: 0x7f2ae9cac616 - std[8db9ab5d1b3a6d1c]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[49ce9cf1b47ee487]::util::run_in_thread_pool_with_globals<rustc_interface[49ce9cf1b47ee487]::interface::run_compiler<core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>, rustc_driver_impl[2c5b2b7144ba4963]::run_compiler::{closure#1}>::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>> | |
46: 0x7f2ae9cac3c5 - <<std[8db9ab5d1b3a6d1c]::thread::Builder>::spawn_unchecked_<rustc_interface[49ce9cf1b47ee487]::util::run_in_thread_pool_with_globals<rustc_interface[49ce9cf1b47ee487]::interface::run_compiler<core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>, rustc_driver_impl[2c5b2b7144ba4963]::run_compiler::{closure#1}>::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>>::{closure#1} as core[3b51cfb2973b92d3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} | |
47: 0x7f2aebbce3a5 - call_once<(), dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1985:9 | |
48: 0x7f2aebbce3a5 - call_once<(), alloc::boxed::Box<dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global>, alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1985:9 | |
49: 0x7f2aebbce3a5 - thread_start | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys/unix/thread.rs:108:17 | |
50: 0x7f2ae7494b43 - start_thread | |
at ./nptl/pthread_create.c:442:8 | |
51: 0x7f2ae7526a00 - clone3 | |
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 | |
52: 0x0 - <unknown> | |
error: 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.72.0-nightly (7820972f8 2023-06-10) running on x86_64-unknown-linux-gnu | |
note: compiler flags: -Z treat-err-as-bug=3 | |
query stack during panic: | |
#0 [mir_borrowck] borrow-checking `foo` | |
#1 [analysis] running analysis passes on this crate | |
end of query stack | |
error: internal compiler error: no errors encountered even though `delay_span_bug` issued | |
error: internal compiler error: RegionError { fr_origin: FreeRegion, longer_fr: '?1, shorter_fr: '?0, is_reported: true } | |
| | |
= note: delayed at compiler/rustc_borrowck/src/region_infer/mod.rs:1611:31 | |
0: <rustc_errors::HandlerInner>::emit_diagnostic | |
1: <rustc_errors::Handler>::delay_span_bug::<rustc_span::span_encoding::Span, alloc::string::String> | |
2: <rustc_borrowck::diagnostics::region_errors::RegionErrors>::push::<rustc_borrowck::diagnostics::region_errors::RegionErrorKind> | |
3: <rustc_borrowck::region_infer::RegionInferenceContext>::solve | |
4: rustc_borrowck::nll::compute_regions | |
5: rustc_borrowck::do_mir_borrowck | |
6: rustc_borrowck::mir_borrowck | |
7: rustc_query_impl::plumbing::__rust_begin_short_backtrace::<rustc_query_impl::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle::query::erase::Erased<[u8; 8]>> | |
8: <rustc_query_impl::query_impl::mir_borrowck::dynamic_query::{closure#2} as core::ops::function::FnOnce<(rustc_middle::ty::context::TyCtxt, rustc_span::def_id::LocalDefId)>>::call_once | |
9: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::DynamicConfig<rustc_query_system::query::caches::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::Erased<[u8; 8]>>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, false> | |
10: rustc_query_impl::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace | |
11: rustc_data_structures::sync::par_for_each_in::<&[rustc_span::def_id::LocalDefId], <rustc_middle::hir::map::Map>::par_body_owners<rustc_interface::passes::analysis::{closure#1}::{closure#0}>::{closure#0}> | |
12: <rustc_session::session::Session>::time::<(), rustc_interface::passes::analysis::{closure#1}> | |
13: rustc_interface::passes::analysis | |
14: rustc_query_impl::plumbing::__rust_begin_short_backtrace::<rustc_query_impl::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle::query::erase::Erased<[u8; 1]>> | |
15: <rustc_query_impl::query_impl::analysis::dynamic_query::{closure#2} as core::ops::function::FnOnce<(rustc_middle::ty::context::TyCtxt, ())>>::call_once | |
16: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::DynamicConfig<rustc_query_system::query::caches::SingleCache<rustc_middle::query::erase::Erased<[u8; 1]>>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, false> | |
17: rustc_query_impl::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace | |
18: <rustc_middle::ty::context::GlobalCtxt>::enter::<rustc_driver_impl::run_compiler::{closure#1}::{closure#2}::{closure#4}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
19: <rustc_interface::interface::Compiler>::enter::<rustc_driver_impl::run_compiler::{closure#1}::{closure#2}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_span::ErrorGuaranteed>> | |
20: <scoped_tls::ScopedKey<rustc_span::SessionGlobals>>::set::<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
21: std::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
22: <<std::thread::Builder>::spawn_unchecked_<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} | |
23: call_once<(), dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1985:9 | |
24: call_once<(), alloc::boxed::Box<dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global>, alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1985:9 | |
25: thread_start | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys/unix/thread.rs:108:17 | |
26: start_thread | |
at ./nptl/pthread_create.c:442:8 | |
27: clone3 | |
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 | |
error: internal compiler error: `compute_regions` tainted `infcx` with errors but did not emit any errors | |
--> src/main.rs:10:1 | |
| | |
10 | / fn foo(s: &str) -> &'static str { | |
11 | | // tracing::debug!("foo {}", 3); | |
12 | | s | |
13 | | } | |
| |_^ | |
| | |
= note: delayed at compiler/rustc_borrowck/src/nll.rs:310:52 | |
0: <rustc_errors::HandlerInner>::emit_diagnostic | |
1: <rustc_errors::Handler>::delay_span_bug::<rustc_span::span_encoding::Span, &str> | |
2: rustc_borrowck::nll::compute_regions | |
3: rustc_borrowck::do_mir_borrowck | |
4: rustc_borrowck::mir_borrowck | |
5: rustc_query_impl::plumbing::__rust_begin_short_backtrace::<rustc_query_impl::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle::query::erase::Erased<[u8; 8]>> | |
6: <rustc_query_impl::query_impl::mir_borrowck::dynamic_query::{closure#2} as core::ops::function::FnOnce<(rustc_middle::ty::context::TyCtxt, rustc_span::def_id::LocalDefId)>>::call_once | |
7: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::DynamicConfig<rustc_query_system::query::caches::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::Erased<[u8; 8]>>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, false> | |
8: rustc_query_impl::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace | |
9: rustc_data_structures::sync::par_for_each_in::<&[rustc_span::def_id::LocalDefId], <rustc_middle::hir::map::Map>::par_body_owners<rustc_interface::passes::analysis::{closure#1}::{closure#0}>::{closure#0}> | |
10: <rustc_session::session::Session>::time::<(), rustc_interface::passes::analysis::{closure#1}> | |
11: rustc_interface::passes::analysis | |
12: rustc_query_impl::plumbing::__rust_begin_short_backtrace::<rustc_query_impl::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle::query::erase::Erased<[u8; 1]>> | |
13: <rustc_query_impl::query_impl::analysis::dynamic_query::{closure#2} as core::ops::function::FnOnce<(rustc_middle::ty::context::TyCtxt, ())>>::call_once | |
14: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::DynamicConfig<rustc_query_system::query::caches::SingleCache<rustc_middle::query::erase::Erased<[u8; 1]>>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, false> | |
15: rustc_query_impl::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace | |
16: <rustc_middle::ty::context::GlobalCtxt>::enter::<rustc_driver_impl::run_compiler::{closure#1}::{closure#2}::{closure#4}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
17: <rustc_interface::interface::Compiler>::enter::<rustc_driver_impl::run_compiler::{closure#1}::{closure#2}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_span::ErrorGuaranteed>> | |
18: <scoped_tls::ScopedKey<rustc_span::SessionGlobals>>::set::<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
19: std::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
20: <<std::thread::Builder>::spawn_unchecked_<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} | |
21: call_once<(), dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1985:9 | |
22: call_once<(), alloc::boxed::Box<dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global>, alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1985:9 | |
23: thread_start | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys/unix/thread.rs:108:17 | |
24: start_thread | |
at ./nptl/pthread_create.c:442:8 | |
25: clone3 | |
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 | |
thread 'rustc' panicked at 'aborting after 3 errors due to `-Z treat-err-as-bug=3`', compiler/rustc_errors/src/lib.rs:1720:25 | |
stack backtrace: | |
0: 0x7f2aebbc0c41 - trace | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 | |
1: 0x7f2aebbc0c41 - trace_unsynchronized<std::sys_common::backtrace::_print_fmt::{closure_env#1}> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 | |
2: 0x7f2aebbc0c41 - _print_fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:65:5 | |
3: 0x7f2aebbc0c41 - fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:44:22 | |
4: 0x7f2aebc215ff - fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/fmt/rt.rs:138:9 | |
5: 0x7f2aebc215ff - write | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/fmt/mod.rs:1094:21 | |
6: 0x7f2aebbb3e41 - write_fmt<std::sys::unix::stdio::Stderr> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/io/mod.rs:1713:15 | |
7: 0x7f2aebbc0a55 - _print | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:47:5 | |
8: 0x7f2aebbc0a55 - print | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:34:9 | |
9: 0x7f2aebbc3737 - {closure#1} | |
10: 0x7f2aebbc3524 - default_hook | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:288:9 | |
11: 0x7f2aea9eab9b - <rustc_driver_impl[2c5b2b7144ba4963]::install_ice_hook::{closure#0} as core[3b51cfb2973b92d3]::ops::function::FnOnce<(&core[3b51cfb2973b92d3]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0} | |
12: 0x7f2aebbc3e7d - call<(&core::panic::panic_info::PanicInfo), (dyn core::ops::function::Fn<(&core::panic::panic_info::PanicInfo), Output=()> + core::marker::Send + core::marker::Sync), alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1999:9 | |
13: 0x7f2aebbc3e7d - rust_panic_with_hook | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:709:13 | |
14: 0x7f2aebbc3c17 - {closure#0} | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:597:13 | |
15: 0x7f2aebbc1076 - __rust_end_short_backtrace<std::panicking::begin_panic_handler::{closure_env#0}, !> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:151:18 | |
16: 0x7f2aebbc3962 - begin_panic_handler | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:593:5 | |
17: 0x7f2aebc1d883 - panic_fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/panicking.rs:67:14 | |
18: 0x7f2aea14e843 - <rustc_errors[42e9a0ae1c6c231e]::HandlerInner>::panic_if_treat_err_as_bug | |
19: 0x7f2aea14b3d2 - <rustc_errors[42e9a0ae1c6c231e]::HandlerInner>::emit_diagnostic::{closure#2} | |
20: 0x7f2ae9b16882 - <rustc_errors[42e9a0ae1c6c231e]::HandlerInner>::emit_diagnostic | |
21: 0x7f2ae9ef25af - <rustc_errors[42e9a0ae1c6c231e]::HandlerInner>::flush_delayed::<alloc[f18982276055d560]::vec::Vec<rustc_errors[42e9a0ae1c6c231e]::DelayedDiagnostic>, &str> | |
22: 0x7f2ae9ef1d09 - <rustc_errors[42e9a0ae1c6c231e]::HandlerInner as core[3b51cfb2973b92d3]::ops::drop::Drop>::drop | |
23: 0x7f2aea0457ee - core[3b51cfb2973b92d3]::ptr::drop_in_place::<rustc_session[e41e3da63aeec22d]::parse::ParseSess> | |
24: 0x7f2aea04226e - core[3b51cfb2973b92d3]::ptr::drop_in_place::<rustc_session[e41e3da63aeec22d]::session::Session> | |
25: 0x7f2ae9caddbc - core[3b51cfb2973b92d3]::ptr::drop_in_place::<rustc_interface[49ce9cf1b47ee487]::interface::Compiler> | |
26: 0x7f2ae9cad9ed - <scoped_tls[8b9cc80f2d7e9304]::ScopedKey<rustc_span[f28d2217a6c7d60a]::SessionGlobals>>::set::<rustc_interface[49ce9cf1b47ee487]::interface::run_compiler<core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>, rustc_driver_impl[2c5b2b7144ba4963]::run_compiler::{closure#1}>::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>> | |
27: 0x7f2ae9cac616 - std[8db9ab5d1b3a6d1c]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[49ce9cf1b47ee487]::util::run_in_thread_pool_with_globals<rustc_interface[49ce9cf1b47ee487]::interface::run_compiler<core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>, rustc_driver_impl[2c5b2b7144ba4963]::run_compiler::{closure#1}>::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>> | |
28: 0x7f2ae9cac3c5 - <<std[8db9ab5d1b3a6d1c]::thread::Builder>::spawn_unchecked_<rustc_interface[49ce9cf1b47ee487]::util::run_in_thread_pool_with_globals<rustc_interface[49ce9cf1b47ee487]::interface::run_compiler<core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>, rustc_driver_impl[2c5b2b7144ba4963]::run_compiler::{closure#1}>::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>>::{closure#1} as core[3b51cfb2973b92d3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} | |
29: 0x7f2aebbce3a5 - call_once<(), dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1985:9 | |
30: 0x7f2aebbce3a5 - call_once<(), alloc::boxed::Box<dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global>, alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1985:9 | |
31: 0x7f2aebbce3a5 - thread_start | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys/unix/thread.rs:108:17 | |
32: 0x7f2ae7494b43 - start_thread | |
at ./nptl/pthread_create.c:442:8 | |
33: 0x7f2ae7526a00 - clone3 | |
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 | |
34: 0x0 - <unknown> | |
error: 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.72.0-nightly (7820972f8 2023-06-10) running on x86_64-unknown-linux-gnu | |
note: compiler flags: -Z treat-err-as-bug=3 | |
query stack during panic: | |
end of query stack | |
thread 'rustc' panicked at 'panic in a function that cannot unwind', library/core/src/panicking.rs:126:5 | |
stack backtrace: | |
0: 0x7f2aebbc0c41 - trace | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 | |
1: 0x7f2aebbc0c41 - trace_unsynchronized<std::sys_common::backtrace::_print_fmt::{closure_env#1}> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 | |
2: 0x7f2aebbc0c41 - _print_fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:65:5 | |
3: 0x7f2aebbc0c41 - fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:44:22 | |
4: 0x7f2aebc215ff - fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/fmt/rt.rs:138:9 | |
5: 0x7f2aebc215ff - write | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/fmt/mod.rs:1094:21 | |
6: 0x7f2aebbb3e41 - write_fmt<std::sys::unix::stdio::Stderr> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/io/mod.rs:1713:15 | |
7: 0x7f2aebbc0a55 - _print | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:47:5 | |
8: 0x7f2aebbc0a55 - print | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:34:9 | |
9: 0x7f2aebbc3737 - {closure#1} | |
10: 0x7f2aebbc3524 - default_hook | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:288:9 | |
11: 0x7f2aea9eab9b - <rustc_driver_impl[2c5b2b7144ba4963]::install_ice_hook::{closure#0} as core[3b51cfb2973b92d3]::ops::function::FnOnce<(&core[3b51cfb2973b92d3]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0} | |
12: 0x7f2aebbc3e7d - call<(&core::panic::panic_info::PanicInfo), (dyn core::ops::function::Fn<(&core::panic::panic_info::PanicInfo), Output=()> + core::marker::Send + core::marker::Sync), alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1999:9 | |
13: 0x7f2aebbc3e7d - rust_panic_with_hook | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:709:13 | |
14: 0x7f2aebbc3bd1 - {closure#0} | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:595:13 | |
15: 0x7f2aebbc1076 - __rust_end_short_backtrace<std::panicking::begin_panic_handler::{closure_env#0}, !> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys_common/backtrace.rs:151:18 | |
16: 0x7f2aebbc3962 - begin_panic_handler | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/panicking.rs:593:5 | |
17: 0x7f2aebc1d8c3 - panic_nounwind_fmt | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/panicking.rs:96:14 | |
18: 0x7f2aebc1d967 - panic_nounwind | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/panicking.rs:126:5 | |
19: 0x7f2aebc1daf3 - core::panicking::panic_cannot_unwind::hcd6238f0e0680f96 | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/core/src/panicking.rs:188:5 | |
20: 0x7f2ae9cada83 - <scoped_tls[8b9cc80f2d7e9304]::ScopedKey<rustc_span[f28d2217a6c7d60a]::SessionGlobals>>::set::<rustc_interface[49ce9cf1b47ee487]::interface::run_compiler<core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>, rustc_driver_impl[2c5b2b7144ba4963]::run_compiler::{closure#1}>::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>> | |
21: 0x7f2ae9cac616 - std[8db9ab5d1b3a6d1c]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[49ce9cf1b47ee487]::util::run_in_thread_pool_with_globals<rustc_interface[49ce9cf1b47ee487]::interface::run_compiler<core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>, rustc_driver_impl[2c5b2b7144ba4963]::run_compiler::{closure#1}>::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>> | |
22: 0x7f2ae9cac3c5 - <<std[8db9ab5d1b3a6d1c]::thread::Builder>::spawn_unchecked_<rustc_interface[49ce9cf1b47ee487]::util::run_in_thread_pool_with_globals<rustc_interface[49ce9cf1b47ee487]::interface::run_compiler<core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>, rustc_driver_impl[2c5b2b7144ba4963]::run_compiler::{closure#1}>::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3b51cfb2973b92d3]::result::Result<(), rustc_span[f28d2217a6c7d60a]::ErrorGuaranteed>>::{closure#1} as core[3b51cfb2973b92d3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} | |
23: 0x7f2aebbce3a5 - call_once<(), dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1985:9 | |
24: 0x7f2aebbce3a5 - call_once<(), alloc::boxed::Box<dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global>, alloc::alloc::Global> | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/alloc/src/boxed.rs:1985:9 | |
25: 0x7f2aebbce3a5 - thread_start | |
at /rustc/7820972f866ca2cea281ccc39201c0cd27087110/library/std/src/sys/unix/thread.rs:108:17 | |
26: 0x7f2ae7494b43 - start_thread | |
at ./nptl/pthread_create.c:442:8 | |
27: 0x7f2ae7526a00 - clone3 | |
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 | |
28: 0x0 - <unknown> | |
error: 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.72.0-nightly (7820972f8 2023-06-10) running on x86_64-unknown-linux-gnu | |
note: compiler flags: -Z treat-err-as-bug=3 | |
query stack during panic: | |
end of query stack | |
thread caused non-unwinding panic. aborting. | |
Aborted (core dumped) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment