rust icon indicating copy to clipboard operation
rust copied to clipboard

Ensure nested allocations in statics neither get deduplicated nor duplicated

Open oli-obk opened this issue 1 year ago • 28 comments

This PR generates new DefIds for nested allocations in static items and feeds all the right queries to make the compiler believe these are regular static items. I chose this design, because all other designs are fragile and make the compiler horribly complex for such a niche use case.

At present this wrecks incremental compilation performance in case nested allocations exist (because any query creating a DefId will be recomputed and never loaded from the cache). This will be resolved later in https://github.com/rust-lang/rust/pull/115613 . All other statics are unaffected by this change and will not have performance regressions (heh, famous last words)

This PR contains various smaller refactorings that can be pulled out into separate PRs. It is best reviewed commit-by-commit. The last commit is where the actual magic happens.

r? @RalfJung on the const interner and engine changes

fixes https://github.com/rust-lang/rust/issues/79738

oli-obk avatar Feb 26 '24 18:02 oli-obk

@bors try @rust-timer queue

oli-obk avatar Feb 26 '24 18:02 oli-obk

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

rust-timer avatar Feb 26 '24 18:02 rust-timer

Some changes occurred to the CTFE / Miri engine

cc @rust-lang/miri

Some changes occurred in match checking

cc @Nadrieril

Some changes occurred in compiler/rustc_codegen_gcc

cc @antoyo, @GuillaumeGomez

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

Some changes occurred to the CTFE / Miri engine

cc @rust-lang/miri

rustbot avatar Feb 26 '24 18:02 rustbot

:hourglass: Trying commit 0aa7752f01aef62e7f93526468ea29f2ab3785b2 with merge 51f4acc22a01f3177d04f469578403e6eda2e044...

bors avatar Feb 26 '24 18:02 bors

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_015d3408-6afd-4edc-b04e-3afa598d3f38
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
GITHUB_HEAD_REF=unique_static_innards2
GITHUB_JOB=pr
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_015d3408-6afd-4edc-b04e-3afa598d3f38
GITHUB_REF=refs/pull/121644/merge
GITHUB_REF_NAME=121644/merge
GITHUB_REF_PROTECTED=false
---
#13 3.888 Building wheels for collected packages: reuse
#13 3.889   Building wheel for reuse (pyproject.toml): started
#13 4.220   Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 4.220   Created wheel for reuse: filename=reuse-1.1.0-cp310-cp310-manylinux_2_35_x86_64.whl size=181117 sha256=f5f58750481f69515c2c0d1d503daf565e2565c370d07fc6aeb95fe3498b4269
#13 4.221   Stored in directory: /tmp/pip-ephem-wheel-cache-_in26sbt/wheels/c2/3c/b9/1120c2ab4bd82694f7e6f0537dc5b9a085c13e2c69a8d0c76d
#13 4.223 Installing collected packages: boolean-py, binaryornot, setuptools, reuse, python-debian, markupsafe, license-expression, jinja2, chardet
#13 4.245   Attempting uninstall: setuptools
#13 4.246     Found existing installation: setuptools 59.6.0
#13 4.247     Not uninstalling setuptools at /usr/lib/python3/dist-packages, outside environment /usr
---
    Checking rustc_codegen_gcc v0.1.0 (/checkout/compiler/rustc_codegen_gcc)
error: cannot find macro `bug` in this scope
  --> src/mono_item.rs:21:79
   |
21 |         let DefKind::Static { nested, .. } = self.tcx.def_kind(def_id) else { bug!() };
   |
help: consider importing this macro
   |
3  + use rustc_middle::bug;

rust-log-analyzer avatar Feb 26 '24 18:02 rust-log-analyzer

The job dist-x86_64-linux failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `internal::DEFAULT_HASH_TYPES::{constant#0}`
#1 [type_of] computing type of `internal::DEFAULT_HASH_TYPES::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `internal::DEFAULT_HASH_TYPES`
end of query stack
thread 'rustc' panicked at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/compiler/rustc_middle/src/hir/mod.rs:131:44:
index out of bounds: the len is 8130 but the index is 8131
stack backtrace:
---
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `internal::POTENTIAL_QUERY_INSTABILITY::{constant#0}`
#1 [type_of] computing type of `internal::POTENTIAL_QUERY_INSTABILITY::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `internal::POTENTIAL_QUERY_INSTABILITY`
end of query stack
thread 'rustc' panicked at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/compiler/rustc_middle/src/hir/mod.rs:131:44:
index out of bounds: the len is 8130 but the index is 8132
stack backtrace:
---
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `internal::USAGE_OF_TY_TYKIND::{constant#0}`
#1 [type_of] computing type of `internal::USAGE_OF_TY_TYKIND::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `internal::USAGE_OF_TY_TYKIND`
end of query stack
thread 'rustc' panicked at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/compiler/rustc_middle/src/hir/mod.rs:131:44:
index out of bounds: the len is 8130 but the index is 8133
stack backtrace:
---
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `internal::USAGE_OF_QUALIFIED_TY::{constant#0}`
#1 [type_of] computing type of `internal::USAGE_OF_QUALIFIED_TY::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `internal::USAGE_OF_QUALIFIED_TY`
end of query stack
thread 'rustc' panicked at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/compiler/rustc_middle/src/hir/mod.rs:131:44:
index out of bounds: the len is 8130 but the index is 8134
stack backtrace:
---
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `internal::LINT_PASS_IMPL_WITHOUT_MACRO::{constant#0}`
#1 [type_of] computing type of `internal::LINT_PASS_IMPL_WITHOUT_MACRO::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `internal::LINT_PASS_IMPL_WITHOUT_MACRO`
end of query stack
thread 'rustc' panicked at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/compiler/rustc_middle/src/hir/mod.rs:131:44:
index out of bounds: the len is 8130 but the index is 8135
stack backtrace:
---
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `internal::EXISTING_DOC_KEYWORD::{constant#0}`
#1 [type_of] computing type of `internal::EXISTING_DOC_KEYWORD::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `internal::EXISTING_DOC_KEYWORD`
end of query stack
thread 'rustc' panicked at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/compiler/rustc_middle/src/hir/mod.rs:131:44:
index out of bounds: the len is 8130 but the index is 8136
stack backtrace:
---
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `internal::UNTRANSLATABLE_DIAGNOSTIC::{constant#0}`
#1 [type_of] computing type of `internal::UNTRANSLATABLE_DIAGNOSTIC::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `internal::UNTRANSLATABLE_DIAGNOSTIC`
end of query stack
thread 'rustc' panicked at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/compiler/rustc_middle/src/hir/mod.rs:131:44:
index out of bounds: the len is 8130 but the index is 8137
stack backtrace:
---
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `internal::DIAGNOSTIC_OUTSIDE_OF_IMPL::{constant#0}`
#1 [type_of] computing type of `internal::DIAGNOSTIC_OUTSIDE_OF_IMPL::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `internal::DIAGNOSTIC_OUTSIDE_OF_IMPL`
end of query stack
thread 'rustc' panicked at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/compiler/rustc_middle/src/hir/mod.rs:131:44:
index out of bounds: the len is 8130 but the index is 8138
stack backtrace:
---
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `internal::UNTRANSLATABLE_DIAGNOSTIC_TRIVIAL::{constant#0}`
#1 [type_of] computing type of `internal::UNTRANSLATABLE_DIAGNOSTIC_TRIVIAL::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `internal::UNTRANSLATABLE_DIAGNOSTIC_TRIVIAL`
end of query stack
thread 'rustc' panicked at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/compiler/rustc_middle/src/hir/mod.rs:131:44:
index out of bounds: the len is 8130 but the index is 8139
stack backtrace:
---
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `internal::BAD_OPT_ACCESS::{constant#0}`
#1 [type_of] computing type of `internal::BAD_OPT_ACCESS::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `internal::BAD_OPT_ACCESS`
end of query stack
thread 'rustc' panicked at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/compiler/rustc_middle/src/hir/mod.rs:131:44:
index out of bounds: the len is 8130 but the index is 8140
stack backtrace:
---
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `internal::SPAN_USE_EQ_CTXT::{constant#0}`
#1 [type_of] computing type of `internal::SPAN_USE_EQ_CTXT::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `internal::SPAN_USE_EQ_CTXT`
end of query stack
thread 'rustc' panicked at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/compiler/rustc_middle/src/hir/mod.rs:131:44:
index out of bounds: the len is 8130 but the index is 8141
stack backtrace:
---
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc6d31c33c7 - std::panicking::default_hook::{{closure}}::hbf206854f1b5dcb4
  10:     0x7fc6d31c3129 - std::panicking::default_hook::h15db4eebafdf0bf6
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:292:9
  11:     0x7fc6d07c13f5 - std[e1e4504dd7a065af]::panicking::update_hook::<alloc[96e8b17ef114282e]::boxed::Box<rustc_driver_impl[21051d4b1369812c]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc6d31c3b16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h357643bd50297ef2
  13:     0x7fc6d31c3b16 - std::panicking::rust_panic_with_hook::h48e6644bf233e625
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:783:13
  14:     0x7fc6d31c3862 - std::panicking::begin_panic_handler::{{closure}}::hccdbeb0278bb24ce
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/panicking.rs:657:13
---
  17:     0x7fc6d3210305 - core::panicking::panic_fmt::h626746427cded644
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:72:14
  18:     0x7fc6d3210542 - core::panicking::panic_bounds_check::hcaaffc23ebdfee41
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/core/src/panicking.rs:208:5
  19:     0x7fc6d097ad35 - <rustc_middle[94d767a986773a56]::hir::provide::{closure#0} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::LocalDefId)>>::call_once
  20:     0x7fc6d1c93107 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  21:     0x7fc6d1b3886a - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  22:     0x7fc6d1c9a1ba - rustc_query_impl[9dcdcc8824272052]::query_impl::opt_local_def_id_to_hir_id::get_query_non_incr::__rust_end_short_backtrace
  23:     0x7fc6d28a97fa - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::VecCache<rustc_span[e3ad400105871c5]::def_id::LocalDefId, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  24:     0x7fc6d2860d26 - <rustc_middle[94d767a986773a56]::ty::context::TyCtxt>::local_def_id_to_hir_id
  25:     0x7fc6d0e84f1a - rustc_hir_analysis[84cdbb4823193b48]::collect::type_of::type_of
  26:     0x7fc6d1c93883 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>
  27:     0x7fc6d1a94dec - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  28:     0x7fc6d1c9b329 - rustc_query_impl[9dcdcc8824272052]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fc6d121baee - rustc_middle[94d767a986773a56]::query::plumbing::query_get_at::<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 8usize]>>>
  30:     0x7fc6d12a230e - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::check_safe_pointer
  31:     0x7fc6d12a4451 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::validity::ValidityVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[de92f1d4c278bd4d]::interpret::visitor::ValueVisitor<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  32:     0x7fc6d12a6459 - <rustc_const_eval[de92f1d4c278bd4d]::interpret::eval_context::InterpCx<rustc_const_eval[de92f1d4c278bd4d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  33:     0x7fc6d1260ccd - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_in_interpreter
  34:     0x7fc6d12d55c8 - rustc_const_eval[de92f1d4c278bd4d]::const_eval::eval_queries::eval_static_initializer_provider
  35:     0x7fc6d1c9254d - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>
  36:     0x7fc6d1c5abd9 - <rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::dynamic_query::{closure#2} as core[4ffbe20938d4b37d]::ops::function::FnOnce<(rustc_middle[94d767a986773a56]::ty::context::TyCtxt, rustc_span[e3ad400105871c5]::def_id::DefId)>>::call_once
  37:     0x7fc6d1a8053f - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::DefIdCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  38:     0x7fc6d1cb6c0b - rustc_query_impl[9dcdcc8824272052]::query_impl::eval_static_initializer::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7fc6d0daba4c - <rustc_middle[94d767a986773a56]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[84cdbb4823193b48]::check_crate::{closure#5}>::{closure#0}
  40:     0x7fc6d0eb0cdc - rustc_hir_analysis[84cdbb4823193b48]::check_crate
  41:     0x7fc6d0991cff - rustc_interface[efacbc581dad05b8]::passes::analysis
  42:     0x7fc6d1c93897 - rustc_query_impl[9dcdcc8824272052]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>
  43:     0x7fc6d1a9f499 - rustc_query_system[ab2d29d130f3bd62]::query::plumbing::try_execute_query::<rustc_query_impl[9dcdcc8824272052]::DynamicConfig<rustc_query_system[ab2d29d130f3bd62]::query::caches::SingleCache<rustc_middle[94d767a986773a56]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[9dcdcc8824272052]::plumbing::QueryCtxt, false>
  44:     0x7fc6d1c9c7b7 - rustc_query_impl[9dcdcc8824272052]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7fc6d0774716 - <rustc_interface[efacbc581dad05b8]::queries::QueryResult<&rustc_middle[94d767a986773a56]::ty::context::GlobalCtxt>>::enter::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}::{closure#1}::{closure#3}>
  46:     0x7fc6d07c9571 - rustc_interface[efacbc581dad05b8]::interface::run_compiler::<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}
  47:     0x7fc6d07b9b62 - std[e1e4504dd7a065af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>
  48:     0x7fc6d07cbc7e - <<std[e1e4504dd7a065af]::thread::Builder>::spawn_unchecked_<rustc_interface[efacbc581dad05b8]::util::run_in_thread_with_globals<rustc_interface[efacbc581dad05b8]::util::run_in_thread_pool_with_globals<rustc_interface[efacbc581dad05b8]::interface::run_compiler<core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>, rustc_driver_impl[21051d4b1369812c]::run_compiler::{closure#0}>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4ffbe20938d4b37d]::result::Result<(), rustc_span[e3ad400105871c5]::ErrorGuaranteed>>::{closure#1} as core[4ffbe20938d4b37d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc35740695bb05646
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/alloc/src/boxed.rs:2016:9
  50:     0x7fc6d31cd595 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h369a0eb77770cf5b
  51:     0x7fc6d31cd595 - std::sys::pal::unix::thread::Thread::new::thread_start::h98aa44f98e40539a
                               at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/library/std/src/sys/pal/unix/thread.rs:108:17
  52:     0x7fc6cf2a4ea5 - start_thread
  53:     0x7fc6cefcdb0d - clone
  53:     0x7fc6cefcdb0d - clone
  54:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

warning: the ICE couldn't be written to `/checkout/rustc-ice-2024-02-26T18_24_30-49026.txt`: Read-only file system (os error 30)
note: rustc 1.78.0-nightly (51f4acc22 2024-02-26) running on x86_64-unknown-linux-gnu


note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -Z unstable-options -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-arg=-fuse-ld=lld -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `pass_by_value::PASS_BY_VALUE::{constant#0}`
#1 [type_of] computing type of `pass_by_value::PASS_BY_VALUE::{constant#0}`  |  = note: this failure-note originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)

#2 [eval_static_initializer] evaluating initializer of static `pass_by_value::PASS_BY_VALUE`
end of query stack
[RUSTC-TIMING] rustc_lint test:false 1.213
error: could not compile `rustc_lint` (lib)
warning: build failed, waiting for other jobs to finish...
---
Caused by:
    Command RUST_BACKTRACE=full python3 /checkout/x.py build --target x86_64-unknown-linux-gnu --host x86_64-unknown-linux-gnu --stage 2 library/std --rust-profile-generate /tmp/tmp-multistage/opt-artifacts/rustc-pgo --set llvm.thin-lto=false --set llvm.link-shared=true [at /checkout/obj] has failed with exit code Some(1)

Stack backtrace:
   0: <anyhow::Error>::msg::<alloc::string::String>
             at /rust/deps/anyhow-1.0.79/src/error.rs:83:36
   1: <opt_dist::exec::CmdBuilder>::run
             at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/src/tools/opt-dist/src/exec.rs:78:17
   2: <opt_dist::exec::Bootstrap>::run
   3: opt_dist::execute_pipeline::{closure#1}::{closure#0}
             at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/src/tools/opt-dist/src/main.rs:210:13
             at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/src/tools/opt-dist/src/main.rs:210:13
   4: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}::{closure#0}, ()>
   5: opt_dist::execute_pipeline::{closure#1}
             at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/src/tools/opt-dist/src/main.rs:199:9
             at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/src/tools/opt-dist/src/main.rs:199:9
   6: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}, opt_dist::training::RustcPGOProfile>
   7: opt_dist::execute_pipeline
             at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/src/tools/opt-dist/src/main.rs:196:29
   8: opt_dist::main
             at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/src/tools/opt-dist/src/main.rs:385:18
             at /rustc/51f4acc22a01f3177d04f469578403e6eda2e044/src/tools/opt-dist/src/main.rs:385:18
   9: <fn() -> core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/04ba4521971a83d71477a406b5ce7a479e9d7af8/library/core/src/ops/function.rs:250:5
  10: std::sys_common::backtrace::__rust_begin_short_backtrace::<fn() -> core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>>
             at /rustc/04ba4521971a83d71477a406b5ce7a479e9d7af8/library/std/src/sys_common/backtrace.rs:155:18
  11: std::rt::lang_start::<core::result::Result<(), anyhow::Error>>::{closure#0}
             at /rustc/04ba4521971a83d71477a406b5ce7a479e9d7af8/library/std/src/rt.rs:166:18
  12: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
  13: std::panicking::try::do_call
             at /rustc/04ba4521971a83d71477a406b5ce7a479e9d7af8/library/std/src/panicking.rs:554:40
  14: std::panicking::try
             at /rustc/04ba4521971a83d71477a406b5ce7a479e9d7af8/library/std/src/panicking.rs:518:19

rust-log-analyzer avatar Feb 26 '24 18:02 rust-log-analyzer

:broken_heart: Test failed - checks-actions

bors avatar Feb 26 '24 18:02 bors

@bors try @rust-timer queue

oli-obk avatar Feb 26 '24 20:02 oli-obk

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

rust-timer avatar Feb 26 '24 20:02 rust-timer

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_69b1f9aa-5bd9-45ff-b28c-e75f5f3dfa7c
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
GITHUB_HEAD_REF=unique_static_innards2
GITHUB_JOB=pr
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_69b1f9aa-5bd9-45ff-b28c-e75f5f3dfa7c
GITHUB_REF=refs/pull/121644/merge
GITHUB_REF_NAME=121644/merge
GITHUB_REF_PROTECTED=false
---
#13 3.927 Building wheels for collected packages: reuse
#13 3.928   Building wheel for reuse (pyproject.toml): started
#13 4.263   Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 4.264   Created wheel for reuse: filename=reuse-1.1.0-cp310-cp310-manylinux_2_35_x86_64.whl size=181117 sha256=f5f58750481f69515c2c0d1d503daf565e2565c370d07fc6aeb95fe3498b4269
#13 4.264   Stored in directory: /tmp/pip-ephem-wheel-cache-btg3le7m/wheels/c2/3c/b9/1120c2ab4bd82694f7e6f0537dc5b9a085c13e2c69a8d0c76d
#13 4.267 Installing collected packages: boolean-py, binaryornot, setuptools, reuse, python-debian, markupsafe, license-expression, jinja2, chardet
#13 4.289   Attempting uninstall: setuptools
#13 4.289     Found existing installation: setuptools 59.6.0
#13 4.290     Not uninstalling setuptools at /usr/lib/python3/dist-packages, outside environment /usr
---
    Checking rustc_codegen_gcc v0.1.0 (/checkout/compiler/rustc_codegen_gcc)
error: cannot find macro `bug` in this scope
  --> src/mono_item.rs:21:79
   |
21 |         let DefKind::Static { nested, .. } = self.tcx.def_kind(def_id) else { bug!() };
   |
help: consider importing this macro
   |
3  + use rustc_middle::bug;

rust-log-analyzer avatar Feb 26 '24 20:02 rust-log-analyzer

:hourglass: Trying commit cc1ec8abd2d831902f6df428e816b8f0d8cc6cc6 with merge 2e8adb0d5745974195225529c45f25f945c6e73c...

bors avatar Feb 26 '24 20:02 bors

The job dist-x86_64-linux failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
Preparing cargo-0.60.0
[2024-02-26T21:02:33Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=None, patch=None
[2024-02-26T21:02:33Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=None, patch=None
[2024-02-26T21:02:33Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Check, scenario=None, patch=None
[2024-02-26T21:02:33Z DEBUG collector::compile::execute] cd "/tmp/.tmpD4XJz9" && CARGO_INCREMENTAL="0" CARGO_MAKEFLAGS="-j --jobserver-fds=13,14 --jobserver-auth=13,14" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpD4XJz9#[email protected]" "--profile" "check" "--lib" "--" "--skip-this-rustc"
[2024-02-26T21:02:33Z DEBUG collector::compile::execute] cd "/tmp/.tmpaDsOeP" && CARGO_INCREMENTAL="0" CARGO_MAKEFLAGS="-j --jobserver-fds=13,14 --jobserver-auth=13,14" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpaDsOeP#[email protected]" "--release" "--lib" "--" "--skip-this-rustc"
[2024-02-26T21:02:33Z DEBUG collector::compile::execute] cd "/tmp/.tmpYHRHfK" && CARGO_INCREMENTAL="0" CARGO_MAKEFLAGS="-j --jobserver-fds=13,14 --jobserver-auth=13,14" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpYHRHfK#[email protected]" "--lib" "--" "--skip-this-rustc"
Finished benchmark cargo-0.60.0 (2/8)
collector error: Failed to profile 'cargo-0.60.0' with Eprintln, recorded: expected success, got exit status: 101
stderr=    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
   Compiling libc v0.2.119
---
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/library/std/src/panicking.rs:645:5
   1: core::panicking::panic_fmt
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/library/core/src/panicking.rs:72:14
   2: core::panicking::panic_bounds_check
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/library/core/src/panicking.rs:208:5
   3: <rustc_middle::hir::provide::{closure#0} as core::ops::function::FnOnce<(rustc_middle::ty::context::TyCtxt, rustc_span::def_id::LocalDefId)>>::call_once
      [... omitted 1 frame ...]
   4: 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]>>>
   5: <rustc_middle::ty::context::TyCtxt>::local_def_id_to_hir_id
   6: rustc_hir_analysis::collect::type_of::type_of
      [... omitted 1 frame ...]
   7: rustc_middle::query::plumbing::query_get_at::<rustc_query_system::query::caches::DefIdCache<rustc_middle::query::erase::Erased<[u8; 8]>>>
   8: <rustc_middle::ty::instance::Instance>::ty
   9: <rustc_codegen_llvm::context::CodegenCx as rustc_codegen_ssa::traits::statics::StaticMethods>::codegen_static
  10: rustc_codegen_llvm::base::compile_codegen_unit::module_codegen
  11: <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_ssa::traits::backend::ExtraBackendMethods>::compile_codegen_unit
  12: rustc_codegen_ssa::base::codegen_crate::<rustc_codegen_llvm::LlvmCodegenBackend>
  13: <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_ssa::traits::backend::CodegenBackend>::codegen_crate
  15: <rustc_interface::queries::Queries>::codegen_and_build_linker
  16: rustc_interface::interface::run_compiler::<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#0}>::{closure#0}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.


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 attach the file at `/cargo/registry/src/index.crates.io-6f17d22bba15001f/bstr-0.2.17/rustc-ice-2024-02-26T21_02_36-50699.txt` to your bug report

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C linker=clang -Z incremental-verify-ich
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
query stack during panic:
#0 [opt_local_def_id_to_hir_id] getting HIR ID of `unicode::fsm::grapheme_break_fwd::<impl at /cargo/registry/src/index.crates.io-6f17d22bba15001f/lazy_static-1.4.0/src/lib.rs:133:9: 133:36>::deref::__static_ref_initialize::ALIGNED::{constant#0}`
#1 [type_of] computing type of `unicode::fsm::grapheme_break_fwd::<impl at /cargo/registry/src/index.crates.io-6f17d22bba15001f/lazy_static-1.4.0/src/lib.rs:133:9: 133:36>::deref::__static_ref_initialize::ALIGNED::{constant#0}`
error: could not compile `bstr` (lib)
warning: build failed, waiting for other jobs to finish...


---
[2024-02-26T21:03:20Z DEBUG collector::compile::execute] cd "/tmp/.tmpfULeCq" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpfULeCq#[email protected]" "--profile" "check" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpfULeCq/incremental-state"
Running ctfe-stress-5: Debug + [Full, IncrFull, IncrUnchanged, IncrPatched]
[2024-02-26T21:03:20Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:03:20Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=Some(Full), patch=None
[2024-02-26T21:03:20Z DEBUG collector::compile::execute] cd "/tmp/.tmp0WzGal" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmp0WzGal#[email protected]" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:03:24Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrFull), patch=None
[2024-02-26T21:03:24Z DEBUG collector::compile::execute] cd "/tmp/.tmp0WzGal" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmp0WzGal#[email protected]" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmp0WzGal/incremental-state"
[2024-02-26T21:03:29Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrUnchanged), patch=None
[2024-02-26T21:03:29Z DEBUG collector::compile::execute] cd "/tmp/.tmp0WzGal" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmp0WzGal#[email protected]" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmp0WzGal/incremental-state"
[2024-02-26T21:03:29Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:03:29Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=Some(Full), patch=None
[2024-02-26T21:03:29Z DEBUG collector::compile::execute] cd "/tmp/.tmpb4sjZi" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpb4sjZi#[email protected]" "--release" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:03:33Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrFull), patch=None
---
[2024-02-26T21:03:46Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:03:46Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Check, scenario=Some(Full), patch=None
[2024-02-26T21:03:46Z DEBUG collector::compile::execute] cd "/tmp/.tmpBGdwNI" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpBGdwNI#[email protected]" "--profile" "check" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:03:51Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Check, scenario=Some(IncrFull), patch=None
[2024-02-26T21:03:51Z DEBUG collector::compile::execute] cd "/tmp/.tmpBGdwNI" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpBGdwNI#[email protected]" "--profile" "check" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpBGdwNI/incremental-state"
[2024-02-26T21:03:56Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Check, scenario=Some(IncrUnchanged), patch=None
[2024-02-26T21:03:56Z DEBUG collector::compile::execute] cd "/tmp/.tmpBGdwNI" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpBGdwNI#[email protected]" "--profile" "check" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpBGdwNI/incremental-state"
[2024-02-26T21:03:58Z DEBUG collector::compile::benchmark::patch] applying println to "/tmp/.tmpBGdwNI"
[2024-02-26T21:03:58Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Check, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" })
[2024-02-26T21:03:58Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Check, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" })
[2024-02-26T21:03:58Z DEBUG collector::compile::execute] cd "/tmp/.tmpBGdwNI" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpBGdwNI#[email protected]" "--profile" "check" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpBGdwNI/incremental-state"
[2024-02-26T21:03:59Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:03:59Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=Some(Full), patch=None
[2024-02-26T21:03:59Z DEBUG collector::compile::execute] cd "/tmp/.tmpBZFstl" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpBZFstl#[email protected]" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:04:05Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrFull), patch=None
[2024-02-26T21:04:05Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrFull), patch=None
[2024-02-26T21:04:05Z DEBUG collector::compile::execute] cd "/tmp/.tmpBZFstl" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpBZFstl#[email protected]" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpBZFstl/incremental-state"
[2024-02-26T21:04:11Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrUnchanged), patch=None
[2024-02-26T21:04:11Z DEBUG collector::compile::execute] cd "/tmp/.tmpBZFstl" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpBZFstl#[email protected]" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpBZFstl/incremental-state"
[2024-02-26T21:04:13Z DEBUG collector::compile::benchmark::patch] applying println to "/tmp/.tmpBZFstl"
[2024-02-26T21:04:13Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" })
[2024-02-26T21:04:13Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" })
[2024-02-26T21:04:13Z DEBUG collector::compile::execute] cd "/tmp/.tmpBZFstl" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpBZFstl#[email protected]" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpBZFstl/incremental-state"
[2024-02-26T21:04:15Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:04:15Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=Some(Full), patch=None
[2024-02-26T21:04:15Z DEBUG collector::compile::execute] cd "/tmp/.tmpJBEgQ1" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpJBEgQ1#[email protected]" "--release" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:04:21Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrFull), patch=None
[2024-02-26T21:04:21Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrFull), patch=None
[2024-02-26T21:04:21Z DEBUG collector::compile::execute] cd "/tmp/.tmpJBEgQ1" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpJBEgQ1#[email protected]" "--release" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpJBEgQ1/incremental-state"
[2024-02-26T21:04:28Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrUnchanged), patch=None
[2024-02-26T21:04:28Z DEBUG collector::compile::execute] cd "/tmp/.tmpJBEgQ1" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpJBEgQ1#[email protected]" "--release" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpJBEgQ1/incremental-state"
[2024-02-26T21:04:29Z DEBUG collector::compile::benchmark::patch] applying println to "/tmp/.tmpJBEgQ1"
[2024-02-26T21:04:29Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" })
[2024-02-26T21:04:29Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" })
[2024-02-26T21:04:29Z DEBUG collector::compile::execute] cd "/tmp/.tmpJBEgQ1" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpJBEgQ1#[email protected]" "--release" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpJBEgQ1/incremental-state"
Executing benchmark externs (5/8)
Preparing externs
[2024-02-26T21:04:31Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Check, scenario=None, patch=None
[2024-02-26T21:04:31Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=None, patch=None
---
[2024-02-26T21:04:31Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:04:31Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Check, scenario=Some(Full), patch=None
[2024-02-26T21:04:31Z DEBUG collector::compile::execute] cd "/tmp/.tmpRAuVKB" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpRAuVKB#[email protected]" "--profile" "check" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:04:31Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Check, scenario=Some(IncrFull), patch=None
[2024-02-26T21:04:31Z DEBUG collector::compile::execute] cd "/tmp/.tmpRAuVKB" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpRAuVKB#[email protected]" "--profile" "check" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpRAuVKB/incremental-state"
[2024-02-26T21:04:31Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Check, scenario=Some(IncrUnchanged), patch=None
[2024-02-26T21:04:31Z DEBUG collector::compile::execute] cd "/tmp/.tmpRAuVKB" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpRAuVKB#[email protected]" "--profile" "check" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpRAuVKB/incremental-state"
[2024-02-26T21:04:32Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:04:32Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=Some(Full), patch=None
[2024-02-26T21:04:32Z DEBUG collector::compile::execute] cd "/tmp/.tmp9QNozd" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmp9QNozd#[email protected]" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:04:32Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrFull), patch=None
[2024-02-26T21:04:32Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrFull), patch=None
[2024-02-26T21:04:32Z DEBUG collector::compile::execute] cd "/tmp/.tmp9QNozd" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmp9QNozd#[email protected]" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmp9QNozd/incremental-state"
[2024-02-26T21:04:32Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrUnchanged), patch=None
[2024-02-26T21:04:32Z DEBUG collector::compile::execute] cd "/tmp/.tmp9QNozd" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmp9QNozd#[email protected]" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmp9QNozd/incremental-state"
[2024-02-26T21:04:32Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:04:32Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=Some(Full), patch=None
[2024-02-26T21:04:32Z DEBUG collector::compile::execute] cd "/tmp/.tmpWZliDD" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpWZliDD#[email protected]" "--release" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:04:33Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrFull), patch=None
---
[2024-02-26T21:04:38Z DEBUG collector::compile::execute] cd "/tmp/.tmp46dvP5" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmp46dvP5#[email protected]" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmp46dvP5/incremental-state"
Running match-stress: Opt + [Full, IncrFull, IncrUnchanged, IncrPatched]
[2024-02-26T21:04:39Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:04:39Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=Some(Full), patch=None
[2024-02-26T21:04:39Z DEBUG collector::compile::execute] cd "/tmp/.tmpi0ICuf" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpi0ICuf#[email protected]" "--release" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:04:40Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrFull), patch=None
[2024-02-26T21:04:40Z DEBUG collector::compile::execute] cd "/tmp/.tmpi0ICuf" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpi0ICuf#[email protected]" "--release" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpi0ICuf/incremental-state"
[2024-02-26T21:04:41Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrUnchanged), patch=None
[2024-02-26T21:04:41Z DEBUG collector::compile::execute] cd "/tmp/.tmpi0ICuf" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpi0ICuf#[email protected]" "--release" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpi0ICuf/incremental-state"
Executing benchmark token-stream-stress (7/8)
Preparing token-stream-stress
[2024-02-26T21:04:41Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=None, patch=None
[2024-02-26T21:04:41Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Check, scenario=None, patch=None
---
[2024-02-26T21:04:42Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:04:42Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Check, scenario=Some(Full), patch=None
[2024-02-26T21:04:42Z DEBUG collector::compile::execute] cd "/tmp/.tmplAmqGH" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmplAmqGH#[email protected]" "--profile" "check" "--bin" "token-stream-stress-bin" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:04:42Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Check, scenario=Some(IncrFull), patch=None
[2024-02-26T21:04:42Z DEBUG collector::compile::execute] cd "/tmp/.tmplAmqGH" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmplAmqGH#[email protected]" "--profile" "check" "--bin" "token-stream-stress-bin" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmplAmqGH/incremental-state"
[2024-02-26T21:04:42Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Check, scenario=Some(IncrUnchanged), patch=None
[2024-02-26T21:04:42Z DEBUG collector::compile::execute] cd "/tmp/.tmplAmqGH" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmplAmqGH#[email protected]" "--profile" "check" "--bin" "token-stream-stress-bin" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmplAmqGH/incremental-state"
[2024-02-26T21:04:42Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:04:42Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=Some(Full), patch=None
[2024-02-26T21:04:42Z DEBUG collector::compile::execute] cd "/tmp/.tmp7rPAmK" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmp7rPAmK#[email protected]" "--bin" "token-stream-stress-bin" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:04:42Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrFull), patch=None
---
[2024-02-26T21:04:42Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:04:42Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=Some(Full), patch=None
[2024-02-26T21:04:42Z DEBUG collector::compile::execute] cd "/tmp/.tmpZVMUU7" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpZVMUU7#[email protected]" "--release" "--bin" "token-stream-stress-bin" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:04:42Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrFull), patch=None
[2024-02-26T21:04:42Z DEBUG collector::compile::execute] cd "/tmp/.tmpZVMUU7" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpZVMUU7#[email protected]" "--release" "--bin" "token-stream-stress-bin" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpZVMUU7/incremental-state"
[2024-02-26T21:04:43Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrUnchanged), patch=None
[2024-02-26T21:04:43Z DEBUG collector::compile::execute] cd "/tmp/.tmpZVMUU7" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpZVMUU7#[email protected]" "--release" "--bin" "token-stream-stress-bin" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpZVMUU7/incremental-state"
Executing benchmark tuple-stress (8/8)
Preparing tuple-stress
[2024-02-26T21:04:43Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Check, scenario=None, patch=None
[2024-02-26T21:04:43Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=None, patch=None
[2024-02-26T21:04:43Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=None, patch=None
[2024-02-26T21:04:43Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=None, patch=None
[2024-02-26T21:04:43Z DEBUG collector::compile::execute] cd "/tmp/.tmp0bZg1C" && CARGO_INCREMENTAL="0" CARGO_MAKEFLAGS="-j --jobserver-fds=13,14 --jobserver-auth=13,14" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmp0bZg1C#[email protected]" "--release" "--" "--skip-this-rustc"
[2024-02-26T21:04:43Z DEBUG collector::compile::execute] cd "/tmp/.tmpXGBPM9" && CARGO_INCREMENTAL="0" CARGO_MAKEFLAGS="-j --jobserver-fds=13,14 --jobserver-auth=13,14" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpXGBPM9#[email protected]" "--profile" "check" "--" "--skip-this-rustc"
[2024-02-26T21:04:43Z DEBUG collector::compile::execute] cd "/tmp/.tmpXFouIW" && CARGO_INCREMENTAL="0" CARGO_MAKEFLAGS="-j --jobserver-fds=13,14 --jobserver-auth=13,14" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpXFouIW#[email protected]" "--" "--skip-this-rustc"
[2024-02-26T21:04:43Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2024-02-26T21:04:43Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Check, scenario=Some(Full), patch=None
[2024-02-26T21:04:43Z DEBUG collector::compile::execute] cd "/tmp/.tmpcf7d8K" && CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpcf7d8K#[email protected]" "--profile" "check" "--" "--wrap-rustc-with" "Eprintln"
[2024-02-26T21:04:45Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Check, scenario=Some(IncrFull), patch=None
---
    0: Cannot gather rustc PGO profiles
    1: Command LLVM_PROFILE_FILE=/tmp/tmp-multistage/opt-artifacts/rustc-pgo/default_%m_%p.profraw RUSTC=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc RUSTC_BOOTSTRAP=1 RUST_LOG=collector=debug /checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo run -p collector --bin collector -- profile_local eprintln /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc --id Test --cargo /checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo --profiles Check,Debug,Opt --scenarios All --include externs,ctfe-stress-5,cargo-0.60.0,token-stream-stress,match-stress,tuple-stress,diesel-1.4.8,bitmaps-3.1.0 [at /tmp/tmp-multistage/opt-artifacts/rustc-perf] has failed with exit code Some(1)

Stack backtrace:
   0: <anyhow::Error>::msg::<alloc::string::String>
             at /rust/deps/anyhow-1.0.79/src/error.rs:83:36
   1: <opt_dist::exec::CmdBuilder>::run
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/src/tools/opt-dist/src/exec.rs:78:17
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/src/tools/opt-dist/src/training.rs:164:9
   3: opt_dist::utils::with_log_group::<opt_dist::training::gather_rustc_profiles::{closure#0}, core::result::Result<(), anyhow::Error>>
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/src/tools/opt-dist/src/utils/mod.rs:65:22
   4: opt_dist::training::gather_rustc_profiles
   4: opt_dist::training::gather_rustc_profiles
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/src/tools/opt-dist/src/training.rs:163:5
   5: opt_dist::execute_pipeline::{closure#1}::{closure#1}
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/src/tools/opt-dist/src/main.rs:214:45
   6: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}::{closure#1}, opt_dist::training::RustcPGOProfile>
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/src/tools/opt-dist/src/timer.rs:111:22
   7: opt_dist::execute_pipeline::{closure#1}
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/src/tools/opt-dist/src/main.rs:213:23
   8: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}, opt_dist::training::RustcPGOProfile>
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/src/tools/opt-dist/src/timer.rs:111:22
   9: opt_dist::execute_pipeline
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/src/tools/opt-dist/src/main.rs:196:29
             at /rustc/2e8adb0d5745974195225529c45f25f945c6e73c/src/tools/opt-dist/src/main.rs:385:18
  11: <fn() -> core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/04ba4521971a83d71477a406b5ce7a479e9d7af8/library/core/src/ops/function.rs:250:5
  12: std::sys_common::backtrace::__rust_begin_short_backtrace::<fn() -> core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>>
  12: std::sys_common::backtrace::__rust_begin_short_backtrace::<fn() -> core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>>
             at /rustc/04ba4521971a83d71477a406b5ce7a479e9d7af8/library/std/src/sys_common/backtrace.rs:155:18
  13: std::rt::lang_start::<core::result::Result<(), anyhow::Error>>::{closure#0}
             at /rustc/04ba4521971a83d71477a406b5ce7a479e9d7af8/library/std/src/rt.rs:166:18
  14: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
  15: std::panicking::try::do_call
             at /rustc/04ba4521971a83d71477a406b5ce7a479e9d7af8/library/std/src/panicking.rs:554:40
  16: std::panicking::try
             at /rustc/04ba4521971a83d71477a406b5ce7a479e9d7af8/library/std/src/panicking.rs:518:19

rust-log-analyzer avatar Feb 26 '24 21:02 rust-log-analyzer

:broken_heart: Test failed - checks-actions

bors avatar Feb 26 '24 21:02 bors

@bors try @rust-timer queue

oli-obk avatar Feb 26 '24 23:02 oli-obk

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

rust-timer avatar Feb 26 '24 23:02 rust-timer

:hourglass: Trying commit e5836ab3dbbbfb95d15ec6452eaec24fe6e80e61 with merge ee1746640e9092af487215688046c7f3f0e3281b...

bors avatar Feb 26 '24 23:02 bors

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

Click to see the possible cause of the failure (guessed by this bot)
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_e9cdaeb6-a5d1-4d8e-b196-511754392d62
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
GITHUB_HEAD_REF=unique_static_innards2
GITHUB_JOB=pr
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_e9cdaeb6-a5d1-4d8e-b196-511754392d62
GITHUB_REF=refs/pull/121644/merge
GITHUB_REF_NAME=121644/merge
GITHUB_REF_PROTECTED=false
---
#12 writing image sha256:3bc8fa22c400df4dd94b8cb96c8b54516f48638d4829f6e7561f1a6242d064df done
#12 naming to docker.io/library/rust-ci done
#12 DONE 10.0s
##[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-16]
##[group]Clock drift check
  local time: Mon Feb 26 23:36:26 UTC 2024
  network time: Mon, 26 Feb 2024 23:36:26 GMT
  network time: Mon, 26 Feb 2024 23:36:26 GMT
##[endgroup]
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-16', '--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', '--set', 'build.optimized-compiler-builtins', '--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-16/bin/llvm-config
configure: llvm.link-shared     := True
configure: rust.thin-lto-import-instr-limit := 10
configure: change-id            := 99999999
---
........................................................................................  3080/16221
.......................................................................i................  3168/16221
........................................................................................  3256/16221
........................................................................................  3344/16221
...........F............................................................................  3432/16221
F....F..................................................................................  3520/16221
........................................................................................  3608/16221
......................................F..F...F..........................................  3696/16221
........................................................................................  3872/16221
.........................................i..............................................  3960/16221
...i....................................................................................  4048/16221
........................................................................................  4136/16221
---
diff of stderr:

2   --> $DIR/mut_ref_in_final_dynamic_check.rs:20:1
3    |
4 LL | const MUT: Option<&mut i32> = helper();
-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference in a `const` or `static`
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference or box pointing to read-only memory
6    |
7    = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
8    = note: the raw bytes of the constant (size: $SIZE, align: $ALIGN) {
13   --> $DIR/mut_ref_in_final_dynamic_check.rs:22:1
14    |
14    |
15 LL | static MUT_STATIC: Option<&mut i32> = helper();
-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference in a `const` or `static`
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference or box pointing to read-only memory
17    |
18    = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
19    = note: the raw bytes of the constant (size: $SIZE, align: $ALIGN) {

The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check/mut_ref_in_final_dynamic_check.stderr
To update references, rerun the tests and pass the `--bless` flag
---
--- stderr -------------------------------
error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:20:1
   |
LL | const MUT: Option<&mut i32> = helper(); //~ ERROR it is undefined behavior to use this value
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference or box pointing to read-only memory
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
           }

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:22:1
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:22:1
   |
LL | static MUT_STATIC: Option<&mut i32> = helper(); //~ ERROR it is undefined behavior to use this value
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference or box pointing to read-only memory
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
           }

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:29:1
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:29:1
   |
LL | const INT2PTR: Option<&mut i32> = helper_int2ptr(); //~ ERROR it is undefined behavior to use this value
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered a dangling reference (0x2a[noalloc] has no provenance)
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
               2a 00 00 00 00 00 00 00                         │ *.......

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:31:1
   |
   |
LL | static INT2PTR_STATIC: Option<&mut i32> = helper_int2ptr(); //~ ERROR it is undefined behavior to use this value
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered a dangling reference (0x2a[noalloc] has no provenance)
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
               2a 00 00 00 00 00 00 00                         │ *.......

error: encountered dangling pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:38:1
   |
   |
LL | const DANGLING: Option<&mut i32> = helper_dangling(); //~ ERROR encountered dangling pointer

error: encountered dangling pointer in final value of static
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:39:1
   |
   |
LL | static DANGLING_STATIC: Option<&mut i32> = helper_dangling(); //~ ERROR encountered dangling pointer

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:45:1
   |
   |
LL | static MUTEX: Mutex<&mut [u8]> = Mutex::new(unsafe { &mut *MUT_ARRAY }); //~ ERROR it is undefined behavior to use this value
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .data.value: encountered mutable reference in a `const` or `static`
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 24, align: 8) {
               0x00 │ 00 00 00 00 00 __ __ __ ╾───────alloc17───────╼ │ .....░░░╾──────╼
               0x10 │ 01 00 00 00 00 00 00 00                         │ ........

error: aborting due to 7 previous errors

For more information about this error, try `rustc --explain E0080`.
For more information about this error, try `rustc --explain E0080`.
------------------------------------------


---- [ui] tests/ui/consts/const_refs_to_static_fail.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/consts/const_refs_to_static_fail.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" "--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/consts/const_refs_to_static_fail" "-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/consts/const_refs_to_static_fail/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at compiler/rustc_const_eval/src/interpret/validity.rs:718:65:
---
   2:     0x7fe30df67a45 - <std[1d76cb1c77b3bcf9]::sys::pal::unix::stdio::Stderr as std[1d76cb1c77b3bcf9]::io::Write>::write_fmt
   3:     0x7fe30df73095 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::print
   4:     0x7fe30df7621a - std[1d76cb1c77b3bcf9]::panicking::default_hook::{closure#1}
   5:     0x7fe30df75f1d - std[1d76cb1c77b3bcf9]::panicking::default_hook
   6:     0x7fe30ec92887 - <alloc[f412646fbe367a2a]::boxed::Box<rustc_driver_impl[f34b86435b85c73f]::install_ice_hook::{closure#0}> as core[312ac71b0bf3b0f8]::ops::function::Fn<(&dyn for<'a, 'b> core[312ac71b0bf3b0f8]::ops::function::Fn<(&'a core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[312ac71b0bf3b0f8]::marker::Send + core[312ac71b0bf3b0f8]::marker::Sync, &core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo)>>::call
   8:     0x7fe30df76609 - std[1d76cb1c77b3bcf9]::panicking::begin_panic_handler::{closure#0}
   9:     0x7fe30df73846 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_end_short_backtrace::<std[1d76cb1c77b3bcf9]::panicking::begin_panic_handler::{closure#0}, !>
  10:     0x7fe30df76394 - rust_begin_unwind
  11:     0x7fe30df2e365 - core[312ac71b0bf3b0f8]::panicking::panic_fmt
  11:     0x7fe30df2e365 - core[312ac71b0bf3b0f8]::panicking::panic_fmt
  12:     0x7fe30df2e423 - core[312ac71b0bf3b0f8]::panicking::panic
  13:     0x7fe30df2e2b6 - core[312ac71b0bf3b0f8]::option::unwrap_failed
  14:     0x7fe30fc793a3 - <rustc_const_eval[4a96549c701c6b0d]::interpret::validity::ValidityVisitor<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter>>::in_mutable_memory
  15:     0x7fe30fc79843 - <rustc_const_eval[4a96549c701c6b0d]::interpret::validity::ValidityVisitor<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[4a96549c701c6b0d]::interpret::visitor::ValueVisitor<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  16:     0x7fe30fc7b2a3 - <rustc_const_eval[4a96549c701c6b0d]::interpret::validity::ValidityVisitor<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[4a96549c701c6b0d]::interpret::visitor::ValueVisitor<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter>>::walk_value
  17:     0x7fe30fb4d434 - <rustc_const_eval[4a96549c701c6b0d]::interpret::eval_context::InterpCx<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7fe30fc6f077 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7fe30fc800f3 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7fe31070dec4 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7fe310868eaa - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7fe310a518a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  23:     0x7fe31083a4b5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7fe30fc7e5b2 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7fe310710484 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7fe3108699ca - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7fe310a518a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  28:     0x7fe31083a5d5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fe3119bae72 - <rustc_middle[139079db273fad99]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7fe30f5854a1 - std[1d76cb1c77b3bcf9]::panicking::try::<(), core[312ac71b0bf3b0f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[9eb656ccfb2bc23c]::sync::parallel::enabled::par_for_each_in<&rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId, &[rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId], <rustc_middle[139079db273fad99]::hir::map::Map>::par_body_owners<rustc_hir_analysis[48456f93e78f5699]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>>
  31:     0x7fe30f526adb - rustc_hir_analysis[48456f93e78f5699]::check_crate
  32:     0x7fe30eed4d80 - rustc_interface[e0411719cf2ec05b]::passes::analysis
  34:     0x7fe3108c5481 - <rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7fe310a41048 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::SingleCache<rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  36:     0x7fe3109aac7d - rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7fe30ec956fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  37:     0x7fe30ec956fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  38:     0x7fe30ec9f4da - <rustc_interface[e0411719cf2ec05b]::interface::Compiler>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}, core[312ac71b0bf3b0f8]::result::Result<core[312ac71b0bf3b0f8]::option::Option<rustc_interface[e0411719cf2ec05b]::queries::Linker>, rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  39:     0x7fe30ec79f1a - rustc_span[86b7e0b91b4d1a92]::set_source_map::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7fe30ec76c81 - rustc_interface[e0411719cf2ec05b]::interface::run_compiler::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7fe30ec6cad2 - <scoped_tls[5bd90a827ed9096a]::ScopedKey<rustc_span[86b7e0b91b4d1a92]::SessionGlobals>>::set::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  42:     0x7fe30ec82dd4 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  43:     0x7fe30ec85831 - <<std[1d76cb1c77b3bcf9]::thread::Builder>::spawn_unchecked_<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#1} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7fe30df8208e - <std[1d76cb1c77b3bcf9]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7fe30ddfd120 - <unknown>
  47:                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: rustc 1.78.0-nightly (249e88809 2024-02-26) 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 -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 [eval_to_allocation_raw] const-evaluating + checking `C1`
#1 [eval_to_const_value_raw] simplifying constant for the type system `C1`
end of query stack
error[E0080]: evaluation of constant value failed
##[error]  --> /checkout/tests/ui/consts/const_refs_to_static_fail.rs:16:13
   |
   |
LL |     assert!(*C2 == 0); //~ERROR evaluation of constant value failed
   |             ^^^ constant accesses mutable global memory
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0080`.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/consts/const_refs_to_static_fail_invalid.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/consts/const_refs_to_static_fail_invalid.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" "--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/consts/const_refs_to_static_fail_invalid" "-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/consts/const_refs_to_static_fail_invalid/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0080]: it is undefined behavior to use this value
error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const_refs_to_static_fail_invalid.rs:9:5
   |
LL |     const C: &bool = unsafe { std::mem::transmute(&S) };
   |     ^^^^^^^^^^^^^^ constructing invalid value at .<deref>: encountered 0x0a, but expected a boolean
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
               ╾─────alloc1<imm>─────╼                         │ ╾──────╼

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const_refs_to_static_fail_invalid.rs:25:5
   |
   |
LL |     const C: &i8 = unsafe { &S };
   |     ^^^^^^^^^^^^ constructing invalid value: encountered reference to `extern` static in `const`
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
               ╾─────alloc4<imm>─────╼                         │ ╾──────╼


##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7fa2d07d92b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   0:     0x7fa2d07d92b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   1:     0x7fa2d083443f - core[312ac71b0bf3b0f8]::fmt::write
   2:     0x7fa2d07cda45 - <std[1d76cb1c77b3bcf9]::sys::pal::unix::stdio::Stderr as std[1d76cb1c77b3bcf9]::io::Write>::write_fmt
   3:     0x7fa2d07d9095 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::print
   4:     0x7fa2d07dc21a - std[1d76cb1c77b3bcf9]::panicking::default_hook::{closure#1}
   5:     0x7fa2d07dbf1d - std[1d76cb1c77b3bcf9]::panicking::default_hook
   6:     0x7fa2d14f8887 - <alloc[f412646fbe367a2a]::boxed::Box<rustc_driver_impl[f34b86435b85c73f]::install_ice_hook::{closure#0}> as core[312ac71b0bf3b0f8]::ops::function::Fn<(&dyn for<'a, 'b> core[312ac71b0bf3b0f8]::ops::function::Fn<(&'a core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[312ac71b0bf3b0f8]::marker::Send + core[312ac71b0bf3b0f8]::marker::Sync, &core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo)>>::call
   7:     0x7fa2d07dc8b4 - std[1d76cb1c77b3bcf9]::panicking::rust_panic_with_hook
   8:     0x7fa2d4575fa6 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}
   9:     0x7fa2d4573a96 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_end_short_backtrace::<std[1d76cb1c77b3bcf9]::panicking::begin_panic<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}, !>
  10:     0x7fa2d1452b66 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>
  11:     0x7fa2d459ca81 - <rustc_errors[46ae0c69022fa984]::diagnostic::BugAbort as rustc_errors[46ae0c69022fa984]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7fa2d430534c - <rustc_errors[46ae0c69022fa984]::DiagCtxt>::bug::<alloc[f412646fbe367a2a]::string::String>
  14:     0x7fa2d42708ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7fa2d42708ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7fa2d4270868 - rustc_middle[139079db273fad99]::ty::context::tls::with_context_opt::<rustc_middle[139079db273fad99]::ty::context::tls::with_opt<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7fa2d13ed622 - rustc_middle[139079db273fad99]::util::bug::bug_fmt
  17:     0x7fa2d23b4161 - <rustc_const_eval[4a96549c701c6b0d]::interpret::eval_context::InterpCx<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7fa2d24d5077 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7fa2d24e60f3 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7fa2d2f73ec4 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7fa2d30ceeaa - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7fa2d32b78a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  23:     0x7fa2d30a04b5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7fa2d24e45b2 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7fa2d2f76484 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7fa2d30cf9ca - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7fa2d32b78a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  28:     0x7fa2d30a05d5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fa2d4220e72 - <rustc_middle[139079db273fad99]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7fa2d1deb4a1 - std[1d76cb1c77b3bcf9]::panicking::try::<(), core[312ac71b0bf3b0f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[9eb656ccfb2bc23c]::sync::parallel::enabled::par_for_each_in<&rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId, &[rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId], <rustc_middle[139079db273fad99]::hir::map::Map>::par_body_owners<rustc_hir_analysis[48456f93e78f5699]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>>
  31:     0x7fa2d1d8cadb - rustc_hir_analysis[48456f93e78f5699]::check_crate
  32:     0x7fa2d173ad80 - rustc_interface[e0411719cf2ec05b]::passes::analysis
  34:     0x7fa2d312b481 - <rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7fa2d32a7048 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::SingleCache<rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  36:     0x7fa2d3210c7d - rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7fa2d14fb6fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  37:     0x7fa2d14fb6fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  38:     0x7fa2d15054da - <rustc_interface[e0411719cf2ec05b]::interface::Compiler>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}, core[312ac71b0bf3b0f8]::result::Result<core[312ac71b0bf3b0f8]::option::Option<rustc_interface[e0411719cf2ec05b]::queries::Linker>, rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  39:     0x7fa2d14dff1a - rustc_span[86b7e0b91b4d1a92]::set_source_map::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7fa2d14dcc81 - rustc_interface[e0411719cf2ec05b]::interface::run_compiler::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7fa2d14d2ad2 - <scoped_tls[5bd90a827ed9096a]::ScopedKey<rustc_span[86b7e0b91b4d1a92]::SessionGlobals>>::set::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  42:     0x7fa2d14e8dd4 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  43:     0x7fa2d14eb831 - <<std[1d76cb1c77b3bcf9]::thread::Builder>::spawn_unchecked_<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#1} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7fa2d07e808e - <std[1d76cb1c77b3bcf9]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7fa2d0663120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (249e88809 2024-02-26) 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 -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 [eval_to_allocation_raw] const-evaluating + checking `mutable::C`
#1 [eval_to_const_value_raw] simplifying constant for the type system `mutable::C`
end of query stack
error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0080`.
For more information about this error, try `rustc --explain E0080`.
------------------------------------------


---- [ui] tests/ui/consts/miri_unleashed/const_refers_to_static.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.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" "--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/consts/miri_unleashed/const_refers_to_static" "-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/consts/miri_unleashed/const_refers_to_static/auxiliary" "-Zunleash-the-miri-inside-of-you"
--- stderr -------------------------------
error[E0080]: evaluation of constant value failed
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:10:5
   |
   |
LL |     FOO.fetch_add(1, Ordering::Relaxed) //~ERROR evaluation of constant value failed
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ calling non-const function `AtomicUsize::fetch_add`
error[E0080]: evaluation of constant value failed
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:15:14
   |
   |
LL |     unsafe { *(&FOO as *const _ as *const usize) } //~ERROR evaluation of constant value failed
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constant accesses mutable global memory
error[E0080]: evaluation of constant value failed
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:19:32
   |
   |
LL | const READ_MUT: u32 = unsafe { MUTABLE }; //~ERROR evaluation of constant value failed
   |                                ^^^^^^^ constant accesses mutable global memory

##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7f20d1afc2b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   0:     0x7f20d1afc2b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   1:     0x7f20d1b5743f - core[312ac71b0bf3b0f8]::fmt::write
   2:     0x7f20d1af0a45 - <std[1d76cb1c77b3bcf9]::sys::pal::unix::stdio::Stderr as std[1d76cb1c77b3bcf9]::io::Write>::write_fmt
   3:     0x7f20d1afc095 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::print
   4:     0x7f20d1aff21a - std[1d76cb1c77b3bcf9]::panicking::default_hook::{closure#1}
   5:     0x7f20d1afef1d - std[1d76cb1c77b3bcf9]::panicking::default_hook
   6:     0x7f20d281b887 - <alloc[f412646fbe367a2a]::boxed::Box<rustc_driver_impl[f34b86435b85c73f]::install_ice_hook::{closure#0}> as core[312ac71b0bf3b0f8]::ops::function::Fn<(&dyn for<'a, 'b> core[312ac71b0bf3b0f8]::ops::function::Fn<(&'a core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[312ac71b0bf3b0f8]::marker::Send + core[312ac71b0bf3b0f8]::marker::Sync, &core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f20d1aff8b4 - std[1d76cb1c77b3bcf9]::panicking::rust_panic_with_hook
   8:     0x7f20d5898fa6 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}
   9:     0x7f20d5896a96 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_end_short_backtrace::<std[1d76cb1c77b3bcf9]::panicking::begin_panic<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}, !>
  10:     0x7f20d2775b66 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>
  11:     0x7f20d58bfa81 - <rustc_errors[46ae0c69022fa984]::diagnostic::BugAbort as rustc_errors[46ae0c69022fa984]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f20d562834c - <rustc_errors[46ae0c69022fa984]::DiagCtxt>::bug::<alloc[f412646fbe367a2a]::string::String>
  14:     0x7f20d55938ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7f20d55938ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7f20d5593868 - rustc_middle[139079db273fad99]::ty::context::tls::with_context_opt::<rustc_middle[139079db273fad99]::ty::context::tls::with_opt<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7f20d2710622 - rustc_middle[139079db273fad99]::util::bug::bug_fmt
  17:     0x7f20d36d7161 - <rustc_const_eval[4a96549c701c6b0d]::interpret::eval_context::InterpCx<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7f20d37f8077 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7f20d38090f3 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7f20d4296ec4 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7f20d43f1eaa - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7f20d45da8a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  23:     0x7f20d43c34b5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7f20d38075b2 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7f20d4299484 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7f20d43f29ca - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7f20d45da8a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  28:     0x7f20d43c35d5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f20d5543e72 - <rustc_middle[139079db273fad99]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7f20d310e4a1 - std[1d76cb1c77b3bcf9]::panicking::try::<(), core[312ac71b0bf3b0f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[9eb656ccfb2bc23c]::sync::parallel::enabled::par_for_each_in<&rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId, &[rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId], <rustc_middle[139079db273fad99]::hir::map::Map>::par_body_owners<rustc_hir_analysis[48456f93e78f5699]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>>
  31:     0x7f20d30afadb - rustc_hir_analysis[48456f93e78f5699]::check_crate
  32:     0x7f20d2a5dd80 - rustc_interface[e0411719cf2ec05b]::passes::analysis
  34:     0x7f20d444e481 - <rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7f20d45ca048 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::SingleCache<rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  36:     0x7f20d4533c7d - rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7f20d281e6fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  37:     0x7f20d281e6fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  38:     0x7f20d28284da - <rustc_interface[e0411719cf2ec05b]::interface::Compiler>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}, core[312ac71b0bf3b0f8]::result::Result<core[312ac71b0bf3b0f8]::option::Option<rustc_interface[e0411719cf2ec05b]::queries::Linker>, rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  39:     0x7f20d2802f1a - rustc_span[86b7e0b91b4d1a92]::set_source_map::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7f20d27ffc81 - rustc_interface[e0411719cf2ec05b]::interface::run_compiler::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7f20d27f5ad2 - <scoped_tls[5bd90a827ed9096a]::ScopedKey<rustc_span[86b7e0b91b4d1a92]::SessionGlobals>>::set::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  42:     0x7f20d280bdd4 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  43:     0x7f20d280e831 - <<std[1d76cb1c77b3bcf9]::thread::Builder>::spawn_unchecked_<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#1} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7f20d1b0b08e - <std[1d76cb1c77b3bcf9]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7f20d1986120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (249e88809 2024-02-26) 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 -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 -Z unleash-the-miri-inside-of-you
query stack during panic:
query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `REF_INTERIOR_MUT`
#1 [eval_to_const_value_raw] simplifying constant for the type system `REF_INTERIOR_MUT`
end of query stack
warning: skipping const checks
   |
help: skipping check for `const_refs_to_static` feature
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:10:5
   |
LL |     FOO.fetch_add(1, Ordering::Relaxed) //~ERROR evaluation of constant value failed
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:10:5
   |
   |
LL |     FOO.fetch_add(1, Ordering::Relaxed) //~ERROR evaluation of constant value failed
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:15:17
   |
   |
LL |     unsafe { *(&FOO as *const _ as *const usize) } //~ERROR evaluation of constant value failed
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:19:32
   |
   |
LL | const READ_MUT: u32 = unsafe { MUTABLE }; //~ERROR evaluation of constant value failed
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:25:18
   |
   |
LL |     unsafe { &*(&FOO as *const _ as *const usize) }
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:30:25
   |
   |
LL | const REF_IMMUT: &u8 = &MY_STATIC;

error: aborting due to 4 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0080`.
For more information about this error, try `rustc --explain E0080`.
------------------------------------------


---- [ui] tests/ui/consts/miri_unleashed/mutable_references_err.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/consts/miri_unleashed/mutable_references_err.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" "--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/consts/miri_unleashed/mutable_references_err" "-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/consts/miri_unleashed/mutable_references_err/auxiliary" "-Zunleash-the-miri-inside-of-you"
--- stderr -------------------------------
error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:17:1
   |
   |
LL | const MUH: Meh = Meh {

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:28:1
   |
   |
LL | const SNEAKY: &dyn Sync = &Synced { x: UnsafeCell::new(42) };

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:33:1
   |
   |
LL | const SUBTLE: &mut i32 = unsafe { &mut FOO };
   | ^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference or box pointing to read-only memory
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
           }

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:36:1
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:36:1
   |
LL | const BLUNT: &mut i32 = &mut 42;

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:41:1
   |
   |
LL | static mut MUT_TO_READONLY: &mut i32 = unsafe { &mut *(&READONLY as *const _ as *mut _) };
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference or box pointing to read-only memory
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
               ╾────alloc13<imm>─────╼                         │ ╾──────╼


##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7fb9967a12b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   0:     0x7fb9967a12b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   1:     0x7fb9967fc43f - core[312ac71b0bf3b0f8]::fmt::write
   2:     0x7fb996795a45 - <std[1d76cb1c77b3bcf9]::sys::pal::unix::stdio::Stderr as std[1d76cb1c77b3bcf9]::io::Write>::write_fmt
   3:     0x7fb9967a1095 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::print
   4:     0x7fb9967a421a - std[1d76cb1c77b3bcf9]::panicking::default_hook::{closure#1}
   5:     0x7fb9967a3f1d - std[1d76cb1c77b3bcf9]::panicking::default_hook
   6:     0x7fb9974c0887 - <alloc[f412646fbe367a2a]::boxed::Box<rustc_driver_impl[f34b86435b85c73f]::install_ice_hook::{closure#0}> as core[312ac71b0bf3b0f8]::ops::function::Fn<(&dyn for<'a, 'b> core[312ac71b0bf3b0f8]::ops::function::Fn<(&'a core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[312ac71b0bf3b0f8]::marker::Send + core[312ac71b0bf3b0f8]::marker::Sync, &core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo)>>::call
   7:     0x7fb9967a48b4 - std[1d76cb1c77b3bcf9]::panicking::rust_panic_with_hook
   8:     0x7fb99a53dfa6 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}
   9:     0x7fb99a53ba96 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_end_short_backtrace::<std[1d76cb1c77b3bcf9]::panicking::begin_panic<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}, !>
  10:     0x7fb99741ab66 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>
  11:     0x7fb99a564a81 - <rustc_errors[46ae0c69022fa984]::diagnostic::BugAbort as rustc_errors[46ae0c69022fa984]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7fb99a2cd34c - <rustc_errors[46ae0c69022fa984]::DiagCtxt>::bug::<alloc[f412646fbe367a2a]::string::String>
  14:     0x7fb99a2388ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7fb99a2388ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7fb99a238868 - rustc_middle[139079db273fad99]::ty::context::tls::with_context_opt::<rustc_middle[139079db273fad99]::ty::context::tls::with_opt<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7fb9973b5622 - rustc_middle[139079db273fad99]::util::bug::bug_fmt
  17:     0x7fb99837c161 - <rustc_const_eval[4a96549c701c6b0d]::interpret::eval_context::InterpCx<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7fb99849d077 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7fb9984ae0f3 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7fb998f3bec4 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7fb999096eaa - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7fb99927f8a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  23:     0x7fb9990684b5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7fb9984ac5b2 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7fb998f3e484 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7fb9990979ca - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7fb99927f8a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  28:     0x7fb9990685d5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fb99a1e8e72 - <rustc_middle[139079db273fad99]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7fb997db34a1 - std[1d76cb1c77b3bcf9]::panicking::try::<(), core[312ac71b0bf3b0f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[9eb656ccfb2bc23c]::sync::parallel::enabled::par_for_each_in<&rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId, &[rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId], <rustc_middle[139079db273fad99]::hir::map::Map>::par_body_owners<rustc_hir_analysis[48456f93e78f5699]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>>
  31:     0x7fb997d54adb - rustc_hir_analysis[48456f93e78f5699]::check_crate
  32:     0x7fb997702d80 - rustc_interface[e0411719cf2ec05b]::passes::analysis
  34:     0x7fb9990f3481 - <rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7fb99926f048 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::SingleCache<rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  36:     0x7fb9991d8c7d - rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7fb9974c36fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  37:     0x7fb9974c36fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  38:     0x7fb9974cd4da - <rustc_interface[e0411719cf2ec05b]::interface::Compiler>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}, core[312ac71b0bf3b0f8]::result::Result<core[312ac71b0bf3b0f8]::option::Option<rustc_interface[e0411719cf2ec05b]::queries::Linker>, rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  39:     0x7fb9974a7f1a - rustc_span[86b7e0b91b4d1a92]::set_source_map::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7fb9974a4c81 - rustc_interface[e0411719cf2ec05b]::interface::run_compiler::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7fb99749aad2 - <scoped_tls[5bd90a827ed9096a]::ScopedKey<rustc_span[86b7e0b91b4d1a92]::SessionGlobals>>::set::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  42:     0x7fb9974b0dd4 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  43:     0x7fb9974b3831 - <<std[1d76cb1c77b3bcf9]::thread::Builder>::spawn_unchecked_<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#1} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7fb9967b008e - <std[1d76cb1c77b3bcf9]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7fb99662b120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (249e88809 2024-02-26) 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 -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 -Z unleash-the-miri-inside-of-you
query stack during panic:
query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `POINTS_TO_MUTABLE1`
#1 [eval_to_const_value_raw] simplifying constant for the type system `POINTS_TO_MUTABLE1`
end of query stack
error[E0080]: evaluation of constant value failed
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:52:43
   |
   |
LL | const POINTS_TO_MUTABLE2: &i32 = unsafe { &*MUTABLE_REF };
   |                                           ^^^^^^^^^^^^^ constant accesses mutable global memory
error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:56:1
   |
LL | const POINTS_TO_MUTABLE_INNER: *const i32 = &mut 42 as *mut _ as *const _;
---

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:60:1
   |
LL | const INTERIOR_MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:72:1
   |
   |
LL | const RAW_SYNC: SyncPtr<AtomicI32> = SyncPtr { x: &AtomicI32::new(42) };

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:74:1
   |
   |
LL | const RAW_MUT_CAST: SyncPtr<i32> = SyncPtr { x: &mut 42 as *mut _ as *const _ };

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:76:1
   |
   |
LL | const RAW_MUT_COERCE: SyncPtr<i32> = SyncPtr { x: &mut 0 };

warning: skipping const checks
   |
help: skipping check that does not even have a feature gate
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:19:8
   |
LL |     x: &UnsafeCell::new(42),
   |        ^^^^^^^^^^^^^^^^^^^^
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:28:27
   |
LL | const SNEAKY: &dyn Sync = &Synced { x: UnsafeCell::new(42) };
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:33:40
   |
   |
LL | const SUBTLE: &mut i32 = unsafe { &mut FOO };
help: skipping check for `const_mut_refs` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:33:35
   |
   |
LL | const SUBTLE: &mut i32 = unsafe { &mut FOO };
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:36:25
   |
   |
LL | const BLUNT: &mut i32 = &mut 42;
help: skipping check for `const_mut_refs` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:41:49
   |
   |
LL | static mut MUT_TO_READONLY: &mut i32 = unsafe { &mut *(&READONLY as *const _ as *mut _) };
help: skipping check for `const_mut_refs` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:41:49
   |
   |
LL | static mut MUT_TO_READONLY: &mut i32 = unsafe { &mut *(&READONLY as *const _ as *mut _) };
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:48:44
   |
   |
LL | const POINTS_TO_MUTABLE1: &i32 = unsafe { &MUTABLE }; //~ERROR: undefined behavior
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:52:45
   |
   |
LL | const POINTS_TO_MUTABLE2: &i32 = unsafe { &*MUTABLE_REF };
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:56:45
   |
LL | const POINTS_TO_MUTABLE_INNER: *const i32 = &mut 42 as *mut _ as *const _;
---
   |                                              ^^^^^^^
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:60:47
   |
LL | const INTERIOR_MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:72:51
   |
   |
LL | const RAW_SYNC: SyncPtr<AtomicI32> = SyncPtr { x: &AtomicI32::new(42) };
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:74:49
   |
   |
LL | const RAW_MUT_CAST: SyncPtr<i32> = SyncPtr { x: &mut 42 as *mut _ as *const _ };
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:76:51
   |
   |
LL | const RAW_MUT_COERCE: SyncPtr<i32> = SyncPtr { x: &mut 0 };

error: aborting due to 13 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0080`.
For more information about this error, try `rustc --explain E0080`.
------------------------------------------


---- [ui] tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.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" "--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/consts/miri_unleashed/const_refers_to_static_cross_crate" "-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/consts/miri_unleashed/const_refers_to_static_cross_crate/auxiliary" "-Zunleash-the-miri-inside-of-you"
--- stderr -------------------------------
--- stderr -------------------------------
##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7f4372a0e2b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   0:     0x7f4372a0e2b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   1:     0x7f4372a6943f - core[312ac71b0bf3b0f8]::fmt::write
   2:     0x7f4372a02a45 - <std[1d76cb1c77b3bcf9]::sys::pal::unix::stdio::Stderr as std[1d76cb1c77b3bcf9]::io::Write>::write_fmt
   3:     0x7f4372a0e095 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::print
   4:     0x7f4372a1121a - std[1d76cb1c77b3bcf9]::panicking::default_hook::{closure#1}
   5:     0x7f4372a10f1d - std[1d76cb1c77b3bcf9]::panicking::default_hook
   6:     0x7f437372d887 - <alloc[f412646fbe367a2a]::boxed::Box<rustc_driver_impl[f34b86435b85c73f]::install_ice_hook::{closure#0}> as core[312ac71b0bf3b0f8]::ops::function::Fn<(&dyn for<'a, 'b> core[312ac71b0bf3b0f8]::ops::function::Fn<(&'a core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[312ac71b0bf3b0f8]::marker::Send + core[312ac71b0bf3b0f8]::marker::Sync, &core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f4372a118b4 - std[1d76cb1c77b3bcf9]::panicking::rust_panic_with_hook
   8:     0x7f43767aafa6 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}
   9:     0x7f43767a8a96 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_end_short_backtrace::<std[1d76cb1c77b3bcf9]::panicking::begin_panic<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}, !>
  10:     0x7f4373687b66 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>
  11:     0x7f43767d1a81 - <rustc_errors[46ae0c69022fa984]::diagnostic::BugAbort as rustc_errors[46ae0c69022fa984]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f437653a34c - <rustc_errors[46ae0c69022fa984]::DiagCtxt>::bug::<alloc[f412646fbe367a2a]::string::String>
  14:     0x7f43764a58ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7f43764a58ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7f43764a5868 - rustc_middle[139079db273fad99]::ty::context::tls::with_context_opt::<rustc_middle[139079db273fad99]::ty::context::tls::with_opt<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7f4373622622 - rustc_middle[139079db273fad99]::util::bug::bug_fmt
  17:     0x7f43745e9161 - <rustc_const_eval[4a96549c701c6b0d]::interpret::eval_context::InterpCx<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7f437470a077 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7f437471b0f3 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7f43751a8ec4 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7f4375303eaa - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7f43754ec8a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  23:     0x7f43752d54b5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7f43747195b2 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7f43751ab484 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7f43753049ca - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7f43754ec8a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  28:     0x7f43752d55d5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f4376455e72 - <rustc_middle[139079db273fad99]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7f43740204a1 - std[1d76cb1c77b3bcf9]::panicking::try::<(), core[312ac71b0bf3b0f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[9eb656ccfb2bc23c]::sync::parallel::enabled::par_for_each_in<&rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId, &[rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId], <rustc_middle[139079db273fad99]::hir::map::Map>::par_body_owners<rustc_hir_analysis[48456f93e78f5699]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>>
  31:     0x7f4373fc1adb - rustc_hir_analysis[48456f93e78f5699]::check_crate
  32:     0x7f437396fd80 - rustc_interface[e0411719cf2ec05b]::passes::analysis
  34:     0x7f4375360481 - <rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7f43754dc048 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::SingleCache<rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  36:     0x7f4375445c7d - rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7f43737306fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  37:     0x7f43737306fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  38:     0x7f437373a4da - <rustc_interface[e0411719cf2ec05b]::interface::Compiler>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}, core[312ac71b0bf3b0f8]::result::Result<core[312ac71b0bf3b0f8]::option::Option<rustc_interface[e0411719cf2ec05b]::queries::Linker>, rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  39:     0x7f4373714f1a - rustc_span[86b7e0b91b4d1a92]::set_source_map::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7f4373711c81 - rustc_interface[e0411719cf2ec05b]::interface::run_compiler::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7f4373707ad2 - <scoped_tls[5bd90a827ed9096a]::ScopedKey<rustc_span[86b7e0b91b4d1a92]::SessionGlobals>>::set::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  42:     0x7f437371ddd4 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  43:     0x7f4373720831 - <<std[1d76cb1c77b3bcf9]::thread::Builder>::spawn_unchecked_<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#1} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7f4372a1d08e - <std[1d76cb1c77b3bcf9]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7f4372898120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (249e88809 2024-02-26) 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 -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 -Z unleash-the-miri-inside-of-you
query stack during panic:
query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `SLICE_MUT`
#1 [eval_to_const_value_raw] simplifying constant for the type system `SLICE_MUT`
end of query stack
end of query stack
##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7f4372a0e2b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   0:     0x7f4372a0e2b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   1:     0x7f4372a6943f - core[312ac71b0bf3b0f8]::fmt::write
   2:     0x7f4372a02a45 - <std[1d76cb1c77b3bcf9]::sys::pal::unix::stdio::Stderr as std[1d76cb1c77b3bcf9]::io::Write>::write_fmt
   3:     0x7f4372a0e095 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::print
   4:     0x7f4372a1121a - std[1d76cb1c77b3bcf9]::panicking::default_hook::{closure#1}
   5:     0x7f4372a10f1d - std[1d76cb1c77b3bcf9]::panicking::default_hook
   6:     0x7f437372d887 - <alloc[f412646fbe367a2a]::boxed::Box<rustc_driver_impl[f34b86435b85c73f]::install_ice_hook::{closure#0}> as core[312ac71b0bf3b0f8]::ops::function::Fn<(&dyn for<'a, 'b> core[312ac71b0bf3b0f8]::ops::function::Fn<(&'a core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[312ac71b0bf3b0f8]::marker::Send + core[312ac71b0bf3b0f8]::marker::Sync, &core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f4372a118b4 - std[1d76cb1c77b3bcf9]::panicking::rust_panic_with_hook
   8:     0x7f43767aafa6 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}
   9:     0x7f43767a8a96 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_end_short_backtrace::<std[1d76cb1c77b3bcf9]::panicking::begin_panic<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}, !>
  10:     0x7f4373687b66 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>
  11:     0x7f43767d1a81 - <rustc_errors[46ae0c69022fa984]::diagnostic::BugAbort as rustc_errors[46ae0c69022fa984]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f437653a34c - <rustc_errors[46ae0c69022fa984]::DiagCtxt>::bug::<alloc[f412646fbe367a2a]::string::String>
  14:     0x7f43764a58ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7f43764a58ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7f43764a5868 - rustc_middle[139079db273fad99]::ty::context::tls::with_context_opt::<rustc_middle[139079db273fad99]::ty::context::tls::with_opt<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7f4373622622 - rustc_middle[139079db273fad99]::util::bug::bug_fmt
  17:     0x7f43745e9161 - <rustc_const_eval[4a96549c701c6b0d]::interpret::eval_context::InterpCx<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7f437470a077 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7f437471b0f3 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7f43751a8ec4 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7f4375303eaa - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7f43754ec8a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  23:     0x7f43752d54b5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7f43747195b2 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7f43751ab484 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7f43753049ca - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7f43754ec8a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  28:     0x7f43752d55d5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f4376455e72 - <rustc_middle[139079db273fad99]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7f43740204a1 - std[1d76cb1c77b3bcf9]::panicking::try::<(), core[312ac71b0bf3b0f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[9eb656ccfb2bc23c]::sync::parallel::enabled::par_for_each_in<&rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId, &[rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId], <rustc_middle[139079db273fad99]::hir::map::Map>::par_body_owners<rustc_hir_analysis[48456f93e78f5699]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>>
  31:     0x7f4373fc1adb - rustc_hir_analysis[48456f93e78f5699]::check_crate
  32:     0x7f437396fd80 - rustc_interface[e0411719cf2ec05b]::passes::analysis
  34:     0x7f4375360481 - <rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7f43754dc048 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::SingleCache<rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  36:     0x7f4375445c7d - rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7f43737306fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  37:     0x7f43737306fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  38:     0x7f437373a4da - <rustc_interface[e0411719cf2ec05b]::interface::Compiler>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}, core[312ac71b0bf3b0f8]::result::Result<core[312ac71b0bf3b0f8]::option::Option<rustc_interface[e0411719cf2ec05b]::queries::Linker>, rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  39:     0x7f4373714f1a - rustc_span[86b7e0b91b4d1a92]::set_source_map::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7f4373711c81 - rustc_interface[e0411719cf2ec05b]::interface::run_compiler::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7f4373707ad2 - <scoped_tls[5bd90a827ed9096a]::ScopedKey<rustc_span[86b7e0b91b4d1a92]::SessionGlobals>>::set::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  42:     0x7f437371ddd4 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  43:     0x7f4373720831 - <<std[1d76cb1c77b3bcf9]::thread::Builder>::spawn_unchecked_<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#1} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7f4372a1d08e - <std[1d76cb1c77b3bcf9]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7f4372898120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (249e88809 2024-02-26) 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 -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 -Z unleash-the-miri-inside-of-you
query stack during panic:
query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `U8_MUT`
#1 [eval_to_const_value_raw] simplifying constant for the type system `U8_MUT`
end of query stack
end of query stack
##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7f4372a0e2b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   0:     0x7f4372a0e2b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   1:     0x7f4372a6943f - core[312ac71b0bf3b0f8]::fmt::write
   2:     0x7f4372a02a45 - <std[1d76cb1c77b3bcf9]::sys::pal::unix::stdio::Stderr as std[1d76cb1c77b3bcf9]::io::Write>::write_fmt
   3:     0x7f4372a0e095 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::print
   4:     0x7f4372a1121a - std[1d76cb1c77b3bcf9]::panicking::default_hook::{closure#1}
   5:     0x7f4372a10f1d - std[1d76cb1c77b3bcf9]::panicking::default_hook
   6:     0x7f437372d887 - <alloc[f412646fbe367a2a]::boxed::Box<rustc_driver_impl[f34b86435b85c73f]::install_ice_hook::{closure#0}> as core[312ac71b0bf3b0f8]::ops::function::Fn<(&dyn for<'a, 'b> core[312ac71b0bf3b0f8]::ops::function::Fn<(&'a core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[312ac71b0bf3b0f8]::marker::Send + core[312ac71b0bf3b0f8]::marker::Sync, &core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f4372a118b4 - std[1d76cb1c77b3bcf9]::panicking::rust_panic_with_hook
   8:     0x7f43767aafa6 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}
   9:     0x7f43767a8a96 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_end_short_backtrace::<std[1d76cb1c77b3bcf9]::panicking::begin_panic<rustc_errors[46ae0c69022fa984]::ExplicitBug>::{closure#0}, !>
  10:     0x7f4373687b66 - std[1d76cb1c77b3bcf9]::panicking::begin_panic::<rustc_errors[46ae0c69022fa984]::ExplicitBug>
  11:     0x7f43767d1a81 - <rustc_errors[46ae0c69022fa984]::diagnostic::BugAbort as rustc_errors[46ae0c69022fa984]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f437653a34c - <rustc_errors[46ae0c69022fa984]::DiagCtxt>::bug::<alloc[f412646fbe367a2a]::string::String>
  14:     0x7f43764a58ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7f43764a58ba - rustc_middle[139079db273fad99]::ty::context::tls::with_opt::<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7f43764a5868 - rustc_middle[139079db273fad99]::ty::context::tls::with_context_opt::<rustc_middle[139079db273fad99]::ty::context::tls::with_opt<rustc_middle[139079db273fad99]::util::bug::opt_span_bug_fmt<rustc_span[86b7e0b91b4d1a92]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7f4373622622 - rustc_middle[139079db273fad99]::util::bug::bug_fmt
  17:     0x7f43745e9161 - <rustc_const_eval[4a96549c701c6b0d]::interpret::eval_context::InterpCx<rustc_const_eval[4a96549c701c6b0d]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7f437470a077 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7f437471b0f3 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7f43751a8ec4 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7f4375303eaa - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7f43754ec8a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  23:     0x7f43752d54b5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7f43747195b2 - rustc_const_eval[4a96549c701c6b0d]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7f43751ab484 - rustc_query_impl[62c531a8b939a51e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7f43753049ca - <rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7f43754ec8a7 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::DefaultCache<rustc_middle[139079db273fad99]::ty::ParamEnvAnd<rustc_middle[139079db273fad99]::mir::interpret::GlobalId>, rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  28:     0x7f43752d55d5 - rustc_query_impl[62c531a8b939a51e]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f4376455e72 - <rustc_middle[139079db273fad99]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7f43740204a1 - std[1d76cb1c77b3bcf9]::panicking::try::<(), core[312ac71b0bf3b0f8]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[9eb656ccfb2bc23c]::sync::parallel::enabled::par_for_each_in<&rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId, &[rustc_span[86b7e0b91b4d1a92]::def_id::LocalDefId], <rustc_middle[139079db273fad99]::hir::map::Map>::par_body_owners<rustc_hir_analysis[48456f93e78f5699]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>>
  31:     0x7f4373fc1adb - rustc_hir_analysis[48456f93e78f5699]::check_crate
  32:     0x7f437396fd80 - rustc_interface[e0411719cf2ec05b]::passes::analysis
  34:     0x7f4375360481 - <rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::dynamic_query::{closure#2} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<(rustc_middle[139079db273fad99]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7f43754dc048 - rustc_query_system[e0def22fac9397cb]::query::plumbing::try_execute_query::<rustc_query_impl[62c531a8b939a51e]::DynamicConfig<rustc_query_system[e0def22fac9397cb]::query::caches::SingleCache<rustc_middle[139079db273fad99]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[62c531a8b939a51e]::plumbing::QueryCtxt, false>
  36:     0x7f4375445c7d - rustc_query_impl[62c531a8b939a51e]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7f43737306fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  37:     0x7f43737306fa - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  38:     0x7f437373a4da - <rustc_interface[e0411719cf2ec05b]::interface::Compiler>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}, core[312ac71b0bf3b0f8]::result::Result<core[312ac71b0bf3b0f8]::option::Option<rustc_interface[e0411719cf2ec05b]::queries::Linker>, rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  39:     0x7f4373714f1a - rustc_span[86b7e0b91b4d1a92]::set_source_map::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7f4373711c81 - rustc_interface[e0411719cf2ec05b]::interface::run_compiler::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7f4373707ad2 - <scoped_tls[5bd90a827ed9096a]::ScopedKey<rustc_span[86b7e0b91b4d1a92]::SessionGlobals>>::set::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  42:     0x7f437371ddd4 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  43:     0x7f4373720831 - <<std[1d76cb1c77b3bcf9]::thread::Builder>::spawn_unchecked_<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#1} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7f4372a1d08e - <std[1d76cb1c77b3bcf9]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7f4372898120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (249e88809 2024-02-26) 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 -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 -Z unleash-the-miri-inside-of-you
query stack during panic:
query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `U8_MUT2`
#1 [eval_to_const_value_raw] simplifying constant for the type system `U8_MUT2`
end of query stack
error[E0080]: evaluation of constant value failed
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:29:15
   |
   |
LL |         match static_cross_crate::OPT_ZERO {
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constant accesses mutable global memory
warning: skipping const checks
   |
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:14:15
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:14:15
   |
LL |     unsafe { &static_cross_crate::ZERO }
   |               ^^^^^^^^^^^^^^^^^^^^^^^^
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:19:15
   |
LL |     unsafe { &static_cross_crate::ZERO[0] }
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:25:17
   |
   |
LL |     unsafe { &(*static_cross_crate::ZERO_REF)[0] }
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:29:15
   |
LL |         match static_cross_crate::OPT_ZERO {
---
diff of stderr:

64   --> $DIR/E0017.rs:18:1
65    |
66 LL | static STATIC_MUT_REF: &'static mut i32 = unsafe { &mut M };
-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference in a `const` or `static`
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference or box pointing to read-only memory
68    |
69    = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
70    = note: the raw bytes of the constant  {

The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0017/E0017.stderr
To update references, rerun the tests and pass the `--bless` flag
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args error-codes/E0017.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/error-codes/E0017.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" "--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/error-codes/E0017" "-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/error-codes/E0017/auxiliary"
--- stderr -------------------------------
warning: creating a mutable reference to mutable static is discouraged
##[warning]  --> /checkout/tests/ui/error-codes/E0017.rs:18:52
   |
   |
LL | static STATIC_MUT_REF: &'static mut i32 = unsafe { &mut M };
   |
   = note: for more information, see issue #114447 <https://github.com/rust-lang/rust/issues/114447>
   = note: this will be a hard error in the 2024 edition
   = note: this will be a hard error in the 2024 edition
   = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
   = note: `#[warn(static_mut_refs)]` on by default
   |
   |
LL | static STATIC_MUT_REF: &'static mut i32 = unsafe { addr_of_mut!(M) };

warning: taking a mutable reference to a `const` item
##[warning]  --> /checkout/tests/ui/error-codes/E0017.rs:10:30
   |
   |
LL | const CR: &'static mut i32 = &mut C; //~ ERROR mutable references are not allowed
   |
   |
   = note: each usage of a `const` item creates a new temporary
   = note: the mutable reference will refer to this temporary, not the original `const` item
note: `const` item defined here
   |
LL | const C: i32 = 2;
   | ^^^^^^^^^^^^
   = note: `#[warn(const_item_mutation)]` on by default
   = note: `#[warn(const_item_mutation)]` on by default

error[E0764]: mutable references are not allowed in the final value of constants
##[error]  --> /checkout/tests/ui/error-codes/E0017.rs:10:30
   |
LL | const CR: &'static mut i32 = &mut C; //~ ERROR mutable references are not allowed


error[E0596]: cannot borrow immutable static item `X` as mutable
   |
   |
LL | static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR cannot borrow immutable static item `X` as mutable
   |                                       ^^^^^^ cannot borrow as mutable
warning: taking a mutable reference to a `const` item
##[warning]  --> /checkout/tests/ui/error-codes/E0017.rs:15:38
   |
   |
LL | static CONST_REF: &'static mut i32 = &mut C; //~ ERROR mutable references are not allowed
   |
   |
   = note: each usage of a `const` item creates a new temporary
   = note: the mutable reference will refer to this temporary, not the original `const` item
note: `const` item defined here
   |
LL | const C: i32 = 2;
   | ^^^^^^^^^^^^


error[E0764]: mutable references are not allowed in the final value of statics
##[error]  --> /checkout/tests/ui/error-codes/E0017.rs:15:38
   |
LL | static CONST_REF: &'static mut i32 = &mut C; //~ ERROR mutable references are not allowed

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/error-codes/E0017.rs:18:1
   |
   |
LL | static STATIC_MUT_REF: &'static mut i32 = unsafe { &mut M };
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference or box pointing to read-only memory
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
           }

error: aborting due to 4 previous errors; 3 warnings emitted

---
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at compiler/rustc_codegen_llvm/src/debuginfo/metadata/type_map.rs:58:9:
assertion `left == right` failed
  left: std::option::Option<Alias(Weak, AliasTy { args: [], def_id: DefId(0:3 ~ debug_ty_with_weak[dc4b]::Debuggable) })>
 right: std::option::Option<u32>
   0:     0x7fe96a0a82b9 - <std[1d76cb1c77b3bcf9]::sys_common::backtrace::_print::DisplayBacktrace as core[312ac71b0bf3b0f8]::fmt::Display>::fmt
   1:     0x7fe96a10343f - core[312ac71b0bf3b0f8]::fmt::write
   2:     0x7fe96a09ca45 - <std[1d76cb1c77b3bcf9]::sys::pal::unix::stdio::Stderr as std[1d76cb1c77b3bcf9]::io::Write>::write_fmt
   3:     0x7fe96a0a8095 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::print
   3:     0x7fe96a0a8095 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::print
   4:     0x7fe96a0ab21a - std[1d76cb1c77b3bcf9]::panicking::default_hook::{closure#1}
   5:     0x7fe96a0aaf1d - std[1d76cb1c77b3bcf9]::panicking::default_hook
   6:     0x7fe96adc7887 - <alloc[f412646fbe367a2a]::boxed::Box<rustc_driver_impl[f34b86435b85c73f]::install_ice_hook::{closure#0}> as core[312ac71b0bf3b0f8]::ops::function::Fn<(&dyn for<'a, 'b> core[312ac71b0bf3b0f8]::ops::function::Fn<(&'a core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[312ac71b0bf3b0f8]::marker::Send + core[312ac71b0bf3b0f8]::marker::Sync, &core[312ac71b0bf3b0f8]::panic::panic_info::PanicInfo)>>::call
   8:     0x7fe96a0ab642 - std[1d76cb1c77b3bcf9]::panicking::begin_panic_handler::{closure#0}
   9:     0x7fe96a0a8846 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_end_short_backtrace::<std[1d76cb1c77b3bcf9]::panicking::begin_panic_handler::{closure#0}, !>
  10:     0x7fe96a0ab394 - rust_begin_unwind
  11:     0x7fe96a063365 - core[312ac71b0bf3b0f8]::panicking::panic_fmt
  11:     0x7fe96a063365 - core[312ac71b0bf3b0f8]::panicking::panic_fmt
  12:     0x7fe96a06387b - core[312ac71b0bf3b0f8]::panicking::assert_failed_inner
  13:     0x7fe96a99225f - core[312ac71b0bf3b0f8]::panicking::assert_failed::<rustc_middle[139079db273fad99]::ty::Ty, rustc_middle[139079db273fad99]::ty::Ty>
  14:     0x7fe96b1ddc0b - rustc_codegen_llvm[7dfaf8df52c4fe6]::debuginfo::metadata::type_di_node
  15:     0x7fe96b1e343c - rustc_codegen_llvm[7dfaf8df52c4fe6]::debuginfo::metadata::build_global_var_di_node
  16:     0x7fe96b1f0977 - <rustc_codegen_llvm[7dfaf8df52c4fe6]::context::CodegenCx as rustc_codegen_ssa[ca4ae4546c21be59]::traits::statics::StaticMethods>::codegen_static
  17:     0x7fe96b1cf569 - <rustc_middle[139079db273fad99]::mir::mono::MonoItem as rustc_codegen_ssa[ca4ae4546c21be59]::mono_item::MonoItemExt>::define::<rustc_codegen_llvm[7dfaf8df52c4fe6]::builder::Builder>
  18:     0x7fe96b095e54 - rustc_codegen_llvm[7dfaf8df52c4fe6]::base::compile_codegen_unit::module_codegen
  19:     0x7fe96b094d92 - rustc_codegen_llvm[7dfaf8df52c4fe6]::base::compile_codegen_unit
  20:     0x7fe96b17fdcf - rustc_codegen_ssa[ca4ae4546c21be59]::base::codegen_crate::<rustc_codegen_llvm[7dfaf8df52c4fe6]::LlvmCodegenBackend>
  21:     0x7fe96b14d819 - <rustc_codegen_llvm[7dfaf8df52c4fe6]::LlvmCodegenBackend as rustc_codegen_ssa[ca4ae4546c21be59]::traits::backend::CodegenBackend>::codegen_crate
  22:     0x7fe96af7d6b3 - <rustc_session[12b20ec9e9ee3e8b]::session::Session>::time::<alloc[f412646fbe367a2a]::boxed::Box<dyn core[312ac71b0bf3b0f8]::any::Any>, rustc_interface[e0411719cf2ec05b]::passes::start_codegen::{closure#0}>
  23:     0x7fe96b00aa06 - rustc_interface[e0411719cf2ec05b]::passes::start_codegen
  24:     0x7fe96b00d98c - <rustc_middle[139079db273fad99]::ty::context::GlobalCtxt>::enter::<<rustc_interface[e0411719cf2ec05b]::queries::Queries>::codegen_and_build_linker::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<rustc_interface[e0411719cf2ec05b]::queries::Linker, rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  25:     0x7fe96af9eb90 - <rustc_interface[e0411719cf2ec05b]::queries::Queries>::codegen_and_build_linker
  26:     0x7fe96add4544 - <rustc_interface[e0411719cf2ec05b]::interface::Compiler>::enter::<rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}::{closure#1}, core[312ac71b0bf3b0f8]::result::Result<core[312ac71b0bf3b0f8]::option::Option<rustc_interface[e0411719cf2ec05b]::queries::Linker>, rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  27:     0x7fe96adaef1a - rustc_span[86b7e0b91b4d1a92]::set_source_map::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  28:     0x7fe96adabc81 - rustc_interface[e0411719cf2ec05b]::interface::run_compiler::<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}
  29:     0x7fe96ada1ad2 - <scoped_tls[5bd90a827ed9096a]::ScopedKey<rustc_span[86b7e0b91b4d1a92]::SessionGlobals>>::set::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  30:     0x7fe96adb7dd4 - std[1d76cb1c77b3bcf9]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>
  31:     0x7fe96adba831 - <<std[1d76cb1c77b3bcf9]::thread::Builder>::spawn_unchecked_<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_with_globals<rustc_interface[e0411719cf2ec05b]::util::run_in_thread_pool_with_globals<rustc_interface[e0411719cf2ec05b]::interface::run_compiler<core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>, rustc_driver_impl[f34b86435b85c73f]::run_compiler::{closure#0}>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[312ac71b0bf3b0f8]::result::Result<(), rustc_span[86b7e0b91b4d1a92]::ErrorGuaranteed>>::{closure#1} as core[312ac71b0bf3b0f8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:     0x7fe96a0b708e - <std[1d76cb1c77b3bcf9]::sys::pal::unix::thread::Thread>::new::thread_start
  34:     0x7fe969f32120 - <unknown>
  35:                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: rustc 1.78.0-nightly (249e88809 2024-02-26) 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 -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 --crate-type lib -C debuginfo=2
Build completed unsuccessfully in 0:13:01
query stack during panic:
end of query stack
------------------------------------------

rust-log-analyzer avatar Feb 26 '24 23:02 rust-log-analyzer

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

Click to see the possible cause of the failure (guessed by this bot)
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_eab9e62c-0236-4352-b881-3e797621cfc6
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
GITHUB_HEAD_REF=unique_static_innards2
GITHUB_JOB=pr
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_eab9e62c-0236-4352-b881-3e797621cfc6
GITHUB_REF=refs/pull/121644/merge
GITHUB_REF_NAME=121644/merge
GITHUB_REF_PROTECTED=false
---
#12 writing image sha256:c754fbd6ef8312c2b02cd4ff2ff99e607d62ae0546ce718f4d97ead4053dd58f done
#12 naming to docker.io/library/rust-ci done
#12 DONE 10.2s
##[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-16]
##[group]Clock drift check
  local time: Tue Feb 27 00:05:20 UTC 2024
  network time: Tue, 27 Feb 2024 00:05:20 GMT
  network time: Tue, 27 Feb 2024 00:05:20 GMT
##[endgroup]
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-16', '--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', '--set', 'build.optimized-compiler-builtins', '--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-16/bin/llvm-config
configure: llvm.link-shared     := True
configure: rust.thin-lto-import-instr-limit := 10
configure: change-id            := 99999999
---
........................................................................................  3344/16221
............F...........................................................................  3432/16221
..FF....................................................................................  3520/16221
........................................................................................  3608/16221
.....................................F.F.........F......................................  3696/16221
........................................................................................  3872/16221
.........................................i..............................................  3960/16221
...i....................................................................................  4048/16221
........................................................................................  4136/16221
---
diff of stderr:

2   --> $DIR/mut_ref_in_final_dynamic_check.rs:20:1
3    |
4 LL | const MUT: Option<&mut i32> = helper();
-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference in a `const` or `static`
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference or box pointing to read-only memory
6    |
7    = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
8    = note: the raw bytes of the constant (size: $SIZE, align: $ALIGN) {
13   --> $DIR/mut_ref_in_final_dynamic_check.rs:22:1
14    |
14    |
15 LL | static MUT_STATIC: Option<&mut i32> = helper();
-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference in a `const` or `static`
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference or box pointing to read-only memory
17    |
18    = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
19    = note: the raw bytes of the constant (size: $SIZE, align: $ALIGN) {

The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check/mut_ref_in_final_dynamic_check.stderr
To update references, rerun the tests and pass the `--bless` flag
---
--- stderr -------------------------------
error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:20:1
   |
LL | const MUT: Option<&mut i32> = helper(); //~ ERROR it is undefined behavior to use this value
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference or box pointing to read-only memory
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
           }

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:22:1
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:22:1
   |
LL | static MUT_STATIC: Option<&mut i32> = helper(); //~ ERROR it is undefined behavior to use this value
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered mutable reference or box pointing to read-only memory
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
           }

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:29:1
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:29:1
   |
LL | const INT2PTR: Option<&mut i32> = helper_int2ptr(); //~ ERROR it is undefined behavior to use this value
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered a dangling reference (0x2a[noalloc] has no provenance)
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
               2a 00 00 00 00 00 00 00                         │ *.......

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:31:1
   |
   |
LL | static INT2PTR_STATIC: Option<&mut i32> = helper_int2ptr(); //~ ERROR it is undefined behavior to use this value
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<enum-variant(Some)>.0: encountered a dangling reference (0x2a[noalloc] has no provenance)
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
               2a 00 00 00 00 00 00 00                         │ *.......

error: encountered dangling pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:38:1
   |
   |
LL | const DANGLING: Option<&mut i32> = helper_dangling(); //~ ERROR encountered dangling pointer

error: encountered dangling pointer in final value of static
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:39:1
   |
   |
LL | static DANGLING_STATIC: Option<&mut i32> = helper_dangling(); //~ ERROR encountered dangling pointer

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs:45:1
   |
   |
LL | static MUTEX: Mutex<&mut [u8]> = Mutex::new(unsafe { &mut *MUT_ARRAY }); //~ ERROR it is undefined behavior to use this value
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .data.value: encountered mutable reference in a `const` or `static`
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 24, align: 8) {
               0x00 │ 00 00 00 00 00 __ __ __ ╾───────alloc17───────╼ │ .....░░░╾──────╼
               0x10 │ 01 00 00 00 00 00 00 00                         │ ........

error: aborting due to 7 previous errors

For more information about this error, try `rustc --explain E0080`.
For more information about this error, try `rustc --explain E0080`.
------------------------------------------


---- [ui] tests/ui/consts/const_refs_to_static_fail_invalid.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/consts/const_refs_to_static_fail_invalid.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" "--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/consts/const_refs_to_static_fail_invalid" "-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/consts/const_refs_to_static_fail_invalid/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0080]: it is undefined behavior to use this value
error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const_refs_to_static_fail_invalid.rs:9:5
   |
LL |     const C: &bool = unsafe { std::mem::transmute(&S) };
   |     ^^^^^^^^^^^^^^ constructing invalid value at .<deref>: encountered 0x0a, but expected a boolean
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
               ╾─────alloc1<imm>─────╼                         │ ╾──────╼

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/const_refs_to_static_fail_invalid.rs:25:5
   |
   |
LL |     const C: &i8 = unsafe { &S };
   |     ^^^^^^^^^^^^ constructing invalid value: encountered reference to `extern` static in `const`
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
               ╾─────alloc4<imm>─────╼                         │ ╾──────╼


##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7f5b074122b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   0:     0x7f5b074122b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   1:     0x7f5b0746d43f - core[861902fd3c033c90]::fmt::write
   2:     0x7f5b07406a45 - <std[b6f487efc86ca625]::sys::pal::unix::stdio::Stderr as std[b6f487efc86ca625]::io::Write>::write_fmt
   3:     0x7f5b07412095 - std[b6f487efc86ca625]::sys_common::backtrace::print
   4:     0x7f5b0741521a - std[b6f487efc86ca625]::panicking::default_hook::{closure#1}
   5:     0x7f5b07414f1d - std[b6f487efc86ca625]::panicking::default_hook
   6:     0x7f5b0812ec07 - <alloc[91de0e057e1c11f]::boxed::Box<rustc_driver_impl[79ea70740cc02544]::install_ice_hook::{closure#0}> as core[861902fd3c033c90]::ops::function::Fn<(&dyn for<'a, 'b> core[861902fd3c033c90]::ops::function::Fn<(&'a core[861902fd3c033c90]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[861902fd3c033c90]::marker::Send + core[861902fd3c033c90]::marker::Sync, &core[861902fd3c033c90]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f5b074158b4 - std[b6f487efc86ca625]::panicking::rust_panic_with_hook
   8:     0x7f5b0b1c3146 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}
   9:     0x7f5b0b1c0c36 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_end_short_backtrace::<std[b6f487efc86ca625]::panicking::begin_panic<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}, !>
  10:     0x7f5b080890d6 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>
  11:     0x7f5b0b1cb291 - <rustc_errors[fbe628ac2ab6a1be]::diagnostic::BugAbort as rustc_errors[fbe628ac2ab6a1be]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f5b0b001cfc - <rustc_errors[fbe628ac2ab6a1be]::DiagCtxt>::bug::<alloc[91de0e057e1c11f]::string::String>
  14:     0x7f5b0aef8e6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7f5b0aef8e6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7f5b0aef8e18 - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_context_opt::<rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7f5b0802b482 - rustc_middle[d6cd3fa73c7e86c4]::util::bug::bug_fmt
  17:     0x7f5b08fea9b1 - <rustc_const_eval[f545879c9492943c]::interpret::eval_context::InterpCx<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7f5b090b69a7 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7f5b090c7a23 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7f5b09baa364 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7f5b09c8ffaa - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7f5b09f13537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  23:     0x7f5b09e63715 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7f5b090c5ee2 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7f5b09bac924 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7f5b09c90aca - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7f5b09f13537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  28:     0x7f5b09e63cc5 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f5b0ae88322 - <rustc_middle[d6cd3fa73c7e86c4]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7f5b08a29901 - std[b6f487efc86ca625]::panicking::try::<(), core[861902fd3c033c90]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[4de1980145f34dd6]::sync::parallel::enabled::par_for_each_in<&rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId, &[rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId], <rustc_middle[d6cd3fa73c7e86c4]::hir::map::Map>::par_body_owners<rustc_hir_analysis[dd5367d1de3bebbd]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>>
  31:     0x7f5b089c33cb - rustc_hir_analysis[dd5367d1de3bebbd]::check_crate
  32:     0x7f5b08371360 - rustc_interface[3b8294f27996ad7c]::passes::analysis
  33:     0x7f5b09bb7313 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>
  34:     0x7f5b09cbfd51 - <rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7f5b09edc5c8 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::SingleCache<rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  36:     0x7f5b09e870cd - rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7f5b08131c5a - <rustc_middle[d6cd3fa73c7e86c4]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  38:     0x7f5b0813ba4a - <rustc_interface[3b8294f27996ad7c]::interface::Compiler>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}, core[861902fd3c033c90]::result::Result<core[861902fd3c033c90]::option::Option<rustc_interface[3b8294f27996ad7c]::queries::Linker>, rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  39:     0x7f5b0811647a - rustc_span[ad7ee7b70df4802b]::set_source_map::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7f5b081131e1 - rustc_interface[3b8294f27996ad7c]::interface::run_compiler::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7f5b08109032 - <scoped_tls[b05a1034bf8df359]::ScopedKey<rustc_span[ad7ee7b70df4802b]::SessionGlobals>>::set::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  42:     0x7f5b0811f3a4 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  43:     0x7f5b08121d91 - <<std[b6f487efc86ca625]::thread::Builder>::spawn_unchecked_<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#1} as core[861902fd3c033c90]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7f5b0742108e - <std[b6f487efc86ca625]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7f5b0729c120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (4da33134a 2024-02-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 -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 [eval_to_allocation_raw] const-evaluating + checking `mutable::C`
#1 [eval_to_const_value_raw] simplifying constant for the type system `mutable::C`
end of query stack
error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0080`.
For more information about this error, try `rustc --explain E0080`.
------------------------------------------


---- [ui] tests/ui/consts/const_refs_to_static_fail.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/consts/const_refs_to_static_fail.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" "--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/consts/const_refs_to_static_fail" "-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/consts/const_refs_to_static_fail/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at compiler/rustc_const_eval/src/interpret/validity.rs:718:65:
thread 'rustc' panicked at compiler/rustc_const_eval/src/interpret/validity.rs:718:65:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0:     0x7fdebb61c2b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   1:     0x7fdebb67743f - core[861902fd3c033c90]::fmt::write
   2:     0x7fdebb610a45 - <std[b6f487efc86ca625]::sys::pal::unix::stdio::Stderr as std[b6f487efc86ca625]::io::Write>::write_fmt
   3:     0x7fdebb61c095 - std[b6f487efc86ca625]::sys_common::backtrace::print
   4:     0x7fdebb61f21a - std[b6f487efc86ca625]::panicking::default_hook::{closure#1}
   5:     0x7fdebb61ef1d - std[b6f487efc86ca625]::panicking::default_hook
   6:     0x7fdebc338c07 - <alloc[91de0e057e1c11f]::boxed::Box<rustc_driver_impl[79ea70740cc02544]::install_ice_hook::{closure#0}> as core[861902fd3c033c90]::ops::function::Fn<(&dyn for<'a, 'b> core[861902fd3c033c90]::ops::function::Fn<(&'a core[861902fd3c033c90]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[861902fd3c033c90]::marker::Send + core[861902fd3c033c90]::marker::Sync, &core[861902fd3c033c90]::panic::panic_info::PanicInfo)>>::call
   7:     0x7fdebb61f8b4 - std[b6f487efc86ca625]::panicking::rust_panic_with_hook
   8:     0x7fdebb61f609 - std[b6f487efc86ca625]::panicking::begin_panic_handler::{closure#0}
   9:     0x7fdebb61c846 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_end_short_backtrace::<std[b6f487efc86ca625]::panicking::begin_panic_handler::{closure#0}, !>
  11:     0x7fdebb5d7365 - core[861902fd3c033c90]::panicking::panic_fmt
  12:     0x7fdebb5d7423 - core[861902fd3c033c90]::panicking::panic
  13:     0x7fdebb5d72b6 - core[861902fd3c033c90]::option::unwrap_failed
  13:     0x7fdebb5d72b6 - core[861902fd3c033c90]::option::unwrap_failed
  14:     0x7fdebd2cacd3 - <rustc_const_eval[f545879c9492943c]::interpret::validity::ValidityVisitor<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter>>::in_mutable_memory
  15:     0x7fdebd2cb173 - <rustc_const_eval[f545879c9492943c]::interpret::validity::ValidityVisitor<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[f545879c9492943c]::interpret::visitor::ValueVisitor<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter>>::visit_value
  16:     0x7fdebd2ccbd3 - <rustc_const_eval[f545879c9492943c]::interpret::validity::ValidityVisitor<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter> as rustc_const_eval[f545879c9492943c]::interpret::visitor::ValueVisitor<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter>>::walk_value
  17:     0x7fdebd1f3c84 - <rustc_const_eval[f545879c9492943c]::interpret::eval_context::InterpCx<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7fdebd2c09a7 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7fdebd2d1a23 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7fdebddb4364 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7fdebde99faa - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7fdebe11d537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  23:     0x7fdebe06d715 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7fdebd2cfee2 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7fdebddb6924 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7fdebde9aaca - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7fdebe11d537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  28:     0x7fdebe06dcc5 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fdebf092322 - <rustc_middle[d6cd3fa73c7e86c4]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7fdebcc33901 - std[b6f487efc86ca625]::panicking::try::<(), core[861902fd3c033c90]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[4de1980145f34dd6]::sync::parallel::enabled::par_for_each_in<&rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId, &[rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId], <rustc_middle[d6cd3fa73c7e86c4]::hir::map::Map>::par_body_owners<rustc_hir_analysis[dd5367d1de3bebbd]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>>
  31:     0x7fdebcbcd3cb - rustc_hir_analysis[dd5367d1de3bebbd]::check_crate
  32:     0x7fdebc57b360 - rustc_interface[3b8294f27996ad7c]::passes::analysis
  33:     0x7fdebddc1313 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>
  34:     0x7fdebdec9d51 - <rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7fdebe0e65c8 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::SingleCache<rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  36:     0x7fdebe0910cd - rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7fdebc33bc5a - <rustc_middle[d6cd3fa73c7e86c4]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  38:     0x7fdebc345a4a - <rustc_interface[3b8294f27996ad7c]::interface::Compiler>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}, core[861902fd3c033c90]::result::Result<core[861902fd3c033c90]::option::Option<rustc_interface[3b8294f27996ad7c]::queries::Linker>, rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  39:     0x7fdebc32047a - rustc_span[ad7ee7b70df4802b]::set_source_map::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7fdebc31d1e1 - rustc_interface[3b8294f27996ad7c]::interface::run_compiler::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7fdebc313032 - <scoped_tls[b05a1034bf8df359]::ScopedKey<rustc_span[ad7ee7b70df4802b]::SessionGlobals>>::set::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  42:     0x7fdebc3293a4 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  43:     0x7fdebc32bd91 - <<std[b6f487efc86ca625]::thread::Builder>::spawn_unchecked_<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#1} as core[861902fd3c033c90]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7fdebb62b08e - <std[b6f487efc86ca625]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7fdebb4a6120 - <unknown>
  47:                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: rustc 1.78.0-nightly (4da33134a 2024-02-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 -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 [eval_to_allocation_raw] const-evaluating + checking `C1`
#1 [eval_to_const_value_raw] simplifying constant for the type system `C1`
end of query stack
error[E0080]: evaluation of constant value failed
##[error]  --> /checkout/tests/ui/consts/const_refs_to_static_fail.rs:16:13
   |
   |
LL |     assert!(*C2 == 0); //~ERROR evaluation of constant value failed
   |             ^^^ constant accesses mutable global memory
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0080`.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/consts/miri_unleashed/const_refers_to_static.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.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" "--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/consts/miri_unleashed/const_refers_to_static" "-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/consts/miri_unleashed/const_refers_to_static/auxiliary" "-Zunleash-the-miri-inside-of-you"
--- stderr -------------------------------
error[E0080]: evaluation of constant value failed
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:10:5
   |
   |
LL |     FOO.fetch_add(1, Ordering::Relaxed) //~ERROR evaluation of constant value failed
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ calling non-const function `AtomicUsize::fetch_add`
error[E0080]: evaluation of constant value failed
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:15:14
   |
   |
LL |     unsafe { *(&FOO as *const _ as *const usize) } //~ERROR evaluation of constant value failed
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constant accesses mutable global memory
error[E0080]: evaluation of constant value failed
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:19:32
   |
   |
LL | const READ_MUT: u32 = unsafe { MUTABLE }; //~ERROR evaluation of constant value failed
   |                                ^^^^^^^ constant accesses mutable global memory

##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7f50a3d322b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   0:     0x7f50a3d322b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   1:     0x7f50a3d8d43f - core[861902fd3c033c90]::fmt::write
   2:     0x7f50a3d26a45 - <std[b6f487efc86ca625]::sys::pal::unix::stdio::Stderr as std[b6f487efc86ca625]::io::Write>::write_fmt
   3:     0x7f50a3d32095 - std[b6f487efc86ca625]::sys_common::backtrace::print
   4:     0x7f50a3d3521a - std[b6f487efc86ca625]::panicking::default_hook::{closure#1}
   5:     0x7f50a3d34f1d - std[b6f487efc86ca625]::panicking::default_hook
   6:     0x7f50a4a4ec07 - <alloc[91de0e057e1c11f]::boxed::Box<rustc_driver_impl[79ea70740cc02544]::install_ice_hook::{closure#0}> as core[861902fd3c033c90]::ops::function::Fn<(&dyn for<'a, 'b> core[861902fd3c033c90]::ops::function::Fn<(&'a core[861902fd3c033c90]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[861902fd3c033c90]::marker::Send + core[861902fd3c033c90]::marker::Sync, &core[861902fd3c033c90]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f50a3d358b4 - std[b6f487efc86ca625]::panicking::rust_panic_with_hook
   8:     0x7f50a7ae3146 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}
   9:     0x7f50a7ae0c36 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_end_short_backtrace::<std[b6f487efc86ca625]::panicking::begin_panic<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}, !>
  10:     0x7f50a49a90d6 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>
  11:     0x7f50a7aeb291 - <rustc_errors[fbe628ac2ab6a1be]::diagnostic::BugAbort as rustc_errors[fbe628ac2ab6a1be]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f50a7921cfc - <rustc_errors[fbe628ac2ab6a1be]::DiagCtxt>::bug::<alloc[91de0e057e1c11f]::string::String>
  14:     0x7f50a7818e6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7f50a7818e6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7f50a7818e18 - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_context_opt::<rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7f50a494b482 - rustc_middle[d6cd3fa73c7e86c4]::util::bug::bug_fmt
  17:     0x7f50a590a9b1 - <rustc_const_eval[f545879c9492943c]::interpret::eval_context::InterpCx<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7f50a59d69a7 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7f50a59e7a23 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7f50a64ca364 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7f50a65affaa - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7f50a6833537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  23:     0x7f50a6783715 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7f50a59e5ee2 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7f50a64cc924 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7f50a65b0aca - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7f50a6833537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  28:     0x7f50a6783cc5 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f50a77a8322 - <rustc_middle[d6cd3fa73c7e86c4]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7f50a5349901 - std[b6f487efc86ca625]::panicking::try::<(), core[861902fd3c033c90]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[4de1980145f34dd6]::sync::parallel::enabled::par_for_each_in<&rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId, &[rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId], <rustc_middle[d6cd3fa73c7e86c4]::hir::map::Map>::par_body_owners<rustc_hir_analysis[dd5367d1de3bebbd]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>>
  31:     0x7f50a52e33cb - rustc_hir_analysis[dd5367d1de3bebbd]::check_crate
  32:     0x7f50a4c91360 - rustc_interface[3b8294f27996ad7c]::passes::analysis
  33:     0x7f50a64d7313 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>
  34:     0x7f50a65dfd51 - <rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7f50a67fc5c8 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::SingleCache<rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  36:     0x7f50a67a70cd - rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7f50a4a51c5a - <rustc_middle[d6cd3fa73c7e86c4]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  38:     0x7f50a4a5ba4a - <rustc_interface[3b8294f27996ad7c]::interface::Compiler>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}, core[861902fd3c033c90]::result::Result<core[861902fd3c033c90]::option::Option<rustc_interface[3b8294f27996ad7c]::queries::Linker>, rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  39:     0x7f50a4a3647a - rustc_span[ad7ee7b70df4802b]::set_source_map::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7f50a4a331e1 - rustc_interface[3b8294f27996ad7c]::interface::run_compiler::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7f50a4a29032 - <scoped_tls[b05a1034bf8df359]::ScopedKey<rustc_span[ad7ee7b70df4802b]::SessionGlobals>>::set::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  42:     0x7f50a4a3f3a4 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  43:     0x7f50a4a41d91 - <<std[b6f487efc86ca625]::thread::Builder>::spawn_unchecked_<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#1} as core[861902fd3c033c90]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7f50a3d4108e - <std[b6f487efc86ca625]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7f50a3bbc120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (4da33134a 2024-02-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 -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 -Z unleash-the-miri-inside-of-you
query stack during panic:
query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `REF_INTERIOR_MUT`
#1 [eval_to_const_value_raw] simplifying constant for the type system `REF_INTERIOR_MUT`
end of query stack
warning: skipping const checks
   |
help: skipping check for `const_refs_to_static` feature
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:10:5
   |
LL |     FOO.fetch_add(1, Ordering::Relaxed) //~ERROR evaluation of constant value failed
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:10:5
   |
   |
LL |     FOO.fetch_add(1, Ordering::Relaxed) //~ERROR evaluation of constant value failed
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:15:17
   |
   |
LL |     unsafe { *(&FOO as *const _ as *const usize) } //~ERROR evaluation of constant value failed
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:19:32
   |
   |
LL | const READ_MUT: u32 = unsafe { MUTABLE }; //~ERROR evaluation of constant value failed
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:25:18
   |
   |
LL |     unsafe { &*(&FOO as *const _ as *const usize) }
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static.rs:30:25
   |
   |
LL | const REF_IMMUT: &u8 = &MY_STATIC;

error: aborting due to 4 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0080`.
For more information about this error, try `rustc --explain E0080`.
------------------------------------------


---- [ui] tests/ui/consts/miri_unleashed/mutable_references_err.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/consts/miri_unleashed/mutable_references_err.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" "--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/consts/miri_unleashed/mutable_references_err" "-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/consts/miri_unleashed/mutable_references_err/auxiliary" "-Zunleash-the-miri-inside-of-you"
--- stderr -------------------------------
error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:17:1
   |
   |
LL | const MUH: Meh = Meh {

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:28:1
   |
   |
LL | const SNEAKY: &dyn Sync = &Synced { x: UnsafeCell::new(42) };

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:33:1
   |
   |
LL | const SUBTLE: &mut i32 = unsafe { &mut FOO };
   | ^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference or box pointing to read-only memory
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
           }

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:36:1
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:36:1
   |
LL | const BLUNT: &mut i32 = &mut 42;

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:41:1
   |
   |
LL | static mut MUT_TO_READONLY: &mut i32 = unsafe { &mut *(&READONLY as *const _ as *mut _) };
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference or box pointing to read-only memory
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
               ╾────alloc13<imm>─────╼                         │ ╾──────╼


##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7f1ecdc0a2b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   0:     0x7f1ecdc0a2b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   1:     0x7f1ecdc6543f - core[861902fd3c033c90]::fmt::write
   2:     0x7f1ecdbfea45 - <std[b6f487efc86ca625]::sys::pal::unix::stdio::Stderr as std[b6f487efc86ca625]::io::Write>::write_fmt
   3:     0x7f1ecdc0a095 - std[b6f487efc86ca625]::sys_common::backtrace::print
   4:     0x7f1ecdc0d21a - std[b6f487efc86ca625]::panicking::default_hook::{closure#1}
   5:     0x7f1ecdc0cf1d - std[b6f487efc86ca625]::panicking::default_hook
   6:     0x7f1ece926c07 - <alloc[91de0e057e1c11f]::boxed::Box<rustc_driver_impl[79ea70740cc02544]::install_ice_hook::{closure#0}> as core[861902fd3c033c90]::ops::function::Fn<(&dyn for<'a, 'b> core[861902fd3c033c90]::ops::function::Fn<(&'a core[861902fd3c033c90]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[861902fd3c033c90]::marker::Send + core[861902fd3c033c90]::marker::Sync, &core[861902fd3c033c90]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f1ecdc0d8b4 - std[b6f487efc86ca625]::panicking::rust_panic_with_hook
   8:     0x7f1ed19bb146 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}
   9:     0x7f1ed19b8c36 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_end_short_backtrace::<std[b6f487efc86ca625]::panicking::begin_panic<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}, !>
  10:     0x7f1ece8810d6 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>
  11:     0x7f1ed19c3291 - <rustc_errors[fbe628ac2ab6a1be]::diagnostic::BugAbort as rustc_errors[fbe628ac2ab6a1be]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f1ed17f9cfc - <rustc_errors[fbe628ac2ab6a1be]::DiagCtxt>::bug::<alloc[91de0e057e1c11f]::string::String>
  14:     0x7f1ed16f0e6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7f1ed16f0e6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7f1ed16f0e18 - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_context_opt::<rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7f1ece823482 - rustc_middle[d6cd3fa73c7e86c4]::util::bug::bug_fmt
  17:     0x7f1ecf7e29b1 - <rustc_const_eval[f545879c9492943c]::interpret::eval_context::InterpCx<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7f1ecf8ae9a7 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7f1ecf8bfa23 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7f1ed03a2364 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7f1ed0487faa - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7f1ed070b537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  23:     0x7f1ed065b715 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7f1ecf8bdee2 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7f1ed03a4924 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7f1ed0488aca - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7f1ed070b537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  28:     0x7f1ed065bcc5 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7f1ed1680322 - <rustc_middle[d6cd3fa73c7e86c4]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7f1ecf221901 - std[b6f487efc86ca625]::panicking::try::<(), core[861902fd3c033c90]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[4de1980145f34dd6]::sync::parallel::enabled::par_for_each_in<&rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId, &[rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId], <rustc_middle[d6cd3fa73c7e86c4]::hir::map::Map>::par_body_owners<rustc_hir_analysis[dd5367d1de3bebbd]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>>
  31:     0x7f1ecf1bb3cb - rustc_hir_analysis[dd5367d1de3bebbd]::check_crate
  32:     0x7f1eceb69360 - rustc_interface[3b8294f27996ad7c]::passes::analysis
  33:     0x7f1ed03af313 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>
  34:     0x7f1ed04b7d51 - <rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7f1ed06d45c8 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::SingleCache<rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  36:     0x7f1ed067f0cd - rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7f1ece929c5a - <rustc_middle[d6cd3fa73c7e86c4]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  38:     0x7f1ece933a4a - <rustc_interface[3b8294f27996ad7c]::interface::Compiler>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}, core[861902fd3c033c90]::result::Result<core[861902fd3c033c90]::option::Option<rustc_interface[3b8294f27996ad7c]::queries::Linker>, rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  39:     0x7f1ece90e47a - rustc_span[ad7ee7b70df4802b]::set_source_map::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7f1ece90b1e1 - rustc_interface[3b8294f27996ad7c]::interface::run_compiler::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7f1ece901032 - <scoped_tls[b05a1034bf8df359]::ScopedKey<rustc_span[ad7ee7b70df4802b]::SessionGlobals>>::set::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  42:     0x7f1ece9173a4 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  43:     0x7f1ece919d91 - <<std[b6f487efc86ca625]::thread::Builder>::spawn_unchecked_<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#1} as core[861902fd3c033c90]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7f1ecdc1908e - <std[b6f487efc86ca625]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7f1ecda94120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (4da33134a 2024-02-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 -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 -Z unleash-the-miri-inside-of-you
query stack during panic:
query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `POINTS_TO_MUTABLE1`
#1 [eval_to_const_value_raw] simplifying constant for the type system `POINTS_TO_MUTABLE1`
end of query stack
error[E0080]: evaluation of constant value failed
---

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:60:1
   |
LL | const INTERIOR_MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:72:1
   |
   |
LL | const RAW_SYNC: SyncPtr<AtomicI32> = SyncPtr { x: &AtomicI32::new(42) };

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:74:1
   |
   |
LL | const RAW_MUT_CAST: SyncPtr<i32> = SyncPtr { x: &mut 42 as *mut _ as *const _ };

error: encountered mutable pointer in final value of constant
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:76:1
   |
   |
LL | const RAW_MUT_COERCE: SyncPtr<i32> = SyncPtr { x: &mut 0 };

warning: skipping const checks
   |
help: skipping check that does not even have a feature gate
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:19:8
   |
LL |     x: &UnsafeCell::new(42),
   |        ^^^^^^^^^^^^^^^^^^^^
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:28:27
   |
LL | const SNEAKY: &dyn Sync = &Synced { x: UnsafeCell::new(42) };
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:33:40
   |
   |
LL | const SUBTLE: &mut i32 = unsafe { &mut FOO };
help: skipping check for `const_mut_refs` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:33:35
   |
   |
LL | const SUBTLE: &mut i32 = unsafe { &mut FOO };
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:36:25
   |
   |
LL | const BLUNT: &mut i32 = &mut 42;
help: skipping check for `const_mut_refs` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:41:49
   |
   |
LL | static mut MUT_TO_READONLY: &mut i32 = unsafe { &mut *(&READONLY as *const _ as *mut _) };
help: skipping check for `const_mut_refs` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:41:49
   |
   |
LL | static mut MUT_TO_READONLY: &mut i32 = unsafe { &mut *(&READONLY as *const _ as *mut _) };
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:48:44
   |
   |
LL | const POINTS_TO_MUTABLE1: &i32 = unsafe { &MUTABLE }; //~ERROR: undefined behavior
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:52:45
   |
   |
LL | const POINTS_TO_MUTABLE2: &i32 = unsafe { &*MUTABLE_REF };
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:56:45
   |
LL | const POINTS_TO_MUTABLE_INNER: *const i32 = &mut 42 as *mut _ as *const _;
---
   |                                              ^^^^^^^
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:60:47
   |
LL | const INTERIOR_MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:72:51
   |
   |
LL | const RAW_SYNC: SyncPtr<AtomicI32> = SyncPtr { x: &AtomicI32::new(42) };
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:74:49
   |
   |
LL | const RAW_MUT_CAST: SyncPtr<i32> = SyncPtr { x: &mut 42 as *mut _ as *const _ };
help: skipping check that does not even have a feature gate
  --> /checkout/tests/ui/consts/miri_unleashed/mutable_references_err.rs:76:51
   |
   |
LL | const RAW_MUT_COERCE: SyncPtr<i32> = SyncPtr { x: &mut 0 };

error: aborting due to 13 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0080`.
For more information about this error, try `rustc --explain E0080`.
------------------------------------------


---- [ui] tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.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" "--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/consts/miri_unleashed/const_refers_to_static_cross_crate" "-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/consts/miri_unleashed/const_refers_to_static_cross_crate/auxiliary" "-Zunleash-the-miri-inside-of-you"
--- stderr -------------------------------
--- stderr -------------------------------
##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7fd3523e82b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   0:     0x7fd3523e82b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   1:     0x7fd35244343f - core[861902fd3c033c90]::fmt::write
   2:     0x7fd3523dca45 - <std[b6f487efc86ca625]::sys::pal::unix::stdio::Stderr as std[b6f487efc86ca625]::io::Write>::write_fmt
   3:     0x7fd3523e8095 - std[b6f487efc86ca625]::sys_common::backtrace::print
Build completed unsuccessfully in 0:13:03
   4:     0x7fd3523eb21a - std[b6f487efc86ca625]::panicking::default_hook::{closure#1}
   5:     0x7fd3523eaf1d - std[b6f487efc86ca625]::panicking::default_hook
   6:     0x7fd353104c07 - <alloc[91de0e057e1c11f]::boxed::Box<rustc_driver_impl[79ea70740cc02544]::install_ice_hook::{closure#0}> as core[861902fd3c033c90]::ops::function::Fn<(&dyn for<'a, 'b> core[861902fd3c033c90]::ops::function::Fn<(&'a core[861902fd3c033c90]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[861902fd3c033c90]::marker::Send + core[861902fd3c033c90]::marker::Sync, &core[861902fd3c033c90]::panic::panic_info::PanicInfo)>>::call
   7:     0x7fd3523eb8b4 - std[b6f487efc86ca625]::panicking::rust_panic_with_hook
   8:     0x7fd356199146 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}
   9:     0x7fd356196c36 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_end_short_backtrace::<std[b6f487efc86ca625]::panicking::begin_panic<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}, !>
  10:     0x7fd35305f0d6 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>
  11:     0x7fd3561a1291 - <rustc_errors[fbe628ac2ab6a1be]::diagnostic::BugAbort as rustc_errors[fbe628ac2ab6a1be]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7fd355fd7cfc - <rustc_errors[fbe628ac2ab6a1be]::DiagCtxt>::bug::<alloc[91de0e057e1c11f]::string::String>
  14:     0x7fd355ecee6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7fd355ecee6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7fd355ecee18 - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_context_opt::<rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7fd353001482 - rustc_middle[d6cd3fa73c7e86c4]::util::bug::bug_fmt
  17:     0x7fd353fc09b1 - <rustc_const_eval[f545879c9492943c]::interpret::eval_context::InterpCx<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7fd35408c9a7 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7fd35409da23 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7fd354b80364 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7fd354c65faa - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7fd354ee9537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  23:     0x7fd354e39715 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7fd35409bee2 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7fd354b82924 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7fd354c66aca - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7fd354ee9537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  28:     0x7fd354e39cc5 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fd355e5e322 - <rustc_middle[d6cd3fa73c7e86c4]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7fd3539ff901 - std[b6f487efc86ca625]::panicking::try::<(), core[861902fd3c033c90]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[4de1980145f34dd6]::sync::parallel::enabled::par_for_each_in<&rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId, &[rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId], <rustc_middle[d6cd3fa73c7e86c4]::hir::map::Map>::par_body_owners<rustc_hir_analysis[dd5367d1de3bebbd]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>>
  31:     0x7fd3539993cb - rustc_hir_analysis[dd5367d1de3bebbd]::check_crate
  32:     0x7fd353347360 - rustc_interface[3b8294f27996ad7c]::passes::analysis
  33:     0x7fd354b8d313 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>
  34:     0x7fd354c95d51 - <rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7fd354eb25c8 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::SingleCache<rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  36:     0x7fd354e5d0cd - rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7fd353107c5a - <rustc_middle[d6cd3fa73c7e86c4]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  38:     0x7fd353111a4a - <rustc_interface[3b8294f27996ad7c]::interface::Compiler>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}, core[861902fd3c033c90]::result::Result<core[861902fd3c033c90]::option::Option<rustc_interface[3b8294f27996ad7c]::queries::Linker>, rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  39:     0x7fd3530ec47a - rustc_span[ad7ee7b70df4802b]::set_source_map::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7fd3530e91e1 - rustc_interface[3b8294f27996ad7c]::interface::run_compiler::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7fd3530df032 - <scoped_tls[b05a1034bf8df359]::ScopedKey<rustc_span[ad7ee7b70df4802b]::SessionGlobals>>::set::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  42:     0x7fd3530f53a4 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  43:     0x7fd3530f7d91 - <<std[b6f487efc86ca625]::thread::Builder>::spawn_unchecked_<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#1} as core[861902fd3c033c90]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7fd3523f708e - <std[b6f487efc86ca625]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7fd352272120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (4da33134a 2024-02-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 -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 -Z unleash-the-miri-inside-of-you
query stack during panic:
query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `SLICE_MUT`
#1 [eval_to_const_value_raw] simplifying constant for the type system `SLICE_MUT`
end of query stack
end of query stack
##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7fd3523e82b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   0:     0x7fd3523e82b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   1:     0x7fd35244343f - core[861902fd3c033c90]::fmt::write
   2:     0x7fd3523dca45 - <std[b6f487efc86ca625]::sys::pal::unix::stdio::Stderr as std[b6f487efc86ca625]::io::Write>::write_fmt
   3:     0x7fd3523e8095 - std[b6f487efc86ca625]::sys_common::backtrace::print
   4:     0x7fd3523eb21a - std[b6f487efc86ca625]::panicking::default_hook::{closure#1}
   5:     0x7fd3523eaf1d - std[b6f487efc86ca625]::panicking::default_hook
   6:     0x7fd353104c07 - <alloc[91de0e057e1c11f]::boxed::Box<rustc_driver_impl[79ea70740cc02544]::install_ice_hook::{closure#0}> as core[861902fd3c033c90]::ops::function::Fn<(&dyn for<'a, 'b> core[861902fd3c033c90]::ops::function::Fn<(&'a core[861902fd3c033c90]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[861902fd3c033c90]::marker::Send + core[861902fd3c033c90]::marker::Sync, &core[861902fd3c033c90]::panic::panic_info::PanicInfo)>>::call
   7:     0x7fd3523eb8b4 - std[b6f487efc86ca625]::panicking::rust_panic_with_hook
   8:     0x7fd356199146 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}
   9:     0x7fd356196c36 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_end_short_backtrace::<std[b6f487efc86ca625]::panicking::begin_panic<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}, !>
  10:     0x7fd35305f0d6 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>
  11:     0x7fd3561a1291 - <rustc_errors[fbe628ac2ab6a1be]::diagnostic::BugAbort as rustc_errors[fbe628ac2ab6a1be]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7fd355fd7cfc - <rustc_errors[fbe628ac2ab6a1be]::DiagCtxt>::bug::<alloc[91de0e057e1c11f]::string::String>
  14:     0x7fd355ecee6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7fd355ecee6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7fd355ecee18 - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_context_opt::<rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7fd353001482 - rustc_middle[d6cd3fa73c7e86c4]::util::bug::bug_fmt
  17:     0x7fd353fc09b1 - <rustc_const_eval[f545879c9492943c]::interpret::eval_context::InterpCx<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7fd35408c9a7 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7fd35409da23 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7fd354b80364 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7fd354c65faa - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7fd354ee9537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  23:     0x7fd354e39715 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7fd35409bee2 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7fd354b82924 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7fd354c66aca - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7fd354ee9537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  28:     0x7fd354e39cc5 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fd355e5e322 - <rustc_middle[d6cd3fa73c7e86c4]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7fd3539ff901 - std[b6f487efc86ca625]::panicking::try::<(), core[861902fd3c033c90]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[4de1980145f34dd6]::sync::parallel::enabled::par_for_each_in<&rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId, &[rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId], <rustc_middle[d6cd3fa73c7e86c4]::hir::map::Map>::par_body_owners<rustc_hir_analysis[dd5367d1de3bebbd]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>>
  31:     0x7fd3539993cb - rustc_hir_analysis[dd5367d1de3bebbd]::check_crate
  32:     0x7fd353347360 - rustc_interface[3b8294f27996ad7c]::passes::analysis
  33:     0x7fd354b8d313 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>
  34:     0x7fd354c95d51 - <rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7fd354eb25c8 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::SingleCache<rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  36:     0x7fd354e5d0cd - rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7fd353107c5a - <rustc_middle[d6cd3fa73c7e86c4]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  38:     0x7fd353111a4a - <rustc_interface[3b8294f27996ad7c]::interface::Compiler>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}, core[861902fd3c033c90]::result::Result<core[861902fd3c033c90]::option::Option<rustc_interface[3b8294f27996ad7c]::queries::Linker>, rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  39:     0x7fd3530ec47a - rustc_span[ad7ee7b70df4802b]::set_source_map::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7fd3530e91e1 - rustc_interface[3b8294f27996ad7c]::interface::run_compiler::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7fd3530df032 - <scoped_tls[b05a1034bf8df359]::ScopedKey<rustc_span[ad7ee7b70df4802b]::SessionGlobals>>::set::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  42:     0x7fd3530f53a4 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  43:     0x7fd3530f7d91 - <<std[b6f487efc86ca625]::thread::Builder>::spawn_unchecked_<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#1} as core[861902fd3c033c90]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7fd3523f708e - <std[b6f487efc86ca625]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7fd352272120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (4da33134a 2024-02-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 -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 -Z unleash-the-miri-inside-of-you
query stack during panic:
query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `U8_MUT`
#1 [eval_to_const_value_raw] simplifying constant for the type system `U8_MUT`
end of query stack
end of query stack
##[error]error: internal compiler error: compiler/rustc_const_eval/src/interpret/validity.rs:1001:17: Unexpected error during validation: constant accesses mutable global memory
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
Box<dyn Any>
stack backtrace:
   0:     0x7fd3523e82b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   0:     0x7fd3523e82b9 - <std[b6f487efc86ca625]::sys_common::backtrace::_print::DisplayBacktrace as core[861902fd3c033c90]::fmt::Display>::fmt
   1:     0x7fd35244343f - core[861902fd3c033c90]::fmt::write
   2:     0x7fd3523dca45 - <std[b6f487efc86ca625]::sys::pal::unix::stdio::Stderr as std[b6f487efc86ca625]::io::Write>::write_fmt
   3:     0x7fd3523e8095 - std[b6f487efc86ca625]::sys_common::backtrace::print
   4:     0x7fd3523eb21a - std[b6f487efc86ca625]::panicking::default_hook::{closure#1}
   5:     0x7fd3523eaf1d - std[b6f487efc86ca625]::panicking::default_hook
   6:     0x7fd353104c07 - <alloc[91de0e057e1c11f]::boxed::Box<rustc_driver_impl[79ea70740cc02544]::install_ice_hook::{closure#0}> as core[861902fd3c033c90]::ops::function::Fn<(&dyn for<'a, 'b> core[861902fd3c033c90]::ops::function::Fn<(&'a core[861902fd3c033c90]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[861902fd3c033c90]::marker::Send + core[861902fd3c033c90]::marker::Sync, &core[861902fd3c033c90]::panic::panic_info::PanicInfo)>>::call
   7:     0x7fd3523eb8b4 - std[b6f487efc86ca625]::panicking::rust_panic_with_hook
   8:     0x7fd356199146 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}
   9:     0x7fd356196c36 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_end_short_backtrace::<std[b6f487efc86ca625]::panicking::begin_panic<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>::{closure#0}, !>
  10:     0x7fd35305f0d6 - std[b6f487efc86ca625]::panicking::begin_panic::<rustc_errors[fbe628ac2ab6a1be]::ExplicitBug>
  11:     0x7fd3561a1291 - <rustc_errors[fbe628ac2ab6a1be]::diagnostic::BugAbort as rustc_errors[fbe628ac2ab6a1be]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7fd355fd7cfc - <rustc_errors[fbe628ac2ab6a1be]::DiagCtxt>::bug::<alloc[91de0e057e1c11f]::string::String>
  14:     0x7fd355ecee6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7fd355ecee6a - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt::<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7fd355ecee18 - rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_context_opt::<rustc_middle[d6cd3fa73c7e86c4]::ty::context::tls::with_opt<rustc_middle[d6cd3fa73c7e86c4]::util::bug::opt_span_bug_fmt<rustc_span[ad7ee7b70df4802b]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7fd353001482 - rustc_middle[d6cd3fa73c7e86c4]::util::bug::bug_fmt
  17:     0x7fd353fc09b1 - <rustc_const_eval[f545879c9492943c]::interpret::eval_context::InterpCx<rustc_const_eval[f545879c9492943c]::const_eval::machine::CompileTimeInterpreter>>::validate_operand_internal
  18:     0x7fd35408c9a7 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_in_interpreter
  19:     0x7fd35409da23 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_allocation_raw_provider
  20:     0x7fd354b80364 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  21:     0x7fd354c65faa - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  22:     0x7fd354ee9537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  23:     0x7fd354e39715 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7fd35409bee2 - rustc_const_eval[f545879c9492943c]::const_eval::eval_queries::eval_to_const_value_raw_provider
  25:     0x7fd354b82924 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>
  26:     0x7fd354c66aca - <rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>)>>::call_once
  27:     0x7fd354ee9537 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::DefaultCache<rustc_middle[d6cd3fa73c7e86c4]::ty::ParamEnvAnd<rustc_middle[d6cd3fa73c7e86c4]::mir::interpret::GlobalId>, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  28:     0x7fd354e39cc5 - rustc_query_impl[f01c2069284bf3d3]::query_impl::eval_to_const_value_raw::get_query_non_incr::__rust_end_short_backtrace
  29:     0x7fd355e5e322 - <rustc_middle[d6cd3fa73c7e86c4]::query::plumbing::TyCtxtEnsure>::const_eval_poly
  30:     0x7fd3539ff901 - std[b6f487efc86ca625]::panicking::try::<(), core[861902fd3c033c90]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[4de1980145f34dd6]::sync::parallel::enabled::par_for_each_in<&rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId, &[rustc_span[ad7ee7b70df4802b]::def_id::LocalDefId], <rustc_middle[d6cd3fa73c7e86c4]::hir::map::Map>::par_body_owners<rustc_hir_analysis[dd5367d1de3bebbd]::check_crate::{closure#5}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>>
  31:     0x7fd3539993cb - rustc_hir_analysis[dd5367d1de3bebbd]::check_crate
  32:     0x7fd353347360 - rustc_interface[3b8294f27996ad7c]::passes::analysis
  33:     0x7fd354b8d313 - rustc_query_impl[f01c2069284bf3d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>
  34:     0x7fd354c95d51 - <rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::dynamic_query::{closure#2} as core[861902fd3c033c90]::ops::function::FnOnce<(rustc_middle[d6cd3fa73c7e86c4]::ty::context::TyCtxt, ())>>::call_once
  35:     0x7fd354eb25c8 - rustc_query_system[bb2f116e86d672a8]::query::plumbing::try_execute_query::<rustc_query_impl[f01c2069284bf3d3]::DynamicConfig<rustc_query_system[bb2f116e86d672a8]::query::caches::SingleCache<rustc_middle[d6cd3fa73c7e86c4]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f01c2069284bf3d3]::plumbing::QueryCtxt, false>
  36:     0x7fd354e5d0cd - rustc_query_impl[f01c2069284bf3d3]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7fd353107c5a - <rustc_middle[d6cd3fa73c7e86c4]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  38:     0x7fd353111a4a - <rustc_interface[3b8294f27996ad7c]::interface::Compiler>::enter::<rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}::{closure#1}, core[861902fd3c033c90]::result::Result<core[861902fd3c033c90]::option::Option<rustc_interface[3b8294f27996ad7c]::queries::Linker>, rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  39:     0x7fd3530ec47a - rustc_span[ad7ee7b70df4802b]::set_source_map::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  40:     0x7fd3530e91e1 - rustc_interface[3b8294f27996ad7c]::interface::run_compiler::<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}
  41:     0x7fd3530df032 - <scoped_tls[b05a1034bf8df359]::ScopedKey<rustc_span[ad7ee7b70df4802b]::SessionGlobals>>::set::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  42:     0x7fd3530f53a4 - std[b6f487efc86ca625]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>
  43:     0x7fd3530f7d91 - <<std[b6f487efc86ca625]::thread::Builder>::spawn_unchecked_<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_with_globals<rustc_interface[3b8294f27996ad7c]::util::run_in_thread_pool_with_globals<rustc_interface[3b8294f27996ad7c]::interface::run_compiler<core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>, rustc_driver_impl[79ea70740cc02544]::run_compiler::{closure#0}>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[861902fd3c033c90]::result::Result<(), rustc_span[ad7ee7b70df4802b]::ErrorGuaranteed>>::{closure#1} as core[861902fd3c033c90]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7fd3523f708e - <std[b6f487efc86ca625]::sys::pal::unix::thread::Thread>::new::thread_start
  46:     0x7fd352272120 - <unknown>
  47:                0x0 - <unknown>

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: 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.78.0-nightly (4da33134a 2024-02-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 -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 -Z unleash-the-miri-inside-of-you
query stack during panic:
query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `U8_MUT2`
#1 [eval_to_const_value_raw] simplifying constant for the type system `U8_MUT2`
end of query stack
error[E0080]: evaluation of constant value failed
##[error]  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:29:15
   |
   |
LL |         match static_cross_crate::OPT_ZERO {
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constant accesses mutable global memory
warning: skipping const checks
   |
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:14:15
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:14:15
   |
LL |     unsafe { &static_cross_crate::ZERO }
   |               ^^^^^^^^^^^^^^^^^^^^^^^^
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:19:15
   |
LL |     unsafe { &static_cross_crate::ZERO[0] }
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:25:17
   |
   |
LL |     unsafe { &(*static_cross_crate::ZERO_REF)[0] }
help: skipping check for `const_refs_to_static` feature
  --> /checkout/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:29:15
   |
LL |         match static_cross_crate::OPT_ZERO {
---
diff of stderr:

64   --> $DIR/E0017.rs:18:1
65    |
66 LL | static STATIC_MUT_REF: &'static mut i32 = unsafe { &mut M };
-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference in a `const` or `static`
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference or box pointing to read-only memory
68    |
69    = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
70    = note: the raw bytes of the constant  {

The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0017/E0017.stderr
To update references, rerun the tests and pass the `--bless` flag
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args error-codes/E0017.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/error-codes/E0017.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" "--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/error-codes/E0017" "-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/error-codes/E0017/auxiliary"
--- stderr -------------------------------
warning: creating a mutable reference to mutable static is discouraged
##[warning]  --> /checkout/tests/ui/error-codes/E0017.rs:18:52
   |
   |
LL | static STATIC_MUT_REF: &'static mut i32 = unsafe { &mut M };
   |
   = note: for more information, see issue #114447 <https://github.com/rust-lang/rust/issues/114447>
   = note: this will be a hard error in the 2024 edition
   = note: this will be a hard error in the 2024 edition
   = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
   = note: `#[warn(static_mut_refs)]` on by default
   |
   |
LL | static STATIC_MUT_REF: &'static mut i32 = unsafe { addr_of_mut!(M) };

warning: taking a mutable reference to a `const` item
##[warning]  --> /checkout/tests/ui/error-codes/E0017.rs:10:30
   |
   |
LL | const CR: &'static mut i32 = &mut C; //~ ERROR mutable references are not allowed
   |
   |
   = note: each usage of a `const` item creates a new temporary
   = note: the mutable reference will refer to this temporary, not the original `const` item
note: `const` item defined here
   |
LL | const C: i32 = 2;
   | ^^^^^^^^^^^^
   = note: `#[warn(const_item_mutation)]` on by default
   = note: `#[warn(const_item_mutation)]` on by default

error[E0764]: mutable references are not allowed in the final value of constants
##[error]  --> /checkout/tests/ui/error-codes/E0017.rs:10:30
   |
LL | const CR: &'static mut i32 = &mut C; //~ ERROR mutable references are not allowed


error[E0596]: cannot borrow immutable static item `X` as mutable
   |
   |
LL | static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR cannot borrow immutable static item `X` as mutable
   |                                       ^^^^^^ cannot borrow as mutable
warning: taking a mutable reference to a `const` item
##[warning]  --> /checkout/tests/ui/error-codes/E0017.rs:15:38
   |
   |
LL | static CONST_REF: &'static mut i32 = &mut C; //~ ERROR mutable references are not allowed
   |
   |
   = note: each usage of a `const` item creates a new temporary
   = note: the mutable reference will refer to this temporary, not the original `const` item
note: `const` item defined here
   |
LL | const C: i32 = 2;
   | ^^^^^^^^^^^^


error[E0764]: mutable references are not allowed in the final value of statics
##[error]  --> /checkout/tests/ui/error-codes/E0017.rs:15:38
   |
LL | static CONST_REF: &'static mut i32 = &mut C; //~ ERROR mutable references are not allowed

error[E0080]: it is undefined behavior to use this value
##[error]  --> /checkout/tests/ui/error-codes/E0017.rs:18:1
   |
   |
LL | static STATIC_MUT_REF: &'static mut i32 = unsafe { &mut M };
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference or box pointing to read-only memory
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
   = note: the raw bytes of the constant (size: 8, align: 8) {
           }

error: aborting due to 4 previous errors; 3 warnings emitted

rust-log-analyzer avatar Feb 27 '24 00:02 rust-log-analyzer

@rust-timer build ee1746640e9092af487215688046c7f3f0e3281b

oli-obk avatar Feb 27 '24 02:02 oli-obk

Queued ee1746640e9092af487215688046c7f3f0e3281b with parent fc3800f65777a365b5125706d60f97e4d0675efe, future comparison URL. There is currently 1 preceding artifact in the queue. It will probably take at least ~1.2 hours until the benchmark run finishes.

rust-timer avatar Feb 27 '24 02:02 rust-timer

Finished benchmarking commit (ee1746640e9092af487215688046c7f3f0e3281b): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never @rustbot label: -S-waiting-on-perf -perf-regression

Warning ⚠: The following benchmark(s) failed to build:

  • webrender-2022

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.1% [-0.1%, -0.1%] 1
Improvements ✅
(secondary)
-0.3% [-1.4%, -0.1%] 6
All ❌✅ (primary) -0.1% [-0.1%, -0.1%] 1

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.4% [0.7%, 2.0%] 2
Regressions ❌
(secondary)
5.3% [5.3%, 5.3%] 1
Improvements ✅
(primary)
-4.8% [-4.8%, -4.8%] 1
Improvements ✅
(secondary)
-2.8% [-3.9%, -1.7%] 5
All ❌✅ (primary) -0.7% [-4.8%, 2.0%] 3

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.3% [1.1%, 2.7%] 6
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.3% [-1.3%, -1.3%] 1
All ❌✅ (primary) - - 0

Binary size

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.1% [0.1%, 0.1%] 3
Regressions ❌
(secondary)
0.1% [0.1%, 0.1%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.1% [0.1%, 0.1%] 3

Bootstrap: 651.881s -> 651.472s (-0.06%) Artifact size: 311.16 MiB -> 311.39 MiB (0.07%)

rust-timer avatar Feb 27 '24 03:02 rust-timer

Ensure nested allocations in statics do not get deduplicated

Do you mean "duplicated"? I guess we actually want both, neither duplication or deduplication?

RalfJung avatar Feb 27 '24 06:02 RalfJung

Ensure nested allocations in statics do not get deduplicated

Do you mean "duplicated"? I guess we actually want both, neither duplication or deduplication?

Yea, without optimizations duplication is the only issue. With optimizations deduplication is an additional issue that I've encountered

oli-obk avatar Feb 27 '24 08:02 oli-obk

:umbrella: The latest upstream changes (presumably #122042) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Mar 10 '24 06:03 bors

Const-eval and interner things LGTM. We're still discussing the tests but meanwhile we need a reviewer for the remaining changes. Not sure who would be suited.

r? compiler

RalfJung avatar Mar 10 '24 13:03 RalfJung

Looks ok to me, modulo all the nits, though I am not confident about the changes in the "Ensure nested allocations in statics do not get deduplicated" commit, i.e. the most important one :) But Ralf had lots of comments there so perhaps his review is enough to cover my weak review there?

nnethercote avatar Mar 11 '24 00:03 nnethercote

The updates LGTM, up to the limits of my incomplete expertise on this stuff.

nnethercote avatar Mar 11 '24 21:03 nnethercote

r=me,nnethercote after squashing a bit and fixing the last comment nit

RalfJung avatar Mar 11 '24 21:03 RalfJung

@bors r=RalfJung,nnethercote

oli-obk avatar Mar 12 '24 08:03 oli-obk

:pushpin: Commit e2773733f35f71dba92588d6b29e43d2cc035a34 has been approved by RalfJung,nnethercote

It is now in the queue for this repository.

bors avatar Mar 12 '24 08:03 bors