Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Make early lints translatable #124417

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Xiretza
Copy link
Contributor

@Xiretza Xiretza commented Apr 26, 2024

Requires projectfluent/fluent-rs#353.

r? diagnostics

@rustbot rustbot added A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic 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 Apr 26, 2024
@rustbot
Copy link
Collaborator

rustbot commented Apr 26, 2024

Some changes occurred in check-cfg diagnostics

cc @Urgau

rustc_macros::diagnostics was changed

cc @davidtwco, @compiler-errors, @TaKO8Ki

Some changes occurred in tests/ui/check-cfg

cc @Urgau

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Apr 27, 2024

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

Translation of the lint message happens when the actual diagnostic is
created, not when the lint is buffered. Generating the message from
BuiltinLintDiag ensures that all required data to construct the message
is preserved in the LintBuffer, eventually allowing the messages to be
moved to fluent.

Remove the `msg` field from BufferedEarlyLint, it is either generated
from the data in the BuiltinLintDiag or stored inside
BuiltinLintDiag::Normal.
This ensures all diagnostic messages are created at diagnostic emission
time, making them translatable.
@rust-log-analyzer
Copy link
Collaborator

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

Click to see the possible cause of the failure (guessed by this bot)
#16 exporting to docker image format
#16 sending tarball 29.2s done
#16 DONE 34.4s
##[endgroup]
Setting extra environment values for docker:  --env ENABLE_GCC_CODEGEN=1 --env GCC_EXEC_PREFIX=/usr/lib/gcc/
[CI_JOB_NAME=x86_64-gnu-llvm-17]
---
sccache: Starting the server...
##[group]Configure the build
configure: processing command line
configure: 
configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-17', '--enable-llvm-link-shared', '--set', 'rust.thin-lto-import-instr-limit=10', '--set', 'change-id=99999999', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--disable-dist-src', '--release-channel=nightly', '--enable-debug-assertions', '--enable-overflow-checks', '--enable-llvm-assertions', '--set', 'rust.verify-llvm-ir', '--set', 'rust.codegen-backends=llvm,cranelift,gcc', '--set', 'llvm.static-libstdcpp', '--enable-new-symbol-mangling']
configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-17/bin/llvm-config
configure: llvm.link-shared     := True
configure: rust.thin-lto-import-instr-limit := 10
configure: change-id            := 99999999
---
failures:

---- [ui] tests/ui/lint/unused/unused-macro-rules-decl.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/lint/unused/unused-macro-rules-decl.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--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" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/lint/unused/unused-macro-rules-decl" "-A" "unused" "-A" "internal_features" "-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/lint/unused/unused-macro-rules-decl/auxiliary"
--- stderr -------------------------------
thread 'rustc' panicked at compiler/rustc_errors/src/translation.rs:49:84:
called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `lint_macro_rule_never_used`: 
Resolver error: Unknown function: NUMBER()
Resolver error: Unknown function: NUMBER()

stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: <&mut <rustc_errors::json::JsonEmitter as rustc_errors::translation::Translate>::translate_messages::{closure#0} as core::ops::function::FnOnce<(&(rustc_error_messages::DiagMessage, rustc_errors::snippet::Style),)>>::call_once
   4: <alloc::string::String as core::iter::traits::collect::FromIterator<alloc::borrow::Cow<str>>>::from_iter::<core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_error_messages::DiagMessage, rustc_errors::snippet::Style)>, <rustc_errors::json::JsonEmitter as rustc_errors::translation::Translate>::translate_messages::{closure#0}>>
   5: <rustc_errors::json::Diagnostic>::from_errors_diagnostic
   6: <rustc_errors::json::JsonEmitter as rustc_errors::emitter::Emitter>::emit_diagnostic
   7: <rustc_errors::DiagCtxtInner>::emit_diagnostic::{closure#3}
   8: rustc_interface::callbacks::track_diagnostic::<core::option::Option<rustc_span::ErrorGuaranteed>>
   9: <rustc_errors::DiagCtxtInner>::emit_diagnostic
  10: <rustc_errors::DiagCtxt>::emit_diagnostic
  11: <() as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12: rustc_middle::lint::lint_level::lint_level_impl::<rustc_error_messages::DiagMessage>
  13: rustc_middle::lint::lint_level::<rustc_error_messages::DiagMessage, <rustc_lint::context::EarlyContext as rustc_lint::context::LintContext>::emit_span_lint<rustc_error_messages::MultiSpan, rustc_lint::lints::MacroRuleNeverUsed>::{closure#0}>
  14: <rustc_lint::levels::LintLevelsBuilder<rustc_lint::levels::TopDown>>::opt_span_lint::<rustc_error_messages::DiagMessage, <rustc_lint::context::EarlyContext as rustc_lint::context::LintContext>::emit_span_lint<rustc_error_messages::MultiSpan, rustc_lint::lints::MacroRuleNeverUsed>::{closure#0}>
  15: <rustc_lint::context::EarlyContext as rustc_lint::context::LintContext>::emit_span_lint::<rustc_error_messages::MultiSpan, rustc_lint::lints::MacroRuleNeverUsed>
  16: rustc_lint::context::diagnostics::emit_buffered_lint::<rustc_lint::context::EarlyContext>
  17: <rustc_lint::early::EarlyContextAndPass<rustc_lint::BuiltinCombinedEarlyLintPass> as rustc_ast::visit::Visitor>::visit_item
  18: rustc_ast::visit::walk_crate::<rustc_lint::early::EarlyContextAndPass<rustc_lint::BuiltinCombinedEarlyLintPass>>
  19: rustc_lint::early::check_ast_node::<rustc_lint::BuiltinCombinedEarlyLintPass, (&rustc_ast::ast::Crate, &[rustc_ast::ast::Attribute])>
  20: rustc_interface::passes::early_lint_checks
      [... omitted 2 frames ...]
  21: rustc_ast_lowering::lower_to_hir
      [... omitted 2 frames ...]
  22: <rustc_middle::hir::provide::{closure#1} as core::ops::function::FnOnce<(rustc_middle::ty::context::TyCtxt, rustc_span::def_id::LocalDefId)>>::call_once
      [... omitted 2 frames ...]
  23: rustc_middle::query::plumbing::query_get_at::<rustc_query_system::query::caches::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::Erased<[u8; 8]>>>
  24: <rustc_middle::hir::map::Map>::get_module
  25: rustc_middle::hir::map::hir_crate_items
      [... omitted 2 frames ...]
  26: rustc_passes::hir_id_validator::check_crate
  27: rustc_interface::passes::analysis
      [... omitted 2 frames ...]
  29: <rustc_interface::interface::Compiler>::enter::<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_span::ErrorGuaranteed>>
  30: rustc_span::create_session_globals_then::<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---
note: please make sure that you have updated to the latest nightly

note: rustc 1.79.0-nightly (84f22538d 2024-04-27) 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 -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [early_lint_checks] perform lints prior to macro expansion
#1 [hir_crate] getting the crate HIR
#2 [opt_hir_owner_nodes] getting HIR owner items in ``
#3 [hir_crate_items] getting HIR crate items
end of query stack
thread 'rustc' panicked at compiler/rustc_lint/src/levels.rs:539:9:
thread 'rustc' panicked at compiler/rustc_lint/src/levels.rs:539:9:
Found a `push` without a `pop`.
stack backtrace:
   0:     0x7fbd25e7b75f - <std[43476f925b267516]::sys_common::backtrace::_print::DisplayBacktrace as core[f06248c1a0f13a89]::fmt::Display>::fmt
   1:     0x7fbd25ed3190 - core[f06248c1a0f13a89]::fmt::write
   2:     0x7fbd25e707d9 - <std[43476f925b267516]::sys::pal::unix::stdio::Stderr as std[43476f925b267516]::io::Write>::write_fmt
   3:     0x7fbd25e7b560 - std[43476f925b267516]::sys_common::backtrace::print
   4:     0x7fbd25e7e229 - std[43476f925b267516]::panicking::default_hook::{closure#1}
   5:     0x7fbd25e7df11 - std[43476f925b267516]::panicking::default_hook
   6:     0x7fbd26c71768 - <alloc[fb64e4a2e112ac9f]::boxed::Box<rustc_driver_impl[d4780fcba4775826]::install_ice_hook::{closure#0}> as core[f06248c1a0f13a89]::ops::function::Fn<(&dyn for<'a, 'b> core[f06248c1a0f13a89]::ops::function::Fn<(&'a core[f06248c1a0f13a89]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[f06248c1a0f13a89]::marker::Send + core[f06248c1a0f13a89]::marker::Sync, &core[f06248c1a0f13a89]::panic::panic_info::PanicInfo)>>::call
   7:     0x7fbd25e7e84d - std[43476f925b267516]::panicking::rust_panic_with_hook
   8:     0x7fbd25e7e5cb - std[43476f925b267516]::panicking::begin_panic_handler::{closure#0}
   9:     0x7fbd25e7bce9 - std[43476f925b267516]::sys_common::backtrace::__rust_end_short_backtrace::<std[43476f925b267516]::panicking::begin_panic_handler::{closure#0}, !>
  11:     0x7fbd25e38a13 - core[f06248c1a0f13a89]::panicking::panic_fmt
  11:     0x7fbd25e38a13 - core[f06248c1a0f13a89]::panicking::panic_fmt
  12:     0x7fbd289d27dc - <rustc_lint[2a42d5b003d42ea6]::levels::BuilderPush as core[f06248c1a0f13a89]::ops::drop::Drop>::drop
  13:     0x7fbd26e821e9 - <rustc_lint[2a42d5b003d42ea6]::early::EarlyContextAndPass<rustc_lint[2a42d5b003d42ea6]::BuiltinCombinedEarlyLintPass> as rustc_ast[fd53ffcb13491940]::visit::Visitor>::visit_item
  14:     0x7fbd26f3ba9f - rustc_ast[fd53ffcb13491940]::visit::walk_crate::<rustc_lint[2a42d5b003d42ea6]::early::EarlyContextAndPass<rustc_lint[2a42d5b003d42ea6]::BuiltinCombinedEarlyLintPass>>
  15:     0x7fbd26e74a36 - rustc_lint[2a42d5b003d42ea6]::early::check_ast_node::<rustc_lint[2a42d5b003d42ea6]::BuiltinCombinedEarlyLintPass, (&rustc_ast[fd53ffcb13491940]::ast::Crate, &[rustc_ast[fd53ffcb13491940]::ast::Attribute])>
  16:     0x7fbd26e5e58a - rustc_interface[6eb114c73d464d7f]::passes::early_lint_checks
  17:     0x7fbd284dc6e3 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::early_lint_checks::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 0usize]>>
  18:     0x7fbd286bd491 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::early_lint_checks::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  19:     0x7fbd28831be1 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  20:     0x7fbd285beb9d - rustc_query_impl[f09e7e1f85c10d69]::query_impl::early_lint_checks::get_query_non_incr::__rust_end_short_backtrace
  21:     0x7fbd279dac52 - rustc_ast_lowering[755b23d4883dccfb]::lower_to_hir
  22:     0x7fbd284f4df5 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>
  23:     0x7fbd2874d8b1 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  24:     0x7fbd2883ba43 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  25:     0x7fbd286ca9ba - rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate::get_query_non_incr::__rust_end_short_backtrace
  26:     0x7fbd26e5c681 - <rustc_middle[8c8f18ecd883ef1d]::hir::provide::{closure#1} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId)>>::call_once
  27:     0x7fbd284e1995 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::opt_hir_owner_nodes::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>
  28:     0x7fbd28795ef5 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::opt_hir_owner_nodes::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId)>>::call_once
  29:     0x7fbd288e5715 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::VecCache<rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  30:     0x7fbd287d5d95 - rustc_query_impl[f09e7e1f85c10d69]::query_impl::opt_hir_owner_nodes::get_query_non_incr::__rust_end_short_backtrace
  31:     0x7fbd29a60555 - rustc_middle[8c8f18ecd883ef1d]::query::plumbing::query_get_at::<rustc_query_system[901162ec653759c1]::query::caches::VecCache<rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>>
  32:     0x7fbd29a545cd - <rustc_middle[8c8f18ecd883ef1d]::hir::map::Map>::get_module
  33:     0x7fbd29a596b1 - rustc_middle[8c8f18ecd883ef1d]::hir::map::hir_crate_items
  34:     0x7fbd284d7a46 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>
  35:     0x7fbd2874cb11 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate_items::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7fbd2883ba43 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  37:     0x7fbd286caa9a - rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate_items::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7fbd27de5ff5 - rustc_passes[d387f738f7aa1d5a]::hir_id_validator::check_crate
  39:     0x7fbd26e64ae0 - rustc_interface[6eb114c73d464d7f]::passes::analysis
  40:     0x7fbd284f3933 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 1usize]>>
  41:     0x7fbd286913a1 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::analysis::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  42:     0x7fbd28837b60 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  43:     0x7fbd287d6121 - rustc_query_impl[f09e7e1f85c10d69]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  44:     0x7fbd26bdc727 - <rustc_middle[8c8f18ecd883ef1d]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>
  45:     0x7fbd26c7b486 - <rustc_interface[6eb114c73d464d7f]::interface::Compiler>::enter::<rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}::{closure#1}, core[f06248c1a0f13a89]::result::Result<core[f06248c1a0f13a89]::option::Option<rustc_interface[6eb114c73d464d7f]::queries::Linker>, rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>
  46:     0x7fbd26bf78cd - rustc_span[b37fb57baef5dcf4]::create_session_globals_then::<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
  47:     0x7fbd26c6f372 - std[43476f925b267516]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>
  48:     0x7fbd26c53954 - std[43476f925b267516]::panicking::try::<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, core[f06248c1a0f13a89]::panic::unwind_safe::AssertUnwindSafe<<std[43476f925b267516]::thread::Builder>::spawn_unchecked_<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#2}::{closure#0}>>
  49:     0x7fbd26c023dc - <<std[43476f925b267516]::thread::Builder>::spawn_unchecked_<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  50:     0x7fbd25e8a114 - <std[43476f925b267516]::sys::pal::unix::thread::Thread>::new::thread_start
  52:     0x7fbd25d085fc - <unknown>
  53:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.
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: please make sure that you have updated to the latest nightly

note: rustc 1.79.0-nightly (84f22538d 2024-04-27) 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 -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [early_lint_checks] perform lints prior to macro expansion
#1 [hir_crate] getting the crate HIR
#2 [opt_hir_owner_nodes] getting HIR owner items in ``
#3 [hir_crate_items] getting HIR crate items
end of query stack
thread 'rustc' panicked at library/core/src/panicking.rs:228:5:
panic in a destructor during cleanup

---
note: please make sure that you have updated to the latest nightly

note: rustc 1.79.0-nightly (84f22538d 2024-04-27) 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 -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [early_lint_checks] perform lints prior to macro expansion
#1 [hir_crate] getting the crate HIR
#2 [opt_hir_owner_nodes] getting HIR owner items in ``
#3 [hir_crate_items] getting HIR crate items
end of query stack
thread caused non-unwinding panic. aborting.
------------------------------------------



---- [ui] tests/ui/lint/unused/unused-macro-rules-compile-error.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/lint/unused/unused-macro-rules-compile-error.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--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" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/lint/unused/unused-macro-rules-compile-error" "-A" "unused" "-A" "internal_features" "-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/lint/unused/unused-macro-rules-compile-error/auxiliary"
--- stderr -------------------------------
thread 'rustc' panicked at compiler/rustc_errors/src/translation.rs:49:84:
called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `lint_macro_rule_never_used`: 
Resolver error: Unknown function: NUMBER()
Resolver error: Unknown function: NUMBER()

stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: <&mut <rustc_errors::json::JsonEmitter as rustc_errors::translation::Translate>::translate_messages::{closure#0} as core::ops::function::FnOnce<(&(rustc_error_messages::DiagMessage, rustc_errors::snippet::Style),)>>::call_once
   4: <alloc::string::String as core::iter::traits::collect::FromIterator<alloc::borrow::Cow<str>>>::from_iter::<core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_error_messages::DiagMessage, rustc_errors::snippet::Style)>, <rustc_errors::json::JsonEmitter as rustc_errors::translation::Translate>::translate_messages::{closure#0}>>
   5: <rustc_errors::json::Diagnostic>::from_errors_diagnostic
   6: <rustc_errors::json::JsonEmitter as rustc_errors::emitter::Emitter>::emit_diagnostic
   7: <rustc_errors::DiagCtxtInner>::emit_diagnostic::{closure#3}
   8: rustc_interface::callbacks::track_diagnostic::<core::option::Option<rustc_span::ErrorGuaranteed>>
   9: <rustc_errors::DiagCtxtInner>::emit_diagnostic
  10: <rustc_errors::DiagCtxt>::emit_diagnostic
  11: <() as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12: rustc_middle::lint::lint_level::lint_level_impl::<rustc_error_messages::DiagMessage>
  13: rustc_middle::lint::lint_level::<rustc_error_messages::DiagMessage, <rustc_lint::context::EarlyContext as rustc_lint::context::LintContext>::emit_span_lint<rustc_error_messages::MultiSpan, rustc_lint::lints::MacroRuleNeverUsed>::{closure#0}>
  14: <rustc_lint::levels::LintLevelsBuilder<rustc_lint::levels::TopDown>>::opt_span_lint::<rustc_error_messages::DiagMessage, <rustc_lint::context::EarlyContext as rustc_lint::context::LintContext>::emit_span_lint<rustc_error_messages::MultiSpan, rustc_lint::lints::MacroRuleNeverUsed>::{closure#0}>
  15: <rustc_lint::context::EarlyContext as rustc_lint::context::LintContext>::emit_span_lint::<rustc_error_messages::MultiSpan, rustc_lint::lints::MacroRuleNeverUsed>
  16: rustc_lint::context::diagnostics::emit_buffered_lint::<rustc_lint::context::EarlyContext>
  17: <rustc_lint::early::EarlyContextAndPass<rustc_lint::BuiltinCombinedEarlyLintPass> as rustc_ast::visit::Visitor>::visit_item
  18: rustc_ast::visit::walk_crate::<rustc_lint::early::EarlyContextAndPass<rustc_lint::BuiltinCombinedEarlyLintPass>>
  19: rustc_lint::early::check_ast_node::<rustc_lint::BuiltinCombinedEarlyLintPass, (&rustc_ast::ast::Crate, &[rustc_ast::ast::Attribute])>
  20: rustc_interface::passes::early_lint_checks
      [... omitted 2 frames ...]
  21: rustc_ast_lowering::lower_to_hir
      [... omitted 2 frames ...]
  22: <rustc_middle::hir::provide::{closure#1} as core::ops::function::FnOnce<(rustc_middle::ty::context::TyCtxt, rustc_span::def_id::LocalDefId)>>::call_once
      [... omitted 2 frames ...]
  23: rustc_middle::query::plumbing::query_get_at::<rustc_query_system::query::caches::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::Erased<[u8; 8]>>>
  24: <rustc_middle::hir::map::Map>::get_module
  25: rustc_middle::hir::map::hir_crate_items
      [... omitted 2 frames ...]
  26: rustc_passes::hir_id_validator::check_crate
  27: rustc_interface::passes::analysis
      [... omitted 2 frames ...]
  29: <rustc_interface::interface::Compiler>::enter::<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_span::ErrorGuaranteed>>
  30: rustc_span::create_session_globals_then::<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---
note: please make sure that you have updated to the latest nightly

note: rustc 1.79.0-nightly (84f22538d 2024-04-27) 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 -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [early_lint_checks] perform lints prior to macro expansion
#1 [hir_crate] getting the crate HIR
#2 [opt_hir_owner_nodes] getting HIR owner items in ``
#3 [hir_crate_items] getting HIR crate items
end of query stack
thread 'rustc' panicked at compiler/rustc_lint/src/levels.rs:539:9:
thread 'rustc' panicked at compiler/rustc_lint/src/levels.rs:539:9:
Found a `push` without a `pop`.
stack backtrace:
   0:     0x7f3a935cd75f - <std[43476f925b267516]::sys_common::backtrace::_print::DisplayBacktrace as core[f06248c1a0f13a89]::fmt::Display>::fmt
   1:     0x7f3a93625190 - core[f06248c1a0f13a89]::fmt::write
   2:     0x7f3a935c27d9 - <std[43476f925b267516]::sys::pal::unix::stdio::Stderr as std[43476f925b267516]::io::Write>::write_fmt
   3:     0x7f3a935cd560 - std[43476f925b267516]::sys_common::backtrace::print
   4:     0x7f3a935d0229 - std[43476f925b267516]::panicking::default_hook::{closure#1}
   5:     0x7f3a935cff11 - std[43476f925b267516]::panicking::default_hook
   6:     0x7f3a943c3768 - <alloc[fb64e4a2e112ac9f]::boxed::Box<rustc_driver_impl[d4780fcba4775826]::install_ice_hook::{closure#0}> as core[f06248c1a0f13a89]::ops::function::Fn<(&dyn for<'a, 'b> core[f06248c1a0f13a89]::ops::function::Fn<(&'a core[f06248c1a0f13a89]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[f06248c1a0f13a89]::marker::Send + core[f06248c1a0f13a89]::marker::Sync, &core[f06248c1a0f13a89]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f3a935d084d - std[43476f925b267516]::panicking::rust_panic_with_hook
   8:     0x7f3a935d05cb - std[43476f925b267516]::panicking::begin_panic_handler::{closure#0}
   9:     0x7f3a935cdce9 - std[43476f925b267516]::sys_common::backtrace::__rust_end_short_backtrace::<std[43476f925b267516]::panicking::begin_panic_handler::{closure#0}, !>
  11:     0x7f3a9358aa13 - core[f06248c1a0f13a89]::panicking::panic_fmt
  11:     0x7f3a9358aa13 - core[f06248c1a0f13a89]::panicking::panic_fmt
  12:     0x7f3a961247dc - <rustc_lint[2a42d5b003d42ea6]::levels::BuilderPush as core[f06248c1a0f13a89]::ops::drop::Drop>::drop
  13:     0x7f3a945d41e9 - <rustc_lint[2a42d5b003d42ea6]::early::EarlyContextAndPass<rustc_lint[2a42d5b003d42ea6]::BuiltinCombinedEarlyLintPass> as rustc_ast[fd53ffcb13491940]::visit::Visitor>::visit_item
  14:     0x7f3a9468da9f - rustc_ast[fd53ffcb13491940]::visit::walk_crate::<rustc_lint[2a42d5b003d42ea6]::early::EarlyContextAndPass<rustc_lint[2a42d5b003d42ea6]::BuiltinCombinedEarlyLintPass>>
  15:     0x7f3a945c6a36 - rustc_lint[2a42d5b003d42ea6]::early::check_ast_node::<rustc_lint[2a42d5b003d42ea6]::BuiltinCombinedEarlyLintPass, (&rustc_ast[fd53ffcb13491940]::ast::Crate, &[rustc_ast[fd53ffcb13491940]::ast::Attribute])>
  16:     0x7f3a945b058a - rustc_interface[6eb114c73d464d7f]::passes::early_lint_checks
  17:     0x7f3a95c2e6e3 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::early_lint_checks::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 0usize]>>
  18:     0x7f3a95e0f491 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::early_lint_checks::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  19:     0x7f3a95f83be1 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  20:     0x7f3a95d10b9d - rustc_query_impl[f09e7e1f85c10d69]::query_impl::early_lint_checks::get_query_non_incr::__rust_end_short_backtrace
  21:     0x7f3a9512cc52 - rustc_ast_lowering[755b23d4883dccfb]::lower_to_hir
  22:     0x7f3a95c46df5 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>
  23:     0x7f3a95e9f8b1 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  24:     0x7f3a95f8da43 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  25:     0x7f3a95e1c9ba - rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate::get_query_non_incr::__rust_end_short_backtrace
  26:     0x7f3a945ae681 - <rustc_middle[8c8f18ecd883ef1d]::hir::provide::{closure#1} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId)>>::call_once
  27:     0x7f3a95c33995 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::opt_hir_owner_nodes::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>
  28:     0x7f3a95ee7ef5 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::opt_hir_owner_nodes::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId)>>::call_once
  29:     0x7f3a96037715 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::VecCache<rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  30:     0x7f3a95f27d95 - rustc_query_impl[f09e7e1f85c10d69]::query_impl::opt_hir_owner_nodes::get_query_non_incr::__rust_end_short_backtrace
  31:     0x7f3a971b2555 - rustc_middle[8c8f18ecd883ef1d]::query::plumbing::query_get_at::<rustc_query_system[901162ec653759c1]::query::caches::VecCache<rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>>
  32:     0x7f3a971a65cd - <rustc_middle[8c8f18ecd883ef1d]::hir::map::Map>::get_module
  33:     0x7f3a971ab6b1 - rustc_middle[8c8f18ecd883ef1d]::hir::map::hir_crate_items
  34:     0x7f3a95c29a46 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>
  35:     0x7f3a95e9eb11 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate_items::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7f3a95f8da43 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  37:     0x7f3a95e1ca9a - rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate_items::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f3a95537ff5 - rustc_passes[d387f738f7aa1d5a]::hir_id_validator::check_crate
  39:     0x7f3a945b6ae0 - rustc_interface[6eb114c73d464d7f]::passes::analysis
  40:     0x7f3a95c45933 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 1usize]>>
  41:     0x7f3a95de33a1 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::analysis::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  42:     0x7f3a95f89b60 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  43:     0x7f3a95f28121 - rustc_query_impl[f09e7e1f85c10d69]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  44:     0x7f3a9432e727 - <rustc_middle[8c8f18ecd883ef1d]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>
  45:     0x7f3a943cd486 - <rustc_interface[6eb114c73d464d7f]::interface::Compiler>::enter::<rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}::{closure#1}, core[f06248c1a0f13a89]::result::Result<core[f06248c1a0f13a89]::option::Option<rustc_interface[6eb114c73d464d7f]::queries::Linker>, rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>
  46:     0x7f3a943498cd - rustc_span[b37fb57baef5dcf4]::create_session_globals_then::<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
  47:     0x7f3a943c1372 - std[43476f925b267516]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>
  48:     0x7f3a943a5954 - std[43476f925b267516]::panicking::try::<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, core[f06248c1a0f13a89]::panic::unwind_safe::AssertUnwindSafe<<std[43476f925b267516]::thread::Builder>::spawn_unchecked_<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#2}::{closure#0}>>
  49:     0x7f3a943543dc - <<std[43476f925b267516]::thread::Builder>::spawn_unchecked_<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  50:     0x7f3a935dc114 - <std[43476f925b267516]::sys::pal::unix::thread::Thread>::new::thread_start
  52:     0x7f3a9345a5fc - <unknown>
  53:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.
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: please make sure that you have updated to the latest nightly

note: rustc 1.79.0-nightly (84f22538d 2024-04-27) 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 -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [early_lint_checks] perform lints prior to macro expansion
#1 [hir_crate] getting the crate HIR
#2 [opt_hir_owner_nodes] getting HIR owner items in ``
#3 [hir_crate_items] getting HIR crate items
end of query stack
thread 'rustc' panicked at library/core/src/panicking.rs:228:5:
panic in a destructor during cleanup

---
note: please make sure that you have updated to the latest nightly

note: rustc 1.79.0-nightly (84f22538d 2024-04-27) 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 -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [early_lint_checks] perform lints prior to macro expansion
#1 [hir_crate] getting the crate HIR
#2 [opt_hir_owner_nodes] getting HIR owner items in ``
#3 [hir_crate_items] getting HIR crate items
end of query stack
thread caused non-unwinding panic. aborting.
------------------------------------------



---- [ui] tests/ui/lint/unused/unused-macro-rules.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 6 (SIGABRT) (core dumped)
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/lint/unused/unused-macro-rules.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--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" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/lint/unused/unused-macro-rules" "-A" "unused" "-A" "internal_features" "-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/lint/unused/unused-macro-rules/auxiliary"
--- stderr -------------------------------
thread 'rustc' panicked at compiler/rustc_errors/src/translation.rs:49:84:
called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `lint_macro_rule_never_used`: 
Resolver error: Unknown function: NUMBER()
Resolver error: Unknown function: NUMBER()

stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: <&mut <rustc_errors::json::JsonEmitter as rustc_errors::translation::Translate>::translate_messages::{closure#0} as core::ops::function::FnOnce<(&(rustc_error_messages::DiagMessage, rustc_errors::snippet::Style),)>>::call_once
   4: <alloc::string::String as core::iter::traits::collect::FromIterator<alloc::borrow::Cow<str>>>::from_iter::<core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_error_messages::DiagMessage, rustc_errors::snippet::Style)>, <rustc_errors::json::JsonEmitter as rustc_errors::translation::Translate>::translate_messages::{closure#0}>>
   5: <rustc_errors::json::Diagnostic>::from_errors_diagnostic
   6: <rustc_errors::json::JsonEmitter as rustc_errors::emitter::Emitter>::emit_diagnostic
   7: <rustc_errors::DiagCtxtInner>::emit_diagnostic::{closure#3}
   8: rustc_interface::callbacks::track_diagnostic::<core::option::Option<rustc_span::ErrorGuaranteed>>
   9: <rustc_errors::DiagCtxtInner>::emit_diagnostic
  10: <rustc_errors::DiagCtxt>::emit_diagnostic
  11: <() as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12: rustc_middle::lint::lint_level::lint_level_impl::<rustc_error_messages::DiagMessage>
  13: rustc_middle::lint::lint_level::<rustc_error_messages::DiagMessage, <rustc_lint::context::EarlyContext as rustc_lint::context::LintContext>::emit_span_lint<rustc_error_messages::MultiSpan, rustc_lint::lints::MacroRuleNeverUsed>::{closure#0}>
  14: <rustc_lint::levels::LintLevelsBuilder<rustc_lint::levels::TopDown>>::opt_span_lint::<rustc_error_messages::DiagMessage, <rustc_lint::context::EarlyContext as rustc_lint::context::LintContext>::emit_span_lint<rustc_error_messages::MultiSpan, rustc_lint::lints::MacroRuleNeverUsed>::{closure#0}>
  15: <rustc_lint::context::EarlyContext as rustc_lint::context::LintContext>::emit_span_lint::<rustc_error_messages::MultiSpan, rustc_lint::lints::MacroRuleNeverUsed>
  16: rustc_lint::context::diagnostics::emit_buffered_lint::<rustc_lint::context::EarlyContext>
  17: <rustc_lint::early::EarlyContextAndPass<rustc_lint::BuiltinCombinedEarlyLintPass> as rustc_ast::visit::Visitor>::visit_item
  18: rustc_ast::visit::walk_crate::<rustc_lint::early::EarlyContextAndPass<rustc_lint::BuiltinCombinedEarlyLintPass>>
  19: rustc_lint::early::check_ast_node::<rustc_lint::BuiltinCombinedEarlyLintPass, (&rustc_ast::ast::Crate, &[rustc_ast::ast::Attribute])>
  20: rustc_interface::passes::early_lint_checks
      [... omitted 2 frames ...]
  21: rustc_ast_lowering::lower_to_hir
      [... omitted 2 frames ...]
  22: <rustc_middle::hir::provide::{closure#1} as core::ops::function::FnOnce<(rustc_middle::ty::context::TyCtxt, rustc_span::def_id::LocalDefId)>>::call_once
      [... omitted 2 frames ...]
  23: rustc_middle::query::plumbing::query_get_at::<rustc_query_system::query::caches::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::Erased<[u8; 8]>>>
  24: <rustc_middle::hir::map::Map>::get_module
  25: rustc_middle::hir::map::hir_crate_items
      [... omitted 2 frames ...]
  26: rustc_passes::hir_id_validator::check_crate
  27: rustc_interface::passes::analysis
      [... omitted 2 frames ...]
  29: <rustc_interface::interface::Compiler>::enter::<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_span::ErrorGuaranteed>>
  30: rustc_span::create_session_globals_then::<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---
note: please make sure that you have updated to the latest nightly

note: rustc 1.79.0-nightly (84f22538d 2024-04-27) 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 -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [early_lint_checks] perform lints prior to macro expansion
#1 [hir_crate] getting the crate HIR
#2 [opt_hir_owner_nodes] getting HIR owner items in ``
#3 [hir_crate_items] getting HIR crate items
end of query stack
thread 'rustc' panicked at compiler/rustc_lint/src/levels.rs:539:9:
thread 'rustc' panicked at compiler/rustc_lint/src/levels.rs:539:9:
Found a `push` without a `pop`.
stack backtrace:
   0:     0x7f10d8b8775f - <std[43476f925b267516]::sys_common::backtrace::_print::DisplayBacktrace as core[f06248c1a0f13a89]::fmt::Display>::fmt
   1:     0x7f10d8bdf190 - core[f06248c1a0f13a89]::fmt::write
   2:     0x7f10d8b7c7d9 - <std[43476f925b267516]::sys::pal::unix::stdio::Stderr as std[43476f925b267516]::io::Write>::write_fmt
   3:     0x7f10d8b87560 - std[43476f925b267516]::sys_common::backtrace::print
   4:     0x7f10d8b8a229 - std[43476f925b267516]::panicking::default_hook::{closure#1}
   5:     0x7f10d8b89f11 - std[43476f925b267516]::panicking::default_hook
   6:     0x7f10d997d768 - <alloc[fb64e4a2e112ac9f]::boxed::Box<rustc_driver_impl[d4780fcba4775826]::install_ice_hook::{closure#0}> as core[f06248c1a0f13a89]::ops::function::Fn<(&dyn for<'a, 'b> core[f06248c1a0f13a89]::ops::function::Fn<(&'a core[f06248c1a0f13a89]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[f06248c1a0f13a89]::marker::Send + core[f06248c1a0f13a89]::marker::Sync, &core[f06248c1a0f13a89]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f10d8b8a84d - std[43476f925b267516]::panicking::rust_panic_with_hook
   8:     0x7f10d8b8a5cb - std[43476f925b267516]::panicking::begin_panic_handler::{closure#0}
   9:     0x7f10d8b87ce9 - std[43476f925b267516]::sys_common::backtrace::__rust_end_short_backtrace::<std[43476f925b267516]::panicking::begin_panic_handler::{closure#0}, !>
  11:     0x7f10d8b44a13 - core[f06248c1a0f13a89]::panicking::panic_fmt
  11:     0x7f10d8b44a13 - core[f06248c1a0f13a89]::panicking::panic_fmt
  12:     0x7f10db6de7dc - <rustc_lint[2a42d5b003d42ea6]::levels::BuilderPush as core[f06248c1a0f13a89]::ops::drop::Drop>::drop
  13:     0x7f10d9b8e1e9 - <rustc_lint[2a42d5b003d42ea6]::early::EarlyContextAndPass<rustc_lint[2a42d5b003d42ea6]::BuiltinCombinedEarlyLintPass> as rustc_ast[fd53ffcb13491940]::visit::Visitor>::visit_item
  14:     0x7f10d9c47a9f - rustc_ast[fd53ffcb13491940]::visit::walk_crate::<rustc_lint[2a42d5b003d42ea6]::early::EarlyContextAndPass<rustc_lint[2a42d5b003d42ea6]::BuiltinCombinedEarlyLintPass>>
  15:     0x7f10d9b80a36 - rustc_lint[2a42d5b003d42ea6]::early::check_ast_node::<rustc_lint[2a42d5b003d42ea6]::BuiltinCombinedEarlyLintPass, (&rustc_ast[fd53ffcb13491940]::ast::Crate, &[rustc_ast[fd53ffcb13491940]::ast::Attribute])>
  16:     0x7f10d9b6a58a - rustc_interface[6eb114c73d464d7f]::passes::early_lint_checks
  17:     0x7f10db1e86e3 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::early_lint_checks::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 0usize]>>
  18:     0x7f10db3c9491 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::early_lint_checks::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  19:     0x7f10db53dbe1 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  20:     0x7f10db2cab9d - rustc_query_impl[f09e7e1f85c10d69]::query_impl::early_lint_checks::get_query_non_incr::__rust_end_short_backtrace
  21:     0x7f10da6e6c52 - rustc_ast_lowering[755b23d4883dccfb]::lower_to_hir
  22:     0x7f10db200df5 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>
  23:     0x7f10db4598b1 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  24:     0x7f10db547a43 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  25:     0x7f10db3d69ba - rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate::get_query_non_incr::__rust_end_short_backtrace
  26:     0x7f10d9b68681 - <rustc_middle[8c8f18ecd883ef1d]::hir::provide::{closure#1} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId)>>::call_once
  27:     0x7f10db1ed995 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::opt_hir_owner_nodes::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>
  28:     0x7f10db4a1ef5 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::opt_hir_owner_nodes::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId)>>::call_once
  29:     0x7f10db5f1715 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::VecCache<rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  30:     0x7f10db4e1d95 - rustc_query_impl[f09e7e1f85c10d69]::query_impl::opt_hir_owner_nodes::get_query_non_incr::__rust_end_short_backtrace
  31:     0x7f10dc76c555 - rustc_middle[8c8f18ecd883ef1d]::query::plumbing::query_get_at::<rustc_query_system[901162ec653759c1]::query::caches::VecCache<rustc_span[b37fb57baef5dcf4]::def_id::LocalDefId, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>>
  32:     0x7f10dc7605cd - <rustc_middle[8c8f18ecd883ef1d]::hir::map::Map>::get_module
  33:     0x7f10dc7656b1 - rustc_middle[8c8f18ecd883ef1d]::hir::map::hir_crate_items
  34:     0x7f10db1e3a46 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>
  35:     0x7f10db458b11 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate_items::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  36:     0x7f10db547a43 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  37:     0x7f10db3d6a9a - rustc_query_impl[f09e7e1f85c10d69]::query_impl::hir_crate_items::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f10daaf1ff5 - rustc_passes[d387f738f7aa1d5a]::hir_id_validator::check_crate
  39:     0x7f10d9b70ae0 - rustc_interface[6eb114c73d464d7f]::passes::analysis
  40:     0x7f10db1ff933 - rustc_query_impl[f09e7e1f85c10d69]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f09e7e1f85c10d69]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 1usize]>>
  41:     0x7f10db39d3a1 - <rustc_query_impl[f09e7e1f85c10d69]::query_impl::analysis::dynamic_query::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<(rustc_middle[8c8f18ecd883ef1d]::ty::context::TyCtxt, ())>>::call_once
  42:     0x7f10db543b60 - rustc_query_system[901162ec653759c1]::query::plumbing::try_execute_query::<rustc_query_impl[f09e7e1f85c10d69]::DynamicConfig<rustc_query_system[901162ec653759c1]::query::caches::SingleCache<rustc_middle[8c8f18ecd883ef1d]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f09e7e1f85c10d69]::plumbing::QueryCtxt, false>
  43:     0x7f10db4e2121 - rustc_query_impl[f09e7e1f85c10d69]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  44:     0x7f10d98e8727 - <rustc_middle[8c8f18ecd883ef1d]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>
  45:     0x7f10d9987486 - <rustc_interface[6eb114c73d464d7f]::interface::Compiler>::enter::<rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}::{closure#1}, core[f06248c1a0f13a89]::result::Result<core[f06248c1a0f13a89]::option::Option<rustc_interface[6eb114c73d464d7f]::queries::Linker>, rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>
  46:     0x7f10d99038cd - rustc_span[b37fb57baef5dcf4]::create_session_globals_then::<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
  47:     0x7f10d997b372 - std[43476f925b267516]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>
  48:     0x7f10d995f954 - std[43476f925b267516]::panicking::try::<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, core[f06248c1a0f13a89]::panic::unwind_safe::AssertUnwindSafe<<std[43476f925b267516]::thread::Builder>::spawn_unchecked_<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#2}::{closure#0}>>
  49:     0x7f10d990e3dc - <<std[43476f925b267516]::thread::Builder>::spawn_unchecked_<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_with_globals<rustc_interface[6eb114c73d464d7f]::util::run_in_thread_pool_with_globals<rustc_interface[6eb114c73d464d7f]::interface::run_compiler<core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>, rustc_driver_impl[d4780fcba4775826]::run_compiler::{closure#0}>::{closure#1}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f06248c1a0f13a89]::result::Result<(), rustc_span[b37fb57baef5dcf4]::ErrorGuaranteed>>::{closure#2} as core[f06248c1a0f13a89]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  50:     0x7f10d8b96114 - <std[43476f925b267516]::sys::pal::unix::thread::Thread>::new::thread_start
  52:     0x7f10d8a145fc - <unknown>
  53:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.
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: please make sure that you have updated to the latest nightly

note: rustc 1.79.0-nightly (84f22538d 2024-04-27) 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 -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [early_lint_checks] perform lints prior to macro expansion
#1 [hir_crate] getting the crate HIR
#2 [opt_hir_owner_nodes] getting HIR owner items in ``
#3 [hir_crate_items] getting HIR crate items
end of query stack
thread 'rustc' panicked at library/core/src/panicking.rs:228:5:
panic in a destructor during cleanup

---
note: please make sure that you have updated to the latest nightly

note: rustc 1.79.0-nightly (84f22538d 2024-04-27) 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 -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [early_lint_checks] perform lints prior to macro expansion
#1 [hir_crate] getting the crate HIR
#2 [opt_hir_owner_nodes] getting HIR owner items in ``
#3 [hir_crate_items] getting HIR crate items
end of query stack
thread caused non-unwinding panic. aborting.
------------------------------------------

@bors
Copy link
Contributor

bors commented Apr 30, 2024

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

@oli-obk
Copy link
Contributor

oli-obk commented May 2, 2024

r? @davidtwco I'm going on vacation for two weeks

@rustbot rustbot assigned davidtwco and unassigned oli-obk May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants