Skip to content

Diagnostic translation for borrow_check:errors #112237

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

Closed

Conversation

sladyn98
Copy link
Contributor

@sladyn98 sladyn98 commented Jun 3, 2023

Migrate diagnostics to use the struct derive and be translatable.

r? @davidtwco

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 3, 2023
err.span_label(borrow_span, format!("{} is borrowed here", borrow_desc));
err.span_label(span, format!("use of borrowed {}", borrow_desc));
err
create_err(CannotUseWhenMutablyBorrowed { span, desc })
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidtwco Not sure how to use the create_err here after creating the struct

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use self.infcx.tcx.sess.create_err, create_err isn't a free-standing function :)

@rust-log-analyzer

This comment has been minimized.

@sladyn98 sladyn98 requested a review from davidtwco June 7, 2023 06:48
@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-llvm-14 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
..........................................i.............................................  1056/15102
................................................................i.......................  1144/15102
........................................................................................  1232/15102
........................................................................................  1320/15102
...........................F....FF......................................................  1408/15102
...................F........F......................................F....................  1496/15102
.....................F....................F........................F............i.......  1584/15102
.......................................................F.........F......................  1672/15102
.....................i..................................................................  1848/15102
....................................................F...................................  1936/15102
........................................................................................  2024/15102
...........................................................................i............  2112/15102
---
........................................................................................  8888/15102
........................................................................................  8976/15102
..............................................ii.................i.......i.i............  9064/15102
.................................................................i......................  9152/15102
......................................................................F.F...............  9240/15102
...................F....................................................................  9328/15102
......................................................................................F.  9416/15102
................F....................F..............................F...................  9504/15102
.....................ii.................................................................  9680/15102
........................................................................................  9768/15102
........................................................................................  9856/15102
...i..........................................i.........................................  9944/15102
---
failures:

---- [ui] tests/ui/asm/type-check-4.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/type-check-4.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-4" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-4/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0506]: cannot assign to `a` because it is borrowed
  --> fake-test-src-base/asm/type-check-4.rs:14:9
LL |         let p = &a;
   |                 -- `a` is borrowed here
   |                 -- `a` is borrowed here
LL |         asm!("{}", out(reg) a);
   |         ^^^^^^^^^^^^^^^^^^^^^^ `a` is assigned to here but it was already borrowed
LL |         //~^ cannot assign to `a` because it is borrowed
LL |         println!("{}", p);


thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7f40a8a3c831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7f40a8aa47f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7f40a8a30d31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   2:     0x7f40a8a30d31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7f40a8a3c641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7f40a8a3f79a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7f40a8a3f48c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7f40a951f8cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7f40a8a3fede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7f40a8a3fc77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7f40a8a3ccf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7f40a8a3f947 - rust_begin_unwind
  11:     0x7f40a89f4153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7f40a89f4723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7f40ac3e057c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f40ac3e4bbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f40ac3e36d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f40ac3d7c4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7f40ac4092e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f40ac407d2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7f40ac3fcb91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f40a962597f - rustc_interface[eb78f09a767f3ac2]::callbacks::track_diagnostic
  21:     0x7f40ac3fc409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  22:     0x7f40ac3fb43e - <rustc_errors[c70362ec7ed12210]::Handler>::emit_diagnostic
  23:     0x7f40aa997bcc - rustc_borrowck[d6eb6a695ce8a019]::do_mir_borrowck
  24:     0x7f40aa97ff0d - rustc_borrowck[d6eb6a695ce8a019]::mir_borrowck
  25:     0x7f40ab0857cc - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7f40ab04be6c - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, rustc_span[44f6c4d847920136]::def_id::LocalDefId)>>::call_once
  27:     0x7f40ab210898 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::VecCache<rustc_span[44f6c4d847920136]::def_id::LocalDefId, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  28:     0x7f40aaf8cd56 - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f40a96072dc - <core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once
  30:     0x7f40a95dac46 - std[bc0fe800104f8ffd]::panicking::try::<(), core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7f40a9613bed - rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in::<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7f40a96c66e0 - <rustc_session[32eb005bb7001c04]::session::Session>::time::<(), rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}>
  33:     0x7f40a95f2ed7 - rustc_interface[eb78f09a767f3ac2]::passes::analysis
  34:     0x7f40ab089a9a - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7f40ab0ca988 - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7f40ab1880d2 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::SingleCache<rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  37:     0x7f40aaf8844d - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f40a953c4cd - <rustc_middle[65833bc3f28b3965]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  39:     0x7f40a9567dce - <rustc_interface[eb78f09a767f3ac2]::interface::Compiler>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}, core[a05edf31faea30f8]::result::Result<core[a05edf31faea30f8]::option::Option<rustc_interface[eb78f09a767f3ac2]::queries::Linker>, rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  40:     0x7f40a953ae90 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7f40a952b039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  42:     0x7f40a9541636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  43:     0x7f40a9583eb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7f40a9530ca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7f40a8a4c7ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  46:     0x7f40a87e7b43 - <unknown>
  47:     0x7f40a8879a00 - <unknown>
  48:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#1 [analysis] running analysis passes on this crate
error: aborting due to previous error

Some errors have detailed explanations: E0503, E0506.
For more information about an error, try `rustc --explain E0503`.
For more information about an error, try `rustc --explain E0503`.
------------------------------------------


---- [ui] tests/ui/borrowck/borrowck-anon-fields-variant.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/borrowck/borrowck-anon-fields-variant.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/borrowck/borrowck-anon-fields-variant" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/borrowck/borrowck-anon-fields-variant/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7f0b33cea831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7f0b33d527f8 - core::fmt::write::hfcae8913aa60fa98
   1:     0x7f0b33d527f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7f0b33cded31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7f0b33cea641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7f0b33ced79a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7f0b33ced48c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7f0b347cd8cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7f0b33cedede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7f0b33cedc77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7f0b33ceacf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7f0b33ced947 - rust_begin_unwind
  11:     0x7f0b33ca2153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7f0b33ca2723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7f0b3768e57c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f0b37692bbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f0b376916d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f0b37685c4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7f0b376b72e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f0b376b5d2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7f0b376aab91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f0b348d397f - rustc_interface[eb78f09a767f3ac2]::callbacks::track_diagnostic
  21:     0x7f0b376aa409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  22:     0x7f0b376a943e - <rustc_errors[c70362ec7ed12210]::Handler>::emit_diagnostic
  23:     0x7f0b35c45bcc - rustc_borrowck[d6eb6a695ce8a019]::do_mir_borrowck
  24:     0x7f0b35c2df0d - rustc_borrowck[d6eb6a695ce8a019]::mir_borrowck
  25:     0x7f0b363337cc - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7f0b362f9e6c - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, rustc_span[44f6c4d847920136]::def_id::LocalDefId)>>::call_once
  27:     0x7f0b364be898 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::VecCache<rustc_span[44f6c4d847920136]::def_id::LocalDefId, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  28:     0x7f0b3623ad56 - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f0b348b52dc - <core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once
  30:     0x7f0b34888c46 - std[bc0fe800104f8ffd]::panicking::try::<(), core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7f0b348c1bed - rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in::<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7f0b349746e0 - <rustc_session[32eb005bb7001c04]::session::Session>::time::<(), rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}>
  33:     0x7f0b348a0ed7 - rustc_interface[eb78f09a767f3ac2]::passes::analysis
  34:     0x7f0b36337a9a - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7f0b36378988 - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7f0b364360d2 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::SingleCache<rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  37:     0x7f0b3623644d - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f0b347ea4cd - <rustc_middle[65833bc3f28b3965]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  39:     0x7f0b34815dce - <rustc_interface[eb78f09a767f3ac2]::interface::Compiler>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}, core[a05edf31faea30f8]::result::Result<core[a05edf31faea30f8]::option::Option<rustc_interface[eb78f09a767f3ac2]::queries::Linker>, rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  40:     0x7f0b347e8e90 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7f0b347d9039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  42:     0x7f0b347ef636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  43:     0x7f0b34831eb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7f0b347deca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7f0b33cfa7ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  46:     0x7f0b33a95b43 - <unknown>
  47:     0x7f0b33b27a00 - <unknown>
  48:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `distinct_variant`
#1 [analysis] running analysis passes on this crate
end of query stack
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7f0b33cea831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7f0b33d527f8 - core::fmt::write::hfcae8913aa60fa98
   1:     0x7f0b33d527f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7f0b33cded31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7f0b33cea641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7f0b33ced79a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7f0b33ced48c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7f0b347cd8cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7f0b33cedede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7f0b33cedc77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7f0b33ceacf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7f0b33ced947 - rust_begin_unwind
  11:     0x7f0b33ca2153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7f0b33ca2723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7f0b3768e57c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f0b37692bbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f0b376916d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f0b37685c4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7f0b376b72e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f0b376b5d2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7f0b376aab91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f0b348d397f - rustc_interface[eb78f09a767f3ac2]::callbacks::track_diagnostic
  21:     0x7f0b376aa409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  22:     0x7f0b376a943e - <rustc_errors[c70362ec7ed12210]::Handler>::emit_diagnostic
  23:     0x7f0b35c45bcc - rustc_borrowck[d6eb6a695ce8a019]::do_mir_borrowck
  24:     0x7f0b35c2df0d - rustc_borrowck[d6eb6a695ce8a019]::mir_borrowck
  25:     0x7f0b363337cc - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7f0b362f9e6c - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, rustc_span[44f6c4d847920136]::def_id::LocalDefId)>>::call_once
  27:     0x7f0b364be898 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::VecCache<rustc_span[44f6c4d847920136]::def_id::LocalDefId, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  28:     0x7f0b3623ad56 - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f0b348b52dc - <core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once
  30:     0x7f0b34888c46 - std[bc0fe800104f8ffd]::panicking::try::<(), core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7f0b348c1bed - rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in::<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7f0b349746e0 - <rustc_session[32eb005bb7001c04]::session::Session>::time::<(), rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}>
  33:     0x7f0b348a0ed7 - rustc_interface[eb78f09a767f3ac2]::passes::analysis
  34:     0x7f0b36337a9a - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7f0b36378988 - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7f0b364360d2 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::SingleCache<rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  37:     0x7f0b3623644d - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f0b347ea4cd - <rustc_middle[65833bc3f28b3965]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  39:     0x7f0b34815dce - <rustc_interface[eb78f09a767f3ac2]::interface::Compiler>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}, core[a05edf31faea30f8]::result::Result<core[a05edf31faea30f8]::option::Option<rustc_interface[eb78f09a767f3ac2]::queries::Linker>, rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  40:     0x7f0b347e8e90 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7f0b347d9039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  42:     0x7f0b347ef636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  43:     0x7f0b34831eb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7f0b347deca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7f0b33cfa7ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  46:     0x7f0b33a95b43 - <unknown>
  47:     0x7f0b33b27a00 - <unknown>
  48:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `same_variant`
#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

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7f0b33cea831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7f0b33d527f8 - core::fmt::write::hfcae8913aa60fa98
   1:     0x7f0b33d527f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7f0b33cded31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7f0b33cea641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7f0b33ced79a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7f0b33ced48c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7f0b347cd8cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7f0b33cedede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7f0b33cedc77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7f0b33ceacf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7f0b33ced947 - rust_begin_unwind
  11:     0x7f0b33ca2153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7f0b33ca2723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7f0b3768e57c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f0b37692bbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f0b376916d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f0b37685c4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7f0b376b72e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f0b376b5d2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7f0b376aab91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f0b376aa409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  21:     0x7f0b376ab4e9 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::flush_delayed::<alloc[91d98ad55cf49632]::vec::Vec<rustc_errors[c70362ec7ed12210]::DelayedDiagnostic>, &str>
  22:     0x7f0b376a703e - <rustc_errors[c70362ec7ed12210]::HandlerInner as core[a05edf31faea30f8]::ops::drop::Drop>::drop
  23:     0x7f0b347e24fc - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_session[32eb005bb7001c04]::parse::ParseSess>
  24:     0x7f0b347e3a28 - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_session[32eb005bb7001c04]::session::Session>
  25:     0x7f0b347e8083 - <alloc[91d98ad55cf49632]::rc::Rc<rustc_session[32eb005bb7001c04]::session::Session> as core[a05edf31faea30f8]::ops::drop::Drop>::drop
  26:     0x7f0b347ef2cd - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_interface[eb78f09a767f3ac2]::interface::Compiler>
  27:     0x7f0b347e92ce - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  28:     0x7f0b347d9039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  29:     0x7f0b347ef636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  30:     0x7f0b34831eb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  31:     0x7f0b347deca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7f0b33cfa7ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  33:     0x7f0b33a95b43 - <unknown>
  34:     0x7f0b33b27a00 - <unknown>
  35:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
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:
stack backtrace:
   0:     0x7f0b33cea831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7f0b33d527f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7f0b33cded31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7f0b33cea641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7f0b33ced79a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7f0b33ced48c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7f0b347cd8cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7f0b33cedede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7f0b33cedc39 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7f0b33ceacf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7f0b33ced947 - rust_begin_unwind
  11:     0x7f0b33ca2193 - core::panicking::panic_nounwind_fmt::h75a51feed8bb9d55
  12:     0x7f0b33ca2237 - core::panicking::panic_nounwind::h1ce78c3fe1ccaad1
  13:     0x7f0b33ca23c3 - core::panicking::panic_cannot_unwind::h36aeb1260c5828e5
  14:     0x7f0b347e92f0 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  15:     0x7f0b347d9039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  16:     0x7f0b347ef636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  17:     0x7f0b34831eb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  18:     0x7f0b347deca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  19:     0x7f0b33cfa7ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  20:     0x7f0b33a95b43 - <unknown>
  21:     0x7f0b33b27a00 - <unknown>
  22:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
thread caused non-unwinding panic. aborting.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7fad78fc1831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7fad790297f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7fad78fb5d31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   2:     0x7fad78fb5d31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7fad78fc1641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7fad78fc479a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7fad78fc448c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7fad79aa48cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7fad78fc4ede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7fad78fc4c77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7fad78fc1cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7fad78fc4947 - rust_begin_unwind
  11:     0x7fad78f79153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7fad78f79723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7fad7c96557c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7fad7c969bbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7fad7c9686d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7fad7c95cc4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7fad7c98e2e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7fad7c98cd2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7fad7c981b91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7fad79baa97f - rustc_interface[eb78f09a767f3ac2]::callbacks::track_diagnostic
  21:     0x7fad7c981409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  22:     0x7fad7c98043e - <rustc_errors[c70362ec7ed12210]::Handler>::emit_diagnostic
  23:     0x7fad7af1cbcc - rustc_borrowck[d6eb6a695ce8a019]::do_mir_borrowck
  24:     0x7fad7af04f0d - rustc_borrowck[d6eb6a695ce8a019]::mir_borrowck
  25:     0x7fad7b60a7cc - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7fad7b5d0e6c - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, rustc_span[44f6c4d847920136]::def_id::LocalDefId)>>::call_once
  27:     0x7fad7b795898 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::VecCache<rustc_span[44f6c4d847920136]::def_id::LocalDefId, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  28:     0x7fad7b511d56 - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fad79b8c2dc - <core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once
  30:     0x7fad79b5fc46 - std[bc0fe800104f8ffd]::panicking::try::<(), core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7fad79b98bed - rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in::<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7fad79c4b6e0 - <rustc_session[32eb005bb7001c04]::session::Session>::time::<(), rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}>
  33:     0x7fad79b77ed7 - rustc_interface[eb78f09a767f3ac2]::passes::analysis
  34:     0x7fad7b60ea9a - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7fad7b64f988 - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7fad7b70d0d2 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::SingleCache<rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  37:     0x7fad7b50d44d - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7fad79ac14cd - <rustc_middle[65833bc3f28b3965]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  39:     0x7fad79aecdce - <rustc_interface[eb78f09a767f3ac2]::interface::Compiler>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}, core[a05edf31faea30f8]::result::Result<core[a05edf31faea30f8]::option::Option<rustc_interface[eb78f09a767f3ac2]::queries::Linker>, rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  40:     0x7fad79abfe90 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7fad79ab0039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  42:     0x7fad79ac6636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  43:     0x7fad79b08eb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7fad79ab5ca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7fad78fd17ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  46:     0x7fad78d6cb43 - <unknown>
  47:     0x7fad78dfea00 - <unknown>
  48:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#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

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7fad78fc1831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7fad790297f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7fad78fb5d31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   2:     0x7fad78fb5d31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7fad78fc1641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7fad78fc479a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7fad78fc448c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7fad79aa48cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7fad78fc4ede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7fad78fc4c77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7fad78fc1cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7fad78fc4947 - rust_begin_unwind
  11:     0x7fad78f79153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7fad78f79723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7fad7c96557c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7fad7c969bbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7fad7c9686d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7fad7c95cc4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7fad7c98e2e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7fad7c98cd2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7fad7c981b91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7fad7c981409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  21:     0x7fad7c9824e9 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::flush_delayed::<alloc[91d98ad55cf49632]::vec::Vec<rustc_errors[c70362ec7ed12210]::DelayedDiagnostic>, &str>
  22:     0x7fad7c97e03e - <rustc_errors[c70362ec7ed12210]::HandlerInner as core[a05edf31faea30f8]::ops::drop::Drop>::drop
  23:     0x7fad79ab94fc - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_session[32eb005bb7001c04]::parse::ParseSess>
  24:     0x7fad79abaa28 - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_session[32eb005bb7001c04]::session::Session>
  25:     0x7fad79abf083 - <alloc[91d98ad55cf49632]::rc::Rc<rustc_session[32eb005bb7001c04]::session::Session> as core[a05edf31faea30f8]::ops::drop::Drop>::drop
  26:     0x7fad79ac62cd - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_interface[eb78f09a767f3ac2]::interface::Compiler>
  27:     0x7fad79ac02ce - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  28:     0x7fad79ab0039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  29:     0x7fad79ac6636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  30:     0x7fad79b08eb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  31:     0x7fad79ab5ca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7fad78fd17ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  33:     0x7fad78d6cb43 - <unknown>
  34:     0x7fad78dfea00 - <unknown>
  35:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
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:
stack backtrace:
   0:     0x7fad78fc1831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7fad790297f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7fad78fb5d31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7fad78fc1641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7fad78fc479a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7fad78fc448c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7fad79aa48cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7fad78fc4ede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7fad78fc4c39 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7fad78fc1cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7fad78fc4947 - rust_begin_unwind
  11:     0x7fad78f79193 - core::panicking::panic_nounwind_fmt::h75a51feed8bb9d55
  12:     0x7fad78f79237 - core::panicking::panic_nounwind::h1ce78c3fe1ccaad1
  13:     0x7fad78f793c3 - core::panicking::panic_cannot_unwind::h36aeb1260c5828e5
  14:     0x7fad79ac02f0 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  15:     0x7fad79ab0039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  16:     0x7fad79ac6636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  17:     0x7fad79b08eb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  18:     0x7fad79ab5ca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  19:     0x7fad78fd17ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  20:     0x7fad78d6cb43 - <unknown>
  21:     0x7fad78dfea00 - <unknown>
  22:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
thread caused non-unwinding panic. aborting.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/borrowck/borrowck-describe-lvalue.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
---


---- [ui] tests/ui/error-codes/E0503.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/error-codes/E0503.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0503" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0503/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7fddc3c14831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   0:     0x7fddc3c14831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7fddc3c7c7f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7fddc3c08d31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7fddc3c14641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7fddc3c1779a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7fddc3c1748c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7fddc46f78cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7fddc3c17ede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7fddc3c17c77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7fddc3c14cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7fddc3c17947 - rust_begin_unwind
  11:     0x7fddc3bcc153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7fddc3bcc723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7fddc75b857c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7fddc75bcbbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7fddc75bb6d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7fddc75afc4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7fddc75e12e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7fddc75dfd2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7fddc75d4b91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7fddc47fd97f - rustc_interface[eb78f09a767f3ac2]::callbacks::track_diagnostic
  21:     0x7fddc75d4409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  22:     0x7fddc75d343e - <rustc_errors[c70362ec7ed12210]::Handler>::emit_diagnostic
  23:     0x7fddc5b6fbcc - rustc_borrowck[d6eb6a695ce8a019]::do_mir_borrowck
  24:     0x7fddc5b57f0d - rustc_borrowck[d6eb6a695ce8a019]::mir_borrowck
  25:     0x7fddc625d7cc - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7fddc6223e6c - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, rustc_span[44f6c4d847920136]::def_id::LocalDefId)>>::call_once
  27:     0x7fddc63e8898 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::VecCache<rustc_span[44f6c4d847920136]::def_id::LocalDefId, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  28:     0x7fddc6164d56 - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fddc47df2dc - <core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once
  30:     0x7fddc47b2c46 - std[bc0fe800104f8ffd]::panicking::try::<(), core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7fddc47ebbed - rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in::<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7fddc489e6e0 - <rustc_session[32eb005bb7001c04]::session::Session>::time::<(), rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}>
  33:     0x7fddc47caed7 - rustc_interface[eb78f09a767f3ac2]::passes::analysis
  34:     0x7fddc6261a9a - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7fddc62a2988 - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7fddc63600d2 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::SingleCache<rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  37:     0x7fddc616044d - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7fddc47144cd - <rustc_middle[65833bc3f28b3965]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  39:     0x7fddc473fdce - <rustc_interface[eb78f09a767f3ac2]::interface::Compiler>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}, core[a05edf31faea30f8]::result::Result<core[a05edf31faea30f8]::option::Option<rustc_interface[eb78f09a767f3ac2]::queries::Linker>, rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  40:     0x7fddc4712e90 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7fddc4703039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  42:     0x7fddc4719636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  43:     0x7fddc475beb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7fddc4708ca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7fddc3c247ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  46:     0x7fddc39bfb43 - <unknown>
  47:     0x7fddc3a51a00 - <unknown>
  48:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#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

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7fddc3c14831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   0:     0x7fddc3c14831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7fddc3c7c7f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7fddc3c08d31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7fddc3c14641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7fddc3c1779a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7fddc3c1748c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7fddc46f78cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7fddc3c17ede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7fddc3c17c77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7fddc3c14cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7fddc3c17947 - rust_begin_unwind
  11:     0x7fddc3bcc153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7fddc3bcc723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7fddc75b857c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7fddc75bcbbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7fddc75bb6d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7fddc75afc4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7fddc75e12e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7fddc75dfd2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7fddc75d4b91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7fddc75d4409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  21:     0x7fddc75d54e9 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::flush_delayed::<alloc[91d98ad55cf49632]::vec::Vec<rustc_errors[c70362ec7ed12210]::DelayedDiagnostic>, &str>
  22:     0x7fddc75d103e - <rustc_errors[c70362ec7ed12210]::HandlerInner as core[a05edf31faea30f8]::ops::drop::Drop>::drop
  23:     0x7fddc470c4fc - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_session[32eb005bb7001c04]::parse::ParseSess>
  24:     0x7fddc470da28 - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_session[32eb005bb7001c04]::session::Session>
  25:     0x7fddc4712083 - <alloc[91d98ad55cf49632]::rc::Rc<rustc_session[32eb005bb7001c04]::session::Session> as core[a05edf31faea30f8]::ops::drop::Drop>::drop
  26:     0x7fddc47192cd - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_interface[eb78f09a767f3ac2]::interface::Compiler>
  27:     0x7fddc47132ce - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  28:     0x7fddc4703039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  29:     0x7fddc4719636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  30:     0x7fddc475beb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  31:     0x7fddc4708ca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7fddc3c247ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  33:     0x7fddc39bfb43 - <unknown>
  34:     0x7fddc3a51a00 - <unknown>
  35:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
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:
stack backtrace:
   0:     0x7fddc3c14831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7fddc3c7c7f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7fddc3c08d31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7fddc3c14641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7fddc3c1779a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7fddc3c1748c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7fddc46f78cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7fddc3c17ede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7fddc3c17c39 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7fddc3c14cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7fddc3c17947 - rust_begin_unwind
  11:     0x7fddc3bcc193 - core::panicking::panic_nounwind_fmt::h75a51feed8bb9d55
  12:     0x7fddc3bcc237 - core::panicking::panic_nounwind::h1ce78c3fe1ccaad1
  13:     0x7fddc3bcc3c3 - core::panicking::panic_cannot_unwind::h36aeb1260c5828e5
  14:     0x7fddc47132f0 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  15:     0x7fddc4703039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  16:     0x7fddc4719636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  17:     0x7fddc475beb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  18:     0x7fddc4708ca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  19:     0x7fddc3c247ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  20:     0x7fddc39bfb43 - <unknown>
  21:     0x7fddc3a51a00 - <unknown>
  22:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
thread caused non-unwinding panic. aborting.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/issues/issue-45697.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/issues/issue-45697.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-45697" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-45697/auxiliary" "-C" "overflow-checks=off"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7f332d8ea831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7f332d9527f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7f332d8ded31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   2:     0x7f332d8ded31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7f332d8ea641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7f332d8ed79a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7f332d8ed48c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7f332e3cd8cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7f332d8edede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7f332d8edc77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7f332d8eacf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7f332d8ed947 - rust_begin_unwind
  11:     0x7f332d8a2153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7f332d8a2723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7f333128e57c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f3331292bbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f33312916d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f3331285c4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7f33312b72e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f33312b5d2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7f33312aab91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f332e4d397f - rustc_interface[eb78f09a767f3ac2]::callbacks::track_diagnostic
  21:     0x7f33312aa409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  22:     0x7f33312a943e - <rustc_errors[c70362ec7ed12210]::Handler>::emit_diagnostic
  23:     0x7f332f845bcc - rustc_borrowck[d6eb6a695ce8a019]::do_mir_borrowck
  24:     0x7f332f82df0d - rustc_borrowck[d6eb6a695ce8a019]::mir_borrowck
  25:     0x7f332ff337cc - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7f332fef9e6c - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, rustc_span[44f6c4d847920136]::def_id::LocalDefId)>>::call_once
  27:     0x7f33300be898 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::VecCache<rustc_span[44f6c4d847920136]::def_id::LocalDefId, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  28:     0x7f332fe3ad56 - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f332e4b52dc - <core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once
  30:     0x7f332e488c46 - std[bc0fe800104f8ffd]::panicking::try::<(), core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7f332e4c1bed - rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in::<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7f332e5746e0 - <rustc_session[32eb005bb7001c04]::session::Session>::time::<(), rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}>
  33:     0x7f332e4a0ed7 - rustc_interface[eb78f09a767f3ac2]::passes::analysis
  34:     0x7f332ff37a9a - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7f332ff78988 - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7f33300360d2 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::SingleCache<rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  37:     0x7f332fe3644d - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f332e3ea4cd - <rustc_middle[65833bc3f28b3965]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  39:     0x7f332e415dce - <rustc_interface[eb78f09a767f3ac2]::interface::Compiler>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}, core[a05edf31faea30f8]::result::Result<core[a05edf31faea30f8]::option::Option<rustc_interface[eb78f09a767f3ac2]::queries::Linker>, rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  40:     0x7f332e3e8e90 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7f332e3d9039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  42:     0x7f332e3ef636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  43:     0x7f332e431eb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7f332e3deca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7f332d8fa7ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  46:     0x7f332d695b43 - <unknown>
  47:     0x7f332d727a00 - <unknown>
  48:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=off
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#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

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7f332d8ea831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7f332d9527f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7f332d8ded31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   2:     0x7f332d8ded31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7f332d8ea641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7f332d8ed79a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7f332d8ed48c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7f332e3cd8cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7f332d8edede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7f332d8edc77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7f332d8eacf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7f332d8ed947 - rust_begin_unwind
  11:     0x7f332d8a2153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7f332d8a2723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7f333128e57c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f3331292bbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f33312916d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f3331285c4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7f33312b72e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f33312b5d2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7f33312aab91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f33312aa409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  21:     0x7f33312ab4e9 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::flush_delayed::<alloc[91d98ad55cf49632]::vec::Vec<rustc_errors[c70362ec7ed12210]::DelayedDiagnostic>, &str>
  22:     0x7f33312a703e - <rustc_errors[c70362ec7ed12210]::HandlerInner as core[a05edf31faea30f8]::ops::drop::Drop>::drop
  23:     0x7f332e3e24fc - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_session[32eb005bb7001c04]::parse::ParseSess>
  24:     0x7f332e3e3a28 - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_session[32eb005bb7001c04]::session::Session>
  25:     0x7f332e3e8083 - <alloc[91d98ad55cf49632]::rc::Rc<rustc_session[32eb005bb7001c04]::session::Session> as core[a05edf31faea30f8]::ops::drop::Drop>::drop
  26:     0x7f332e3ef2cd - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_interface[eb78f09a767f3ac2]::interface::Compiler>
  27:     0x7f332e3e92ce - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  28:     0x7f332e3d9039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  29:     0x7f332e3ef636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  30:     0x7f332e431eb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  31:     0x7f332e3deca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7f332d8fa7ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  33:     0x7f332d695b43 - <unknown>
  34:     0x7f332d727a00 - <unknown>
  35:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=off
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:
stack backtrace:
   0:     0x7f332d8ea831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7f332d9527f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7f332d8ded31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7f332d8ea641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7f332d8ed79a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7f332d8ed48c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7f332e3cd8cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7f332d8edede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7f332d8edc39 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7f332d8eacf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7f332d8ed947 - rust_begin_unwind
  11:     0x7f332d8a2193 - core::panicking::panic_nounwind_fmt::h75a51feed8bb9d55
  12:     0x7f332d8a2237 - core::panicking::panic_nounwind::h1ce78c3fe1ccaad1
  13:     0x7f332d8a23c3 - core::panicking::panic_cannot_unwind::h36aeb1260c5828e5
  14:     0x7f332e3e92f0 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  15:     0x7f332e3d9039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  16:     0x7f332e3ef636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  17:     0x7f332e431eb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  18:     0x7f332e3deca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  19:     0x7f332d8fa7ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  20:     0x7f332d695b43 - <unknown>
  21:     0x7f332d727a00 - <unknown>
  22:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=off
query stack during panic:
end of query stack
thread caused non-unwinding panic. aborting.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/issues/issue-45697-1.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/issues/issue-45697-1.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-45697-1" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-45697-1/auxiliary" "-C" "overflow-checks=on"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7fcfbb267831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7fcfbb2cf7f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7fcfbb25bd31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   2:     0x7fcfbb25bd31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7fcfbb267641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7fcfbb26a79a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7fcfbb26a48c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7fcfbbd4a8cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7fcfbb26aede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7fcfbb26ac77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7fcfbb267cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7fcfbb26a947 - rust_begin_unwind
  11:     0x7fcfbb21f153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7fcfbb21f723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7fcfbec0b57c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7fcfbec0fbbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7fcfbec0e6d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7fcfbec02c4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7fcfbec342e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7fcfbec32d2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7fcfbec27b91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7fcfbbe5097f - rustc_interface[eb78f09a767f3ac2]::callbacks::track_diagnostic
  21:     0x7fcfbec27409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  22:     0x7fcfbec2643e - <rustc_errors[c70362ec7ed12210]::Handler>::emit_diagnostic
  23:     0x7fcfbd1c2bcc - rustc_borrowck[d6eb6a695ce8a019]::do_mir_borrowck
  24:     0x7fcfbd1aaf0d - rustc_borrowck[d6eb6a695ce8a019]::mir_borrowck
  25:     0x7fcfbd8b07cc - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7fcfbd876e6c - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, rustc_span[44f6c4d847920136]::def_id::LocalDefId)>>::call_once
  27:     0x7fcfbda3b898 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::VecCache<rustc_span[44f6c4d847920136]::def_id::LocalDefId, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  28:     0x7fcfbd7b7d56 - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fcfbbe322dc - <core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once
  30:     0x7fcfbbe05c46 - std[bc0fe800104f8ffd]::panicking::try::<(), core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7fcfbbe3ebed - rustc_data_structures[7efdb3a32428e51e]::sync::par_for_each_in::<&[rustc_span[44f6c4d847920136]::def_id::LocalDefId], <rustc_middle[65833bc3f28b3965]::hir::map::Map>::par_body_owners<rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7fcfbbef16e0 - <rustc_session[32eb005bb7001c04]::session::Session>::time::<(), rustc_interface[eb78f09a767f3ac2]::passes::analysis::{closure#1}>
  33:     0x7fcfbbe1ded7 - rustc_interface[eb78f09a767f3ac2]::passes::analysis
  34:     0x7fcfbd8b4a9a - rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7fcfbd8f5988 - <rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::dynamic_query::{closure#2} as core[a05edf31faea30f8]::ops::function::FnOnce<(rustc_middle[65833bc3f28b3965]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7fcfbd9b30d2 - rustc_query_system[2e3b5e97ba0d7c63]::query::plumbing::try_execute_query::<rustc_query_impl[2ad7d9a9f1cb988e]::DynamicConfig<rustc_query_system[2e3b5e97ba0d7c63]::query::caches::SingleCache<rustc_middle[65833bc3f28b3965]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[2ad7d9a9f1cb988e]::plumbing::QueryCtxt, false>
  37:     0x7fcfbd7b344d - rustc_query_impl[2ad7d9a9f1cb988e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7fcfbbd674cd - <rustc_middle[65833bc3f28b3965]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  39:     0x7fcfbbd92dce - <rustc_interface[eb78f09a767f3ac2]::interface::Compiler>::enter::<rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}::{closure#2}, core[a05edf31faea30f8]::result::Result<core[a05edf31faea30f8]::option::Option<rustc_interface[eb78f09a767f3ac2]::queries::Linker>, rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  40:     0x7fcfbbd65e90 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7fcfbbd56039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  42:     0x7fcfbbd6c636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  43:     0x7fcfbbdaeeb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7fcfbbd5bca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7fcfbb2777ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  46:     0x7fcfbb012b43 - <unknown>
  47:     0x7fcfbb0a4a00 - <unknown>
  48:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=on
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#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

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7fcfbb267831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7fcfbb2cf7f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7fcfbb25bd31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   2:     0x7fcfbb25bd31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7fcfbb267641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7fcfbb26a79a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7fcfbb26a48c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7fcfbbd4a8cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7fcfbb26aede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7fcfbb26ac77 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7fcfbb267cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7fcfbb26a947 - rust_begin_unwind
  11:     0x7fcfbb21f153 - core::panicking::panic_fmt::hf622fc7cf72147ea
  12:     0x7fcfbb21f723 - core::result::unwrap_failed::hd6a9db9cc987c56a
  13:     0x7fcfbec0b57c - <rustc_errors[c70362ec7ed12210]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7fcfbec0fbbf - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7fcfbec0e6d1 - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter>::emit_message_default
  16:     0x7fcfbec02c4f - <rustc_errors[c70362ec7ed12210]::emitter::EmitterWriter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  17:     0x7fcfbec342e7 - <rustc_errors[c70362ec7ed12210]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7fcfbec32d2c - <rustc_errors[c70362ec7ed12210]::json::JsonEmitter as rustc_errors[c70362ec7ed12210]::emitter::Emitter>::emit_diagnostic
  19:     0x7fcfbec27b91 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7fcfbec27409 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::emit_diagnostic
  21:     0x7fcfbec284e9 - <rustc_errors[c70362ec7ed12210]::HandlerInner>::flush_delayed::<alloc[91d98ad55cf49632]::vec::Vec<rustc_errors[c70362ec7ed12210]::DelayedDiagnostic>, &str>
  22:     0x7fcfbec2403e - <rustc_errors[c70362ec7ed12210]::HandlerInner as core[a05edf31faea30f8]::ops::drop::Drop>::drop
  23:     0x7fcfbbd5f4fc - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_session[32eb005bb7001c04]::parse::ParseSess>
  24:     0x7fcfbbd60a28 - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_session[32eb005bb7001c04]::session::Session>
  25:     0x7fcfbbd65083 - <alloc[91d98ad55cf49632]::rc::Rc<rustc_session[32eb005bb7001c04]::session::Session> as core[a05edf31faea30f8]::ops::drop::Drop>::drop
  26:     0x7fcfbbd6c2cd - core[a05edf31faea30f8]::ptr::drop_in_place::<rustc_interface[eb78f09a767f3ac2]::interface::Compiler>
  27:     0x7fcfbbd662ce - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  28:     0x7fcfbbd56039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  29:     0x7fcfbbd6c636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  30:     0x7fcfbbdaeeb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  31:     0x7fcfbbd5bca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7fcfbb2777ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  33:     0x7fcfbb012b43 - <unknown>
  34:     0x7fcfbb0a4a00 - <unknown>
  35:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=on
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:
stack backtrace:
   0:     0x7fcfbb267831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h127ac3faf28f7e53
   1:     0x7fcfbb2cf7f8 - core::fmt::write::hfcae8913aa60fa98
   2:     0x7fcfbb25bd31 - std::io::Write::write_fmt::h0f5688b5f9efbbb3
   3:     0x7fcfbb267641 - std::sys_common::backtrace::print::habdcf1d69ce1d93a
   4:     0x7fcfbb26a79a - std::panicking::default_hook::{{closure}}::hee3c5b6760ea1cf1
   5:     0x7fcfbb26a48c - std::panicking::default_hook::h0c8ac24087b72ffd
   6:     0x7fcfbbd4a8cb - rustc_driver_impl[8280440adfcfb50]::install_ice_hook::{closure#0}
   7:     0x7fcfbb26aede - std::panicking::rust_panic_with_hook::h6001168254f97b38
   8:     0x7fcfbb26ac39 - std::panicking::begin_panic_handler::{{closure}}::hadf82e05757fce75
   9:     0x7fcfbb267cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9360c163e9df3172
  10:     0x7fcfbb26a947 - rust_begin_unwind
  11:     0x7fcfbb21f193 - core::panicking::panic_nounwind_fmt::h75a51feed8bb9d55
  12:     0x7fcfbb21f237 - core::panicking::panic_nounwind::h1ce78c3fe1ccaad1
  13:     0x7fcfbb21f3c3 - core::panicking::panic_cannot_unwind::h36aeb1260c5828e5
  14:     0x7fcfbbd662f0 - rustc_span[44f6c4d847920136]::set_source_map::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  15:     0x7fcfbbd56039 - <scoped_tls[d531ecf0b009f72]::ScopedKey<rustc_span[44f6c4d847920136]::SessionGlobals>>::set::<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  16:     0x7fcfbbd6c636 - std[bc0fe800104f8ffd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>
  17:     0x7fcfbbdaeeb8 - std[bc0fe800104f8ffd]::panicking::try::<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, core[a05edf31faea30f8]::panic::unwind_safe::AssertUnwindSafe<<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  18:     0x7fcfbbd5bca1 - <<std[bc0fe800104f8ffd]::thread::Builder>::spawn_unchecked_<rustc_interface[eb78f09a767f3ac2]::util::run_in_thread_pool_with_globals<rustc_interface[eb78f09a767f3ac2]::interface::run_compiler<core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>, rustc_driver_impl[8280440adfcfb50]::run_compiler::{closure#1}>::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a05edf31faea30f8]::result::Result<(), rustc_span[44f6c4d847920136]::ErrorGuaranteed>>::{closure#1} as core[a05edf31faea30f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  19:     0x7fcfbb2777ce - std::sys::unix::thread::Thread::new::thread_start::h7c781fa257690c49
  20:     0x7fcfbb012b43 - <unknown>
  21:     0x7fcfbb0a4a00 - <unknown>
  22:                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 (4147db0b3 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=on
query stack during panic:

@sladyn98
Copy link
Contributor Author

sladyn98 commented Jun 7, 2023

Do we have to bless these tests or fix them manually : )

@compiler-errors
Copy link
Member

compiler-errors commented Jun 7, 2023

These tests are crashing because of a bug in this PR:

---- [ui] tests/ui/issues/issue-45697-1.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/issues/issue-45697-1.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-45697-1" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-45697-1/auxiliary" "-C" "overflow-checks=on"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:

@compiler-errors
Copy link
Member

Whoops, wrong button.

pub(crate) struct CannotUseWhenMutablyBorrowed<'a> {
#[primary_span]
pub span: Span,
#[label]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no corresponding label in the ftl file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am still trying to understand how to use them, would just including the rest of the parameters under primary span work ? I can then just put their placeholders in the ftl file. I read the documentation but I was not really sure how to incorporate them in the .ftl file

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a #[label] is a reference to a .label = <msg> attribute on the borrowck_cannot_use_when_mutably_borrowed message, so it should have something like:

borrowck_cannot_use_when_mutably_borrowed = cannot use `{$desc}` when mutably borrowed
    .label = <msg>

span,
E0503,
"cannot use {} because it was mutably borrowed",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change the wording from here to "cannot use {$desc} when mutably borrowed"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read some of the examples in the ftl file and there were certain placeholders there so since desc would be put in here in the message I thought {desc} would be also substituted in the ftl file from the struct passed in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be completely wrong, feel free to correct me

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant, why did you change the wording? The old phrasing was "because it was mutably borrowed", the new phrasing is "when mutably borrowed"? I think we should separate diagnostics migration from tweaks of wording.

Comment on lines -40 to -41
err.span_label(borrow_span, format!("{} is borrowed here", borrow_desc));
err.span_label(span, format!("use of borrowed {}", borrow_desc));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These labels weren't added to the ftl file, where did they go?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should they be added as separate messages with their labels something like this

borrowck_cannot_use_when_mutably_borrowed = {$borrow_span} is borrowed here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should preserve all the error messages as much as possible

@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-llvm-14 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
...........................................i............................................  1056/15103
.................................................................i......................  1144/15103
........................................................................................  1232/15103
........................................................................................  1320/15103
........................F......F.........F..............................................  1408/15103
............................F...F...................................F...................  1496/15103
....................F......................F........................F............i......  1584/15103
.......................................................F..........F.....................  1672/15103
......................i.................................................................  1848/15103
....................................................F...................................  1936/15103
........................................................................................  2024/15103
............................................................................i...........  2112/15103
---
........................................................................................  8888/15103
........................................................................................  8976/15103
...............................................ii.................i......i..i...........  9064/15103
..................................................................i.....................  9152/15103
........................................................................F..F............  9240/15103
.........................F..............................................................  9328/15103
..................................................................................F.....  9416/15103
................F.....................F......................................F..........  9504/15103
......................ii................................................................  9680/15103
........................................................................................  9768/15103
........................................................................................  9856/15103
....i..........................................i........................................  9944/15103
---
failures:

---- [ui] tests/ui/asm/type-check-4.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/type-check-4.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-4" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-4/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0506]: cannot assign to `a` because it is borrowed
  --> fake-test-src-base/asm/type-check-4.rs:14:9
LL |         let p = &a;
   |                 -- `a` is borrowed here
   |                 -- `a` is borrowed here
LL |         asm!("{}", out(reg) a);
   |         ^^^^^^^^^^^^^^^^^^^^^^ `a` is assigned to here but it was already borrowed
LL |         //~^ cannot assign to `a` because it is borrowed
LL |         println!("{}", p);


thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7f335567c831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7f33556e47f8 - core::fmt::write::h96be581505809ed6
   2:     0x7f3355670dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   2:     0x7f3355670dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7f335567c641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7f335567f79a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7f335567f48c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7f335615f95b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7f335567fede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7f335567fc77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7f335567ccf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7f335567f947 - rust_begin_unwind
  11:     0x7f3355634153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7f3355634723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7f33590229fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f335902703f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f3359025b51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f335901a0cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7f335904b767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f335904a1ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7f335903f011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f33562657ef - rustc_interface[93fae87238e7c270]::callbacks::track_diagnostic
  21:     0x7f335903e889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  22:     0x7f335903d8be - <rustc_errors[71d7db7db19fd993]::Handler>::emit_diagnostic
  23:     0x7f33575d6d4c - rustc_borrowck[e4af930aceb43d03]::do_mir_borrowck
  24:     0x7f33575bf08d - rustc_borrowck[e4af930aceb43d03]::mir_borrowck
  25:     0x7f3357cc60ec - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7f3357c8c78c - <rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, rustc_span[773de821da62f57b]::def_id::LocalDefId)>>::call_once
  27:     0x7f3357e511e8 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::VecCache<rustc_span[773de821da62f57b]::def_id::LocalDefId, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  28:     0x7f3357b9bf66 - rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f33562471ac - <core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once
  30:     0x7f335621a636 - std[b9712328b4607ac2]::panicking::try::<(), core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7f3356253abd - rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in::<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7f33563065b0 - <rustc_session[a27564c90c4f41bc]::session::Session>::time::<(), rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}>
  33:     0x7f3356232e67 - rustc_interface[93fae87238e7c270]::passes::analysis
  34:     0x7f3357cca3ba - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7f3357d0b178 - <rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7f3357dc8a22 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::SingleCache<rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  37:     0x7f3357bc890d - rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f335617c4cd - <rustc_middle[c1eccd368d9cff1e]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  39:     0x7f33561a7dce - <rustc_interface[93fae87238e7c270]::interface::Compiler>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}, core[801b4f0c4c027b72]::result::Result<core[801b4f0c4c027b72]::option::Option<rustc_interface[93fae87238e7c270]::queries::Linker>, rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  40:     0x7f335617ae90 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7f335616b129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  42:     0x7f3356181616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  43:     0x7f33561c4278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7f3356170d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7f335568c7ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  46:     0x7f3355427b43 - <unknown>
  47:     0x7f33554b9a00 - <unknown>
  48:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#1 [analysis] running analysis passes on this crate
error: aborting due to previous error

Some errors have detailed explanations: E0503, E0506.
For more information about an error, try `rustc --explain E0503`.
For more information about an error, try `rustc --explain E0503`.
------------------------------------------


---- [ui] tests/ui/borrowck/borrowck-anon-fields-variant.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/borrowck/borrowck-anon-fields-variant.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/borrowck/borrowck-anon-fields-variant" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/borrowck/borrowck-anon-fields-variant/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7f9f1c260831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7f9f1c2c87f8 - core::fmt::write::h96be581505809ed6
   2:     0x7f9f1c254dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   2:     0x7f9f1c254dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7f9f1c260641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7f9f1c26379a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7f9f1c26348c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7f9f1cd4395b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7f9f1c263ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7f9f1c263c77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7f9f1c260cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7f9f1c263947 - rust_begin_unwind
  11:     0x7f9f1c218153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7f9f1c218723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7f9f1fc069fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f9f1fc0b03f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f9f1fc09b51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f9f1fbfe0cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7f9f1fc2f767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f9f1fc2e1ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7f9f1fc23011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f9f1ce497ef - rustc_interface[93fae87238e7c270]::callbacks::track_diagnostic
  21:     0x7f9f1fc22889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  22:     0x7f9f1fc218be - <rustc_errors[71d7db7db19fd993]::Handler>::emit_diagnostic
  23:     0x7f9f1e1bad4c - rustc_borrowck[e4af930aceb43d03]::do_mir_borrowck
  24:     0x7f9f1e1a308d - rustc_borrowck[e4af930aceb43d03]::mir_borrowck
  25:     0x7f9f1e8aa0ec - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7f9f1e87078c - <rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, rustc_span[773de821da62f57b]::def_id::LocalDefId)>>::call_once
  27:     0x7f9f1ea351e8 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::VecCache<rustc_span[773de821da62f57b]::def_id::LocalDefId, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  28:     0x7f9f1e77ff66 - rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f9f1ce2b1ac - <core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once
  30:     0x7f9f1cdfe636 - std[b9712328b4607ac2]::panicking::try::<(), core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7f9f1ce37abd - rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in::<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7f9f1ceea5b0 - <rustc_session[a27564c90c4f41bc]::session::Session>::time::<(), rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}>
  33:     0x7f9f1ce16e67 - rustc_interface[93fae87238e7c270]::passes::analysis
  34:     0x7f9f1e8ae3ba - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7f9f1e8ef178 - <rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7f9f1e9aca22 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::SingleCache<rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  37:     0x7f9f1e7ac90d - rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f9f1cd604cd - <rustc_middle[c1eccd368d9cff1e]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  39:     0x7f9f1cd8bdce - <rustc_interface[93fae87238e7c270]::interface::Compiler>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}, core[801b4f0c4c027b72]::result::Result<core[801b4f0c4c027b72]::option::Option<rustc_interface[93fae87238e7c270]::queries::Linker>, rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  40:     0x7f9f1cd5ee90 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7f9f1cd4f129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  42:     0x7f9f1cd65616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  43:     0x7f9f1cda8278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7f9f1cd54d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7f9f1c2707ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  46:     0x7f9f1c00bb43 - <unknown>
  47:     0x7f9f1c09da00 - <unknown>
  48:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `distinct_variant`
#1 [analysis] running analysis passes on this crate
end of query stack
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7f9f1c260831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7f9f1c2c87f8 - core::fmt::write::h96be581505809ed6
   2:     0x7f9f1c254dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   2:     0x7f9f1c254dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7f9f1c260641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7f9f1c26379a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7f9f1c26348c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7f9f1cd4395b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7f9f1c263ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7f9f1c263c77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7f9f1c260cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7f9f1c263947 - rust_begin_unwind
  11:     0x7f9f1c218153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7f9f1c218723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7f9f1fc069fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f9f1fc0b03f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f9f1fc09b51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f9f1fbfe0cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7f9f1fc2f767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f9f1fc2e1ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7f9f1fc23011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f9f1ce497ef - rustc_interface[93fae87238e7c270]::callbacks::track_diagnostic
  21:     0x7f9f1fc22889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  22:     0x7f9f1fc218be - <rustc_errors[71d7db7db19fd993]::Handler>::emit_diagnostic
  23:     0x7f9f1e1bad4c - rustc_borrowck[e4af930aceb43d03]::do_mir_borrowck
  24:     0x7f9f1e1a308d - rustc_borrowck[e4af930aceb43d03]::mir_borrowck
  25:     0x7f9f1e8aa0ec - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7f9f1e87078c - <rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, rustc_span[773de821da62f57b]::def_id::LocalDefId)>>::call_once
  27:     0x7f9f1ea351e8 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::VecCache<rustc_span[773de821da62f57b]::def_id::LocalDefId, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  28:     0x7f9f1e77ff66 - rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f9f1ce2b1ac - <core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once
  30:     0x7f9f1cdfe636 - std[b9712328b4607ac2]::panicking::try::<(), core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7f9f1ce37abd - rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in::<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7f9f1ceea5b0 - <rustc_session[a27564c90c4f41bc]::session::Session>::time::<(), rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}>
  33:     0x7f9f1ce16e67 - rustc_interface[93fae87238e7c270]::passes::analysis
  34:     0x7f9f1e8ae3ba - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7f9f1e8ef178 - <rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7f9f1e9aca22 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::SingleCache<rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  37:     0x7f9f1e7ac90d - rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f9f1cd604cd - <rustc_middle[c1eccd368d9cff1e]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  39:     0x7f9f1cd8bdce - <rustc_interface[93fae87238e7c270]::interface::Compiler>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}, core[801b4f0c4c027b72]::result::Result<core[801b4f0c4c027b72]::option::Option<rustc_interface[93fae87238e7c270]::queries::Linker>, rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  40:     0x7f9f1cd5ee90 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7f9f1cd4f129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  42:     0x7f9f1cd65616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  43:     0x7f9f1cda8278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7f9f1cd54d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7f9f1c2707ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  46:     0x7f9f1c00bb43 - <unknown>
  47:     0x7f9f1c09da00 - <unknown>
  48:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `same_variant`
#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

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7f9f1c260831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7f9f1c2c87f8 - core::fmt::write::h96be581505809ed6
   2:     0x7f9f1c254dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   2:     0x7f9f1c254dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7f9f1c260641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7f9f1c26379a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7f9f1c26348c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7f9f1cd4395b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7f9f1c263ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7f9f1c263c77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7f9f1c260cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7f9f1c263947 - rust_begin_unwind
  11:     0x7f9f1c218153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7f9f1c218723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7f9f1fc069fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f9f1fc0b03f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f9f1fc09b51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f9f1fbfe0cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7f9f1fc2f767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f9f1fc2e1ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7f9f1fc23011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f9f1fc22889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  21:     0x7f9f1fc23969 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::flush_delayed::<alloc[be2b472e808ccd3a]::vec::Vec<rustc_errors[71d7db7db19fd993]::DelayedDiagnostic>, &str>
  22:     0x7f9f1fc1f4be - <rustc_errors[71d7db7db19fd993]::HandlerInner as core[801b4f0c4c027b72]::ops::drop::Drop>::drop
  23:     0x7f9f1cd5845c - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_session[a27564c90c4f41bc]::parse::ParseSess>
  24:     0x7f9f1cd59988 - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_session[a27564c90c4f41bc]::session::Session>
  25:     0x7f9f1cd5e453 - <alloc[be2b472e808ccd3a]::rc::Rc<rustc_session[a27564c90c4f41bc]::session::Session> as core[801b4f0c4c027b72]::ops::drop::Drop>::drop
  26:     0x7f9f1cd6301d - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_interface[93fae87238e7c270]::interface::Compiler>
  27:     0x7f9f1cd5f2ce - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  28:     0x7f9f1cd4f129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  29:     0x7f9f1cd65616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  30:     0x7f9f1cda8278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  31:     0x7f9f1cd54d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7f9f1c2707ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  33:     0x7f9f1c00bb43 - <unknown>
  34:     0x7f9f1c09da00 - <unknown>
  35:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
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:
stack backtrace:
   0:     0x7f9f1c260831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7f9f1c2c87f8 - core::fmt::write::h96be581505809ed6
   2:     0x7f9f1c254dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7f9f1c260641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7f9f1c26379a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7f9f1c26348c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7f9f1cd4395b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7f9f1c263ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7f9f1c263c39 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7f9f1c260cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7f9f1c263947 - rust_begin_unwind
  11:     0x7f9f1c218193 - core::panicking::panic_nounwind_fmt::h750323ece701df72
  12:     0x7f9f1c218237 - core::panicking::panic_nounwind::hf726f5f46b4e4a2f
  13:     0x7f9f1c2183c3 - core::panicking::panic_cannot_unwind::hffb93a087f8ea388
  14:     0x7f9f1cd5f2f0 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  15:     0x7f9f1cd4f129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  16:     0x7f9f1cd65616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  17:     0x7f9f1cda8278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  18:     0x7f9f1cd54d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  19:     0x7f9f1c2707ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  20:     0x7f9f1c00bb43 - <unknown>
  21:     0x7f9f1c09da00 - <unknown>
  22:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
thread caused non-unwinding panic. aborting.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
stack backtrace:
   0:     0x7f858ba82831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7f858baea7f8 - core::fmt::write::h96be581505809ed6
   2:     0x7f858ba76dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7f858ba82641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7f858ba8579a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7f858ba8548c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7f858c56595b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7f858ba85ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7f858ba85c77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7f858ba82cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7f858ba85947 - rust_begin_unwind
  11:     0x7f858ba3a153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7f858ba3a723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7f858f4289fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f858f42d03f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f858f42bb51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f858f4200cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7f858f451767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f858f4501ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7f858f445011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f858c66b7ef - rustc_interface[93fae87238e7c270]::callbacks::track_diagnostic
  21:     0x7f858f444889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  22:     0x7f858f4438be - <rustc_errors[71d7db7db19fd993]::Handler>::emit_diagnostic
  23:     0x7f858d9dcd4c - rustc_borrowck[e4af930aceb43d03]::do_mir_borrowck
  24:     0x7f858d9c508d - rustc_borrowck[e4af930aceb43d03]::mir_borrowck
  25:     0x7f858e0cc0ec - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7f858e09278c - <rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, rustc_span[773de821da62f57b]::def_id::LocalDefId)>>::call_once
  27:     0x7f858e2571e8 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::VecCache<rustc_span[773de821da62f57b]::def_id::LocalDefId, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  28:     0x7f858dfa1f66 - rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f858c64d1ac - <core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once
  30:     0x7f858c620636 - std[b9712328b4607ac2]::panicking::try::<(), core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7f858c659abd - rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in::<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7f858c70c5b0 - <rustc_session[a27564c90c4f41bc]::session::Session>::time::<(), rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}>
  33:     0x7f858c638e67 - rustc_interface[93fae87238e7c270]::passes::analysis
  34:     0x7f858e0d03ba - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7f858e111178 - <rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7f858e1cea22 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::SingleCache<rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  37:     0x7f858dfce90d - rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f858c5824cd - <rustc_middle[c1eccd368d9cff1e]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  39:     0x7f858c5addce - <rustc_interface[93fae87238e7c270]::interface::Compiler>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}, core[801b4f0c4c027b72]::result::Result<core[801b4f0c4c027b72]::option::Option<rustc_interface[93fae87238e7c270]::queries::Linker>, rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  40:     0x7f858c580e90 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7f858c571129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  42:     0x7f858c587616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  43:     0x7f858c5ca278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7f858c576d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7f858ba927ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  46:     0x7f858b82db43 - <unknown>
  47:     0x7f858b8bfa00 - <unknown>
  48:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#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

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
stack backtrace:
   0:     0x7f858ba82831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7f858baea7f8 - core::fmt::write::h96be581505809ed6
   2:     0x7f858ba76dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7f858ba82641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7f858ba8579a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7f858ba8548c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7f858c56595b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7f858ba85ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7f858ba85c77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7f858ba82cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7f858ba85947 - rust_begin_unwind
  11:     0x7f858ba3a153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7f858ba3a723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7f858f4289fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f858f42d03f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f858f42bb51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f858f4200cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7f858f451767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f858f4501ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7f858f445011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f858f444889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  21:     0x7f858f445969 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::flush_delayed::<alloc[be2b472e808ccd3a]::vec::Vec<rustc_errors[71d7db7db19fd993]::DelayedDiagnostic>, &str>
  22:     0x7f858f4414be - <rustc_errors[71d7db7db19fd993]::HandlerInner as core[801b4f0c4c027b72]::ops::drop::Drop>::drop
  23:     0x7f858c57a45c - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_session[a27564c90c4f41bc]::parse::ParseSess>
  24:     0x7f858c57b988 - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_session[a27564c90c4f41bc]::session::Session>
  25:     0x7f858c580453 - <alloc[be2b472e808ccd3a]::rc::Rc<rustc_session[a27564c90c4f41bc]::session::Session> as core[801b4f0c4c027b72]::ops::drop::Drop>::drop
  26:     0x7f858c58501d - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_interface[93fae87238e7c270]::interface::Compiler>
  27:     0x7f858c5812ce - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  28:     0x7f858c571129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  29:     0x7f858c587616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  30:     0x7f858c5ca278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  31:     0x7f858c576d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7f858ba927ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  33:     0x7f858b82db43 - <unknown>
  34:     0x7f858b8bfa00 - <unknown>
  35:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
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:
stack backtrace:
   0:     0x7f858ba82831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7f858baea7f8 - core::fmt::write::h96be581505809ed6
   2:     0x7f858ba76dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7f858ba82641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7f858ba8579a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7f858ba8548c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7f858c56595b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7f858ba85ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7f858ba85c39 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7f858ba82cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7f858ba85947 - rust_begin_unwind
  11:     0x7f858ba3a193 - core::panicking::panic_nounwind_fmt::h750323ece701df72
  12:     0x7f858ba3a237 - core::panicking::panic_nounwind::hf726f5f46b4e4a2f
  13:     0x7f858ba3a3c3 - core::panicking::panic_cannot_unwind::hffb93a087f8ea388
  14:     0x7f858c5812f0 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  15:     0x7f858c571129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  16:     0x7f858c587616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  17:     0x7f858c5ca278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  18:     0x7f858c576d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  19:     0x7f858ba927ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  20:     0x7f858b82db43 - <unknown>
  21:     0x7f858b8bfa00 - <unknown>
  22:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
thread caused non-unwinding panic. aborting.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/borrowck/borrowck-describe-lvalue.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
---


---- [ui] tests/ui/error-codes/E0503.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/error-codes/E0503.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0503" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0503/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
stack backtrace:
   0:     0x7f64ad66d831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7f64ad6d57f8 - core::fmt::write::h96be581505809ed6
   2:     0x7f64ad661dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7f64ad66d641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7f64ad67079a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7f64ad67048c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7f64ae15095b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7f64ad670ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7f64ad670c77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7f64ad66dcf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  11:     0x7f64ad625153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7f64ad625723 - core::result::unwrap_failed::hb163a0b69241465d
  12:     0x7f64ad625723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7f64b10139fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f64b101803f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f64b1016b51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f64b100b0cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7f64b103c767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f64b103b1ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7f64b1030011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f64ae2567ef - rustc_interface[93fae87238e7c270]::callbacks::track_diagnostic
  21:     0x7f64b102f889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  22:     0x7f64b102e8be - <rustc_errors[71d7db7db19fd993]::Handler>::emit_diagnostic
  23:     0x7f64af5c7d4c - rustc_borrowck[e4af930aceb43d03]::do_mir_borrowck
  24:     0x7f64af5b008d - rustc_borrowck[e4af930aceb43d03]::mir_borrowck
  25:     0x7f64afcb70ec - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7f64afc7d78c - <rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, rustc_span[773de821da62f57b]::def_id::LocalDefId)>>::call_once
  27:     0x7f64afe421e8 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::VecCache<rustc_span[773de821da62f57b]::def_id::LocalDefId, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  28:     0x7f64afb8cf66 - rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f64ae2381ac - <core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once
  30:     0x7f64ae20b636 - std[b9712328b4607ac2]::panicking::try::<(), core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7f64ae244abd - rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in::<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7f64ae2f75b0 - <rustc_session[a27564c90c4f41bc]::session::Session>::time::<(), rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}>
  33:     0x7f64ae223e67 - rustc_interface[93fae87238e7c270]::passes::analysis
  34:     0x7f64afcbb3ba - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7f64afcfc178 - <rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7f64afdb9a22 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::SingleCache<rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  37:     0x7f64afbb990d - rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f64ae16d4cd - <rustc_middle[c1eccd368d9cff1e]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  39:     0x7f64ae198dce - <rustc_interface[93fae87238e7c270]::interface::Compiler>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}, core[801b4f0c4c027b72]::result::Result<core[801b4f0c4c027b72]::option::Option<rustc_interface[93fae87238e7c270]::queries::Linker>, rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  40:     0x7f64ae16be90 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7f64ae15c129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  42:     0x7f64ae172616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  43:     0x7f64ae1b5278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7f64ae161d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7f64ad67d7ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  46:     0x7f64ad418b43 - <unknown>
  47:     0x7f64ad4aaa00 - <unknown>
  48:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#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

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
stack backtrace:
   0:     0x7f64ad66d831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7f64ad6d57f8 - core::fmt::write::h96be581505809ed6
   2:     0x7f64ad661dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7f64ad66d641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7f64ad67079a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7f64ad67048c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7f64ae15095b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7f64ad670ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7f64ad670c77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7f64ad66dcf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  11:     0x7f64ad625153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7f64ad625723 - core::result::unwrap_failed::hb163a0b69241465d
  12:     0x7f64ad625723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7f64b10139fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7f64b101803f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7f64b1016b51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7f64b100b0cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7f64b103c767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7f64b103b1ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7f64b1030011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7f64b102f889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  21:     0x7f64b1030969 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::flush_delayed::<alloc[be2b472e808ccd3a]::vec::Vec<rustc_errors[71d7db7db19fd993]::DelayedDiagnostic>, &str>
  22:     0x7f64b102c4be - <rustc_errors[71d7db7db19fd993]::HandlerInner as core[801b4f0c4c027b72]::ops::drop::Drop>::drop
  23:     0x7f64ae16545c - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_session[a27564c90c4f41bc]::parse::ParseSess>
  24:     0x7f64ae166988 - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_session[a27564c90c4f41bc]::session::Session>
  25:     0x7f64ae16b453 - <alloc[be2b472e808ccd3a]::rc::Rc<rustc_session[a27564c90c4f41bc]::session::Session> as core[801b4f0c4c027b72]::ops::drop::Drop>::drop
  26:     0x7f64ae17001d - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_interface[93fae87238e7c270]::interface::Compiler>
  27:     0x7f64ae16c2ce - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  28:     0x7f64ae15c129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  29:     0x7f64ae172616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  30:     0x7f64ae1b5278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  31:     0x7f64ae161d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7f64ad67d7ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  33:     0x7f64ad418b43 - <unknown>
  34:     0x7f64ad4aaa00 - <unknown>
  35:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
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:
stack backtrace:
   0:     0x7f64ad66d831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7f64ad6d57f8 - core::fmt::write::h96be581505809ed6
   2:     0x7f64ad661dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7f64ad66d641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7f64ad67079a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7f64ad67048c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7f64ae15095b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7f64ad670ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7f64ad670c39 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7f64ad66dcf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7f64ad670947 - rust_begin_unwind
  11:     0x7f64ad625193 - core::panicking::panic_nounwind_fmt::h750323ece701df72
  12:     0x7f64ad625237 - core::panicking::panic_nounwind::hf726f5f46b4e4a2f
  13:     0x7f64ad6253c3 - core::panicking::panic_cannot_unwind::hffb93a087f8ea388
  14:     0x7f64ae16c2f0 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  15:     0x7f64ae15c129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  16:     0x7f64ae172616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  17:     0x7f64ae1b5278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  18:     0x7f64ae161d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  19:     0x7f64ad67d7ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  20:     0x7f64ad418b43 - <unknown>
  21:     0x7f64ad4aaa00 - <unknown>
  22:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
thread caused non-unwinding panic. aborting.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/issues/issue-45697.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/issues/issue-45697.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-45697" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-45697/auxiliary" "-C" "overflow-checks=off"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
stack backtrace:
   0:     0x7fcf3f2da831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7fcf3f3427f8 - core::fmt::write::h96be581505809ed6
   2:     0x7fcf3f2cedd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7fcf3f2da641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7fcf3f2dd79a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7fcf3f2dd48c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7fcf3fdbd95b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7fcf3f2ddede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7fcf3f2ddc77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7fcf3f2dacf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7fcf3f2dd947 - rust_begin_unwind
  11:     0x7fcf3f292153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7fcf3f292723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7fcf42c809fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7fcf42c8503f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7fcf42c83b51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7fcf42c780cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7fcf42ca9767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7fcf42ca81ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7fcf42c9d011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7fcf3fec37ef - rustc_interface[93fae87238e7c270]::callbacks::track_diagnostic
  21:     0x7fcf42c9c889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  22:     0x7fcf42c9b8be - <rustc_errors[71d7db7db19fd993]::Handler>::emit_diagnostic
  23:     0x7fcf41234d4c - rustc_borrowck[e4af930aceb43d03]::do_mir_borrowck
  24:     0x7fcf4121d08d - rustc_borrowck[e4af930aceb43d03]::mir_borrowck
  25:     0x7fcf419240ec - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7fcf418ea78c - <rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, rustc_span[773de821da62f57b]::def_id::LocalDefId)>>::call_once
  27:     0x7fcf41aaf1e8 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::VecCache<rustc_span[773de821da62f57b]::def_id::LocalDefId, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  28:     0x7fcf417f9f66 - rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fcf3fea51ac - <core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once
  30:     0x7fcf3fe78636 - std[b9712328b4607ac2]::panicking::try::<(), core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7fcf3feb1abd - rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in::<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7fcf3ff645b0 - <rustc_session[a27564c90c4f41bc]::session::Session>::time::<(), rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}>
  33:     0x7fcf3fe90e67 - rustc_interface[93fae87238e7c270]::passes::analysis
  34:     0x7fcf419283ba - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7fcf41969178 - <rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7fcf41a26a22 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::SingleCache<rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  37:     0x7fcf4182690d - rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7fcf3fdda4cd - <rustc_middle[c1eccd368d9cff1e]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  39:     0x7fcf3fe05dce - <rustc_interface[93fae87238e7c270]::interface::Compiler>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}, core[801b4f0c4c027b72]::result::Result<core[801b4f0c4c027b72]::option::Option<rustc_interface[93fae87238e7c270]::queries::Linker>, rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  40:     0x7fcf3fdd8e90 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7fcf3fdc9129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  42:     0x7fcf3fddf616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  43:     0x7fcf3fe22278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7fcf3fdced91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7fcf3f2ea7ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  46:     0x7fcf3f085b43 - <unknown>
  47:     0x7fcf3f117a00 - <unknown>
  48:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=off
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#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

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
stack backtrace:
   0:     0x7fcf3f2da831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7fcf3f3427f8 - core::fmt::write::h96be581505809ed6
   2:     0x7fcf3f2cedd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7fcf3f2da641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7fcf3f2dd79a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7fcf3f2dd48c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7fcf3fdbd95b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7fcf3f2ddede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7fcf3f2ddc77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7fcf3f2dacf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7fcf3f2dd947 - rust_begin_unwind
  11:     0x7fcf3f292153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7fcf3f292723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7fcf42c809fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7fcf42c8503f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7fcf42c83b51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7fcf42c780cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7fcf42ca9767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7fcf42ca81ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7fcf42c9d011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7fcf42c9c889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  21:     0x7fcf42c9d969 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::flush_delayed::<alloc[be2b472e808ccd3a]::vec::Vec<rustc_errors[71d7db7db19fd993]::DelayedDiagnostic>, &str>
  22:     0x7fcf42c994be - <rustc_errors[71d7db7db19fd993]::HandlerInner as core[801b4f0c4c027b72]::ops::drop::Drop>::drop
  23:     0x7fcf3fdd245c - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_session[a27564c90c4f41bc]::parse::ParseSess>
  24:     0x7fcf3fdd3988 - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_session[a27564c90c4f41bc]::session::Session>
  25:     0x7fcf3fdd8453 - <alloc[be2b472e808ccd3a]::rc::Rc<rustc_session[a27564c90c4f41bc]::session::Session> as core[801b4f0c4c027b72]::ops::drop::Drop>::drop
  26:     0x7fcf3fddd01d - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_interface[93fae87238e7c270]::interface::Compiler>
  27:     0x7fcf3fdd92ce - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  28:     0x7fcf3fdc9129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  29:     0x7fcf3fddf616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  30:     0x7fcf3fe22278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  31:     0x7fcf3fdced91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7fcf3f2ea7ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  33:     0x7fcf3f085b43 - <unknown>
  34:     0x7fcf3f117a00 - <unknown>
  35:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=off
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:
stack backtrace:
   0:     0x7fcf3f2da831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7fcf3f3427f8 - core::fmt::write::h96be581505809ed6
   2:     0x7fcf3f2cedd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7fcf3f2da641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7fcf3f2dd79a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7fcf3f2dd48c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7fcf3fdbd95b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7fcf3f2ddede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7fcf3f2ddc39 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7fcf3f2dacf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7fcf3f2dd947 - rust_begin_unwind
  11:     0x7fcf3f292193 - core::panicking::panic_nounwind_fmt::h750323ece701df72
  12:     0x7fcf3f292237 - core::panicking::panic_nounwind::hf726f5f46b4e4a2f
  13:     0x7fcf3f2923c3 - core::panicking::panic_cannot_unwind::hffb93a087f8ea388
  14:     0x7fcf3fdd92f0 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  15:     0x7fcf3fdc9129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  16:     0x7fcf3fddf616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  17:     0x7fcf3fe22278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  18:     0x7fcf3fdced91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  19:     0x7fcf3f2ea7ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  20:     0x7fcf3f085b43 - <unknown>
  21:     0x7fcf3f117a00 - <unknown>
  22:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=off
query stack during panic:
end of query stack
thread caused non-unwinding panic. aborting.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/issues/issue-45697-1.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/issues/issue-45697-1.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-45697-1" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-45697-1/auxiliary" "-C" "overflow-checks=on"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7fcb80e15831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7fcb80e7d7f8 - core::fmt::write::h96be581505809ed6
   2:     0x7fcb80e09dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   2:     0x7fcb80e09dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7fcb80e15641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7fcb80e1879a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7fcb80e1848c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7fcb818f895b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7fcb80e18ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7fcb80e18c77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7fcb80e15cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  11:     0x7fcb80dcd153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7fcb80dcd723 - core::result::unwrap_failed::hb163a0b69241465d
  12:     0x7fcb80dcd723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7fcb847bb9fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7fcb847c003f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7fcb847beb51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7fcb847b30cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7fcb847e4767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7fcb847e31ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7fcb847d8011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7fcb819fe7ef - rustc_interface[93fae87238e7c270]::callbacks::track_diagnostic
  21:     0x7fcb847d7889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  22:     0x7fcb847d68be - <rustc_errors[71d7db7db19fd993]::Handler>::emit_diagnostic
  23:     0x7fcb82d6fd4c - rustc_borrowck[e4af930aceb43d03]::do_mir_borrowck
  24:     0x7fcb82d5808d - rustc_borrowck[e4af930aceb43d03]::mir_borrowck
  25:     0x7fcb8345f0ec - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7fcb8342578c - <rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, rustc_span[773de821da62f57b]::def_id::LocalDefId)>>::call_once
  27:     0x7fcb835ea1e8 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::VecCache<rustc_span[773de821da62f57b]::def_id::LocalDefId, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  28:     0x7fcb83334f66 - rustc_query_impl[a0de2c1ed701da14]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fcb819e01ac - <core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once
  30:     0x7fcb819b3636 - std[b9712328b4607ac2]::panicking::try::<(), core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  31:     0x7fcb819ecabd - rustc_data_structures[148106bc787fa4bc]::sync::par_for_each_in::<&[rustc_span[773de821da62f57b]::def_id::LocalDefId], <rustc_middle[c1eccd368d9cff1e]::hir::map::Map>::par_body_owners<rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  32:     0x7fcb81a9f5b0 - <rustc_session[a27564c90c4f41bc]::session::Session>::time::<(), rustc_interface[93fae87238e7c270]::passes::analysis::{closure#1}>
  33:     0x7fcb819cbe67 - rustc_interface[93fae87238e7c270]::passes::analysis
  34:     0x7fcb834633ba - rustc_query_impl[a0de2c1ed701da14]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>
  35:     0x7fcb834a4178 - <rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::dynamic_query::{closure#2} as core[801b4f0c4c027b72]::ops::function::FnOnce<(rustc_middle[c1eccd368d9cff1e]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7fcb83561a22 - rustc_query_system[2889fcded0493da1]::query::plumbing::try_execute_query::<rustc_query_impl[a0de2c1ed701da14]::DynamicConfig<rustc_query_system[2889fcded0493da1]::query::caches::SingleCache<rustc_middle[c1eccd368d9cff1e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[a0de2c1ed701da14]::plumbing::QueryCtxt, false>
  37:     0x7fcb8336190d - rustc_query_impl[a0de2c1ed701da14]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7fcb819154cd - <rustc_middle[c1eccd368d9cff1e]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  39:     0x7fcb81940dce - <rustc_interface[93fae87238e7c270]::interface::Compiler>::enter::<rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}::{closure#2}, core[801b4f0c4c027b72]::result::Result<core[801b4f0c4c027b72]::option::Option<rustc_interface[93fae87238e7c270]::queries::Linker>, rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  40:     0x7fcb81913e90 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  41:     0x7fcb81904129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  42:     0x7fcb8191a616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  43:     0x7fcb8195d278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7fcb81909d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7fcb80e257ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  46:     0x7fcb80bc0b43 - <unknown>
  47:     0x7fcb80c52a00 - <unknown>
  48:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=on
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#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

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `borrowck_cannot_use_when_mutably_borrowed`: 
the attribute `label` was missing
help: add `.label = <message>`
stack backtrace:
   0:     0x7fcb80e15831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7fcb80e7d7f8 - core::fmt::write::h96be581505809ed6
   2:     0x7fcb80e09dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   2:     0x7fcb80e09dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7fcb80e15641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7fcb80e1879a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7fcb80e1848c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7fcb818f895b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7fcb80e18ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7fcb80e18c77 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7fcb80e15cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  11:     0x7fcb80dcd153 - core::panicking::panic_fmt::h2f2e055d917d48a8
  12:     0x7fcb80dcd723 - core::result::unwrap_failed::hb163a0b69241465d
  12:     0x7fcb80dcd723 - core::result::unwrap_failed::hb163a0b69241465d
  13:     0x7fcb847bb9fc - <rustc_errors[71d7db7db19fd993]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7fcb847c003f - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default::{closure#0}
  15:     0x7fcb847beb51 - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter>::emit_message_default
  16:     0x7fcb847b30cf - <rustc_errors[71d7db7db19fd993]::emitter::EmitterWriter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  17:     0x7fcb847e4767 - <rustc_errors[71d7db7db19fd993]::json::Diagnostic>::from_errors_diagnostic
  18:     0x7fcb847e31ac - <rustc_errors[71d7db7db19fd993]::json::JsonEmitter as rustc_errors[71d7db7db19fd993]::emitter::Emitter>::emit_diagnostic
  19:     0x7fcb847d8011 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic::{closure#2}
  20:     0x7fcb847d7889 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::emit_diagnostic
  21:     0x7fcb847d8969 - <rustc_errors[71d7db7db19fd993]::HandlerInner>::flush_delayed::<alloc[be2b472e808ccd3a]::vec::Vec<rustc_errors[71d7db7db19fd993]::DelayedDiagnostic>, &str>
  22:     0x7fcb847d44be - <rustc_errors[71d7db7db19fd993]::HandlerInner as core[801b4f0c4c027b72]::ops::drop::Drop>::drop
  23:     0x7fcb8190d45c - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_session[a27564c90c4f41bc]::parse::ParseSess>
  24:     0x7fcb8190e988 - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_session[a27564c90c4f41bc]::session::Session>
  25:     0x7fcb81913453 - <alloc[be2b472e808ccd3a]::rc::Rc<rustc_session[a27564c90c4f41bc]::session::Session> as core[801b4f0c4c027b72]::ops::drop::Drop>::drop
  26:     0x7fcb8191801d - core[801b4f0c4c027b72]::ptr::drop_in_place::<rustc_interface[93fae87238e7c270]::interface::Compiler>
  27:     0x7fcb819142ce - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  28:     0x7fcb81904129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  29:     0x7fcb8191a616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  30:     0x7fcb8195d278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  31:     0x7fcb81909d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7fcb80e257ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  33:     0x7fcb80bc0b43 - <unknown>
  34:     0x7fcb80c52a00 - <unknown>
  35:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=on
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:
stack backtrace:
   0:     0x7fcb80e15831 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2707ff3032dd7ab8
   1:     0x7fcb80e7d7f8 - core::fmt::write::h96be581505809ed6
   2:     0x7fcb80e09dd1 - std::io::Write::write_fmt::hbec7b94854d0ed5d
   3:     0x7fcb80e15641 - std::sys_common::backtrace::print::h0c71f551b5ef0e5c
   4:     0x7fcb80e1879a - std::panicking::default_hook::{{closure}}::hd721e664b437a774
   5:     0x7fcb80e1848c - std::panicking::default_hook::h70a5b937471bdc9e
   6:     0x7fcb818f895b - rustc_driver_impl[7ea84089612558a2]::install_ice_hook::{closure#0}
   7:     0x7fcb80e18ede - std::panicking::rust_panic_with_hook::hed2094bf31d964bf
   8:     0x7fcb80e18c39 - std::panicking::begin_panic_handler::{{closure}}::hdcd9c3ef7fe8e384
   9:     0x7fcb80e15cf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h607f6995bdce9acf
  10:     0x7fcb80e18947 - rust_begin_unwind
  11:     0x7fcb80dcd193 - core::panicking::panic_nounwind_fmt::h750323ece701df72
  12:     0x7fcb80dcd237 - core::panicking::panic_nounwind::hf726f5f46b4e4a2f
  13:     0x7fcb80dcd3c3 - core::panicking::panic_cannot_unwind::hffb93a087f8ea388
  14:     0x7fcb819142f0 - rustc_span[773de821da62f57b]::set_source_map::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  15:     0x7fcb81904129 - <scoped_tls[c2112f1d250b47c4]::ScopedKey<rustc_span[773de821da62f57b]::SessionGlobals>>::set::<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  16:     0x7fcb8191a616 - std[b9712328b4607ac2]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>
  17:     0x7fcb8195d278 - std[b9712328b4607ac2]::panicking::try::<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, core[801b4f0c4c027b72]::panic::unwind_safe::AssertUnwindSafe<<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  18:     0x7fcb81909d91 - <<std[b9712328b4607ac2]::thread::Builder>::spawn_unchecked_<rustc_interface[93fae87238e7c270]::util::run_in_thread_pool_with_globals<rustc_interface[93fae87238e7c270]::interface::run_compiler<core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>, rustc_driver_impl[7ea84089612558a2]::run_compiler::{closure#1}>::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[801b4f0c4c027b72]::result::Result<(), rustc_span[773de821da62f57b]::ErrorGuaranteed>>::{closure#1} as core[801b4f0c4c027b72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  19:     0x7fcb80e257ce - std::sys::unix::thread::Thread::new::thread_start::h1046ce2c1f505a0b
  20:     0x7fcb80bc0b43 - <unknown>
  21:     0x7fcb80c52a00 - <unknown>
  22:                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 (7faade158 2023-06-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C overflow-checks=on
query stack during panic:

@compiler-errors
Copy link
Member

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 15, 2023
@bors
Copy link
Collaborator

bors commented Jul 27, 2023

☔ The latest upstream changes (presumably #114116) made this pull request unmergeable. Please resolve the merge conflicts.

@Dylan-DPC
Copy link
Member

@sladyn98 any updates on this?

@Dylan-DPC
Copy link
Member

Closing this as inactive. Feel free to reöpen this pr or create a new pr if you get the time to work on this. Thanks

@Dylan-DPC Dylan-DPC closed this Oct 31, 2023
@Dylan-DPC Dylan-DPC added S-inactive Status: Inactive and waiting on the author. This is often applied to closed PRs. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-inactive Status: Inactive and waiting on the author. This is often applied to closed PRs. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants