Repository: rust
Issue: ICE when running `x.py check` on rust source
Labels: I-ICE,T-compiler,C-bug,requires-custom-config

Unfortunately, I'm not sure what an MRE for this would look like, as I was recompiling the standard library.


### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.65.0 (897e37553 2022-11-02)
binary: rustc
commit-hash: 897e37553bba8b42751c67658967889d11ecd120
commit-date: 2022-11-02
host: x86_64-unknown-linux-gnu
release: 1.65.0
LLVM version: 15.0.0
```

### Error output

```
thread 'rustc' panicked at 'attempted to read from stolen value: rustc_middle::mir::Body', compiler/rustc_mir_transform/src/check_unsafety.rs:473:36
stack backtrace: [omitted]

thread 'rustc' panicked at 'attempted to read from stolen value: rustc_middle::mir::Body', compiler/rustc_mir_transform/src/check_unsafety.rs:473:36
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary><strong>Backtrace</strong></summary>
<p>

```
thread 'rustc' panicked at 'attempted to read from stolen value: rustc_middle::mir::Body', compiler/rustc_mir_transform/src/check_unsafety.rs:473:36
stack backtrace:
   0:     0x7f90400e3c90 - std::backtrace_rs::backtrace::libunwind::trace::he4b135b282ad0bdb
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   1:     0x7f90400e3c90 - std::backtrace_rs::backtrace::trace_unsynchronized::h95dd1a9f59a261f0
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f90400e3c90 - std::sys_common::backtrace::_print_fmt::hb2d5f7f2edfb1871
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7f90400e3c90 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbbdb63e1a9e5bae0
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7f904013e9ee - core::fmt::write::hc0fd3d64c7964deb
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/core/src/fmt/mod.rs:1202:17
   5:     0x7f90400d47a5 - std::io::Write::write_fmt::h1519d1f8a9f30a76
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/io/mod.rs:1679:15
   6:     0x7f90400e6943 - std::sys_common::backtrace::_print::h024f4799bdf90945
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7f90400e6943 - std::sys_common::backtrace::print::h7afbde668e15046e
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7f90400e6943 - std::panicking::default_hook::{{closure}}::hd91c46b08dd5ed53
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:295:22
   9:     0x7f90400e662f - std::panicking::default_hook::hd24a3e5b374ef38d
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:314:9
  10:     0x7f90428fb9b1 - <rustc_driver[9c43a358105c7dbe]::DEFAULT_HOOK::{closure#0}::{closure#0} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<(&core[74a8d7cf5c6329dd]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0}
  11:     0x7f90400e717d - std::panicking::rust_panic_with_hook::h227f8f44fe4dcc4d
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:702:17
  12:     0x7f90400e6fd7 - std::panicking::begin_panic_handler::{{closure}}::h643d0c4e5ea667c5
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:588:13
  13:     0x7f90400e413c - std::sys_common::backtrace::__rust_end_short_backtrace::hfc98d21e90a8d7a6
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:138:18
  14:     0x7f90400e6cf2 - rust_begin_unwind
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:584:5
  15:     0x7f904013b5c3 - core::panicking::panic_fmt::h7c86307091386a9a
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/core/src/panicking.rs:142:14
  16:     0x7f9041aefd4b - rustc_mir_transform[55a388c5acf5d686]::check_unsafety::unsafety_check_result
  17:     0x7f9041aef3a8 - <rustc_mir_transform[55a388c5acf5d686]::check_unsafety::provide::{closure#0} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<(rustc_middle[42f7879d112b1aa3]::ty::context::TyCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId)>>::call_once
  18:     0x7f9043183b2b - <rustc_middle[42f7879d112b1aa3]::dep_graph::dep_node::DepKind as rustc_query_system[9ae1097dd5b38c5b]::dep_graph::DepKind>::with_deps::<rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>::{closure#1}, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>
  19:     0x7f9042024aa7 - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_load_from_disk_and_cache_in_memory::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>
  20:     0x7f9042023df8 - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_execute_query::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_query_system[9ae1097dd5b38c5b]::query::caches::DefaultCache<rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>>
  21:     0x7f904284b0c4 - <rustc_query_impl[eee503ccf3b24082]::Queries as rustc_middle[42f7879d112b1aa3]::ty::query::QueryEngine>::unsafety_check_result
  22:     0x7f9041bf4443 - rustc_mir_transform[55a388c5acf5d686]::check_unsafety::check_unsafety
  23:     0x7f9041bf3b71 - <rustc_session[841b3c5cdfa4a6e9]::session::Session>::time::<(), rustc_interface[279f75d423814323]::passes::analysis::{closure#3}>
  24:     0x7f9041bece8c - rustc_interface[279f75d423814323]::passes::analysis
  25:     0x7f90426dd662 - <rustc_query_system[9ae1097dd5b38c5b]::dep_graph::graph::DepGraph<rustc_middle[42f7879d112b1aa3]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[42f7879d112b1aa3]::ty::context::TyCtxt, (), core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  26:     0x7f90426dcd2a - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_execute_query::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_query_system[9ae1097dd5b38c5b]::query::caches::DefaultCache<(), core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>>
  27:     0x7f90426dc7f7 - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::get_query::<rustc_query_impl[eee503ccf3b24082]::queries::analysis, rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt>
  28:     0x7f90416e2267 - <rustc_interface[279f75d423814323]::passes::QueryContext>::enter::<rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  29:     0x7f90416d5dbc - rustc_interface[279f75d423814323]::interface::create_compiler_and_run::<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>
  30:     0x7f90416d46f2 - <scoped_tls[88a6cd5de53874af]::ScopedKey<rustc_span[f8046a25c6672ded]::SessionGlobals>>::set::<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  31:     0x7f90416d43df - std[fa71d80230c9c056]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[279f75d423814323]::util::run_in_thread_pool_with_globals<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  32:     0x7f9042770230 - <<std[fa71d80230c9c056]::thread::Builder>::spawn_unchecked_<rustc_interface[279f75d423814323]::util::run_in_thread_pool_with_globals<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#1} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  33:     0x7f90400f0f53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hddea892768967669
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/alloc/src/boxed.rs:1940:9
  34:     0x7f90400f0f53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h908c7909b9c5388e
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/alloc/src/boxed.rs:1940:9
  35:     0x7f90400f0f53 - std::sys::unix::thread::Thread::new::thread_start::h5f564412beba7a54
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys/unix/thread.rs:108:17
  36:     0x7f903ffb5609 - start_thread
  37:     0x7f903fed8163 - clone
  38:                0x0 - <unknown>

[...]

query stack during panic:
#0 [unsafety_check_result] unsafety-checking `parser::attr_wrapper::size_asserts::_::{constant#1}`
#1 [analysis] running analysis passes on this crate
end of query stack
thread 'rustc' panicked at 'attempted to read from stolen value: rustc_middle::mir::Body', compiler/rustc_mir_transform/src/check_unsafety.rs:473:36
error: could not compile `rustc_parse`
warning: build failed, waiting for other jobs to finish...
stack backtrace:
   0:     0x7f22f48fbc90 - std::backtrace_rs::backtrace::libunwind::trace::he4b135b282ad0bdb
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   1:     0x7f22f48fbc90 - std::backtrace_rs::backtrace::trace_unsynchronized::h95dd1a9f59a261f0
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f22f48fbc90 - std::sys_common::backtrace::_print_fmt::hb2d5f7f2edfb1871
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7f22f48fbc90 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbbdb63e1a9e5bae0
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7f22f49569ee - core::fmt::write::hc0fd3d64c7964deb
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/core/src/fmt/mod.rs:1202:17
   5:     0x7f22f48ec7a5 - std::io::Write::write_fmt::h1519d1f8a9f30a76
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/io/mod.rs:1679:15
   6:     0x7f22f48fe943 - std::sys_common::backtrace::_print::h024f4799bdf90945
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7f22f48fe943 - std::sys_common::backtrace::print::h7afbde668e15046e
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7f22f48fe943 - std::panicking::default_hook::{{closure}}::hd91c46b08dd5ed53
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:295:22
   9:     0x7f22f48fe62f - std::panicking::default_hook::hd24a3e5b374ef38d
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:314:9
  10:     0x7f22f71139b1 - <rustc_driver[9c43a358105c7dbe]::DEFAULT_HOOK::{closure#0}::{closure#0} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<(&core[74a8d7cf5c6329dd]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0}
  11:     0x7f22f48ff17d - std::panicking::rust_panic_with_hook::h227f8f44fe4dcc4d
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:702:17
  12:     0x7f22f48fefd7 - std::panicking::begin_panic_handler::{{closure}}::h643d0c4e5ea667c5
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:588:13
  13:     0x7f22f48fc13c - std::sys_common::backtrace::__rust_end_short_backtrace::hfc98d21e90a8d7a6
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:138:18
  14:     0x7f22f48fecf2 - rust_begin_unwind
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:584:5
  15:     0x7f22f49535c3 - core::panicking::panic_fmt::h7c86307091386a9a
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/core/src/panicking.rs:142:14
  16:     0x7f22f6307d4b - rustc_mir_transform[55a388c5acf5d686]::check_unsafety::unsafety_check_result
  17:     0x7f22f63073a8 - <rustc_mir_transform[55a388c5acf5d686]::check_unsafety::provide::{closure#0} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<(rustc_middle[42f7879d112b1aa3]::ty::context::TyCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId)>>::call_once
  18:     0x7f22f799bb2b - <rustc_middle[42f7879d112b1aa3]::dep_graph::dep_node::DepKind as rustc_query_system[9ae1097dd5b38c5b]::dep_graph::DepKind>::with_deps::<rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>::{closure#1}, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>
  19:     0x7f22f683caa7 - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_load_from_disk_and_cache_in_memory::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>
  20:     0x7f22f683bdf8 - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_execute_query::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_query_system[9ae1097dd5b38c5b]::query::caches::DefaultCache<rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>>
  21:     0x7f22f70630c4 - <rustc_query_impl[eee503ccf3b24082]::Queries as rustc_middle[42f7879d112b1aa3]::ty::query::QueryEngine>::unsafety_check_result
  22:     0x7f22f640c443 - rustc_mir_transform[55a388c5acf5d686]::check_unsafety::check_unsafety
  23:     0x7f22f640bb71 - <rustc_session[841b3c5cdfa4a6e9]::session::Session>::time::<(), rustc_interface[279f75d423814323]::passes::analysis::{closure#3}>
  24:     0x7f22f6404e8c - rustc_interface[279f75d423814323]::passes::analysis
  25:     0x7f22f6ef5662 - <rustc_query_system[9ae1097dd5b38c5b]::dep_graph::graph::DepGraph<rustc_middle[42f7879d112b1aa3]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[42f7879d112b1aa3]::ty::context::TyCtxt, (), core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  26:     0x7f22f6ef4d2a - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_execute_query::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_query_system[9ae1097dd5  28:     0x7f22f5efa267 - <rustc_interface[279f75d423814323]::passes::QueryContext>::enter::<rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  29:     0x7f22f5eeddbc - rustc_interface[279f75d423814323]::interface::create_compiler_and_run::<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>
  30:     0x7f22f5eec6f2 - <scoped_tls[88a6cd5de53874af]::ScopedKey<rustc_span[f8046a25c6672ded]::SessionGlobals>>::set::<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  31:     0x7f22f5eec3df - std[fa71d80230c9c056]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[279f75d423814323]::util::run_in_thread_pool_with_globals<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  32:     0x7f22f6f88230 - <<std[fa71d80230c9c056]::thread::Builder>::spawn_unchecked_<rustc_interface[279f75d423814323]::util::run_in_thread_pool_with_globals<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#1} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  33:     0x7f22f4908f53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hddea892768967669
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/alloc/src/boxed.rs:1940:9
  34:     0x7f22f4908f53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h908c7909b9c5388e
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/alloc/src/boxed.rs:1940:9
  35:     0x7f22f4908f53 - std::sys::unix::thread::Thread::new::thread_start::h5f564412beba7a54
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys/unix/thread.rs:108:17
  36:     0x7f22f47cd609 - start_thread
  37:     0x7f22f46f0163 - clone
  38:                0x0 - <unknown>

[...]

query stack during panic:
#0 [unsafety_check_result] unsafety-checking `parser::attr_wrapper::size_asserts::_::{constant#1}`
#1 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `rustc_parse`
Build completed unsuccessfully in 0:00:09
```

</p>
</details>

Just in case there's something useful buried in the warnings or elsewhere in the output:
<details><summary><strong>Full compiler output</strong></summary>
<p>

```
Building rustbuild
    Finished dev [unoptimized] target(s) in 0.04s
Checking stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.15s
Checking stage0 std test/bench/example targets (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.15s
Checking stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_llvm-1y8adkiuegwg5/s-gf5sjh3qmk-1729w1-working/dep-graph.bin`: memory map must have a non-zero length

warning: `rustc_llvm` (lib) generated 1 warning
warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_llvm-3g1wl2yhan8rv/s-gf5sjh3sa2-1d4jmc4-working/dep-graph.bin`: memory map must have a non-zero length

warning: `rustc_llvm` (lib test) generated 1 warning
    Checking rustc_parse v0.0.0 (/home/xoey/repos/rust/rust/compiler/rustc_parse)
warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_middle-2ufj40rfl8fqu/s-gf5sig2qpe-ysln31-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_middle-18uiasf4lzcnw/s-gf5sig2qp2-rsggtr-working/dep-graph.bin`: memory map must have a non-zero length

warning: `rustc_middle` (lib) generated 1 warning
warning: `rustc_middle` (lib test) generated 1 warning
warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_infer-3m1yyb0voemxw/s-gf5sjh40xy-13h6roc-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_mir_dataflow-3keqktd85w9ej/s-gf5sjh41j6-uxryr6-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_symbol_mangling-leerwrtpr0xg/s-gf5sjh4e5o-1yrl8h1-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_incremental-3npnis42sadzj/s-gf5sjh463p-dypomh-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_monomorphize-t7ubhgldbhhy/s-gf5sjh6vj0-1im4pya-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_query_impl-2kn17qeqiall6/s-gf5sjh4e9y-1f1uj5l-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_ast_lowering-3ckyy1v551dfz/s-gf5sjh80pb-1vc94z4-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_save_analysis-3k3alzhppsmvd/s-gf5sjh7mfc-lni8xe-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_monomorphize-36ec9qkzje0n8/s-gf5sjicj37-mw8fe9-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_infer-2txu6py8d09rm/s-gf5sjh6soj-btvj9w-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_ast_lowering-2f9oljh0m3ns4/s-gf5sjh7u2o-1xwvcdz-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_incremental-2fbyvztyspjoj/s-gf5sjies6y-13wxld6-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_save_analysis-1vpdwnb5ew7ed/s-gf5sjh79ph-w8k0e0-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_query_impl-11fo6kb3cs5l3/s-gf5sjh9f1e-3st21i-working/dep-graph.bin`: memory map must have a non-zero length

warning: `rustc_infer` (lib) generated 1 warning
warning: `rustc_mir_dataflow` (lib) generated 1 warning
warning: `rustc_symbol_mangling` (lib) generated 1 warning
warning: `rustc_incremental` (lib) generated 1 warning
warning: `rustc_monomorphize` (lib) generated 1 warning
warning: `rustc_query_impl` (lib) generated 1 warning
warning: `rustc_ast_lowering` (lib) generated 1 warning
warning: `rustc_save_analysis` (lib) generated 1 warning
warning: `rustc_monomorphize` (lib test) generated 1 warning
warning: `rustc_infer` (lib test) generated 1 warning
warning: `rustc_ast_lowering` (lib test) generated 1 warning
warning: `rustc_incremental` (lib test) generated 1 warning
warning: `rustc_save_analysis` (lib test) generated 1 warning
warning: `rustc_query_impl` (lib test) generated 1 warning
warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_transmute-2vfxmqcbpz2k0/s-gf5smy9czv-1xvpuve-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_transmute-27iw2aijvtq8y/s-gf5smy984y-1va59jj-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_mir_dataflow-2lfxhlpdmub1/s-gf5sjh6rd9-1hocvgw-working/dep-graph.bin`: memory map must have a non-zero length

warning: could not load dep-graph from `/home/xoey/repos/rust/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental/rustc_symbol_mangling-4ecc96b0o3sc/s-gf5sjh9f5h-1ra9l7t-working/dep-graph.bin`: memory map must have a non-zero length

warning: `rustc_transmute` (lib) generated 1 warning
warning: `rustc_transmute` (lib test) generated 1 warning
warning: `rustc_mir_dataflow` (lib test) generated 1 warning
warning: `rustc_symbol_mangling` (lib test) generated 1 warning
    Checking rustc_hir_analysis v0.0.0 (/home/xoey/repos/rust/rust/compiler/rustc_hir_analysis)
    Checking rustc_borrowck v0.0.0 (/home/xoey/repos/rust/rust/compiler/rustc_borrowck)
    Checking rustc_mir_transform v0.0.0 (/home/xoey/repos/rust/rust/compiler/rustc_mir_transform)
thread 'rustc' panicked at 'attempted to read from stolen value: rustc_middle::mir::Body', compiler/rustc_mir_transform/src/check_unsafety.rs:473:36
stack backtrace:
   0:     0x7f90400e3c90 - std::backtrace_rs::backtrace::libunwind::trace::he4b135b282ad0bdb
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   1:     0x7f90400e3c90 - std::backtrace_rs::backtrace::trace_unsynchronized::h95dd1a9f59a261f0
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f90400e3c90 - std::sys_common::backtrace::_print_fmt::hb2d5f7f2edfb1871
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7f90400e3c90 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbbdb63e1a9e5bae0
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7f904013e9ee - core::fmt::write::hc0fd3d64c7964deb
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/core/src/fmt/mod.rs:1202:17
   5:     0x7f90400d47a5 - std::io::Write::write_fmt::h1519d1f8a9f30a76
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/io/mod.rs:1679:15
   6:     0x7f90400e6943 - std::sys_common::backtrace::_print::h024f4799bdf90945
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7f90400e6943 - std::sys_common::backtrace::print::h7afbde668e15046e
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7f90400e6943 - std::panicking::default_hook::{{closure}}::hd91c46b08dd5ed53
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:295:22
   9:     0x7f90400e662f - std::panicking::default_hook::hd24a3e5b374ef38d
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:314:9
  10:     0x7f90428fb9b1 - <rustc_driver[9c43a358105c7dbe]::DEFAULT_HOOK::{closure#0}::{closure#0} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<(&core[74a8d7cf5c6329dd]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0}
  11:     0x7f90400e717d - std::panicking::rust_panic_with_hook::h227f8f44fe4dcc4d
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:702:17
  12:     0x7f90400e6fd7 - std::panicking::begin_panic_handler::{{closure}}::h643d0c4e5ea667c5
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:588:13
  13:     0x7f90400e413c - std::sys_common::backtrace::__rust_end_short_backtrace::hfc98d21e90a8d7a6
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:138:18
  14:     0x7f90400e6cf2 - rust_begin_unwind
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:584:5
  15:     0x7f904013b5c3 - core::panicking::panic_fmt::h7c86307091386a9a
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/core/src/panicking.rs:142:14
  16:     0x7f9041aefd4b - rustc_mir_transform[55a388c5acf5d686]::check_unsafety::unsafety_check_result
  17:     0x7f9041aef3a8 - <rustc_mir_transform[55a388c5acf5d686]::check_unsafety::provide::{closure#0} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<(rustc_middle[42f7879d112b1aa3]::ty::context::TyCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId)>>::call_once
  18:     0x7f9043183b2b - <rustc_middle[42f7879d112b1aa3]::dep_graph::dep_node::DepKind as rustc_query_system[9ae1097dd5b38c5b]::dep_graph::DepKind>::with_deps::<rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>::{closure#1}, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>
  19:     0x7f9042024aa7 - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_load_from_disk_and_cache_in_memory::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>
  20:     0x7f9042023df8 - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_execute_query::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_query_system[9ae1097dd5b38c5b]::query::caches::DefaultCache<rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>>
  21:     0x7f904284b0c4 - <rustc_query_impl[eee503ccf3b24082]::Queries as rustc_middle[42f7879d112b1aa3]::ty::query::QueryEngine>::unsafety_check_result
  22:     0x7f9041bf4443 - rustc_mir_transform[55a388c5acf5d686]::check_unsafety::check_unsafety
  23:     0x7f9041bf3b71 - <rustc_session[841b3c5cdfa4a6e9]::session::Session>::time::<(), rustc_interface[279f75d423814323]::passes::analysis::{closure#3}>
  24:     0x7f9041bece8c - rustc_interface[279f75d423814323]::passes::analysis
  25:     0x7f90426dd662 - <rustc_query_system[9ae1097dd5b38c5b]::dep_graph::graph::DepGraph<rustc_middle[42f7879d112b1aa3]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[42f7879d112b1aa3]::ty::context::TyCtxt, (), core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  26:     0x7f90426dcd2a - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_execute_query::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_query_system[9ae1097dd5b38c5b]::query::caches::DefaultCache<(), core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>>
  27:     0x7f90426dc7f7 - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::get_query::<rustc_query_impl[eee503ccf3b24082]::queries::analysis, rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt>
  28:     0x7f90416e2267 - <rustc_interface[279f75d423814323]::passes::QueryContext>::enter::<rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  29:     0x7f90416d5dbc - rustc_interface[279f75d423814323]::interface::create_compiler_and_run::<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>
  30:     0x7f90416d46f2 - <scoped_tls[88a6cd5de53874af]::ScopedKey<rustc_span[f8046a25c6672ded]::SessionGlobals>>::set::<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  31:     0x7f90416d43df - std[fa71d80230c9c056]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[279f75d423814323]::util::run_in_thread_pool_with_globals<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  32:     0x7f9042770230 - <<std[fa71d80230c9c056]::thread::Builder>::spawn_unchecked_<rustc_interface[279f75d423814323]::util::run_in_thread_pool_with_globals<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#1} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  33:     0x7f90400f0f53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hddea892768967669
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/alloc/src/boxed.rs:1940:9
  34:     0x7f90400f0f53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h908c7909b9c5388e
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/alloc/src/boxed.rs:1940:9
  35:     0x7f90400f0f53 - std::sys::unix::thread::Thread::new::thread_start::h5f564412beba7a54
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys/unix/thread.rs:108:17
  36:     0x7f903ffb5609 - start_thread
  37:     0x7f903fed8163 - clone
  38:                0x0 - <unknown>

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.65.0-beta.1 (2a65764f2 2022-09-19) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -Z unstable-options -C incremental=[REDACTED] -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C llvm-args=-import-instr-limit=10 -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:
#0 [unsafety_check_result] unsafety-checking `parser::attr_wrapper::size_asserts::_::{constant#1}`
#1 [analysis] running analysis passes on this crate
end of query stack
thread 'rustc' panicked at 'attempted to read from stolen value: rustc_middle::mir::Body', compiler/rustc_mir_transform/src/check_unsafety.rs:473:36
error: could not compile `rustc_parse`
warning: build failed, waiting for other jobs to finish...
stack backtrace:
   0:     0x7f22f48fbc90 - std::backtrace_rs::backtrace::libunwind::trace::he4b135b282ad0bdb
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   1:     0x7f22f48fbc90 - std::backtrace_rs::backtrace::trace_unsynchronized::h95dd1a9f59a261f0
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f22f48fbc90 - std::sys_common::backtrace::_print_fmt::hb2d5f7f2edfb1871
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7f22f48fbc90 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbbdb63e1a9e5bae0
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7f22f49569ee - core::fmt::write::hc0fd3d64c7964deb
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/core/src/fmt/mod.rs:1202:17
   5:     0x7f22f48ec7a5 - std::io::Write::write_fmt::h1519d1f8a9f30a76
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/io/mod.rs:1679:15
   6:     0x7f22f48fe943 - std::sys_common::backtrace::_print::h024f4799bdf90945
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7f22f48fe943 - std::sys_common::backtrace::print::h7afbde668e15046e
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7f22f48fe943 - std::panicking::default_hook::{{closure}}::hd91c46b08dd5ed53
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:295:22
   9:     0x7f22f48fe62f - std::panicking::default_hook::hd24a3e5b374ef38d
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:314:9
  10:     0x7f22f71139b1 - <rustc_driver[9c43a358105c7dbe]::DEFAULT_HOOK::{closure#0}::{closure#0} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<(&core[74a8d7cf5c6329dd]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0}
  11:     0x7f22f48ff17d - std::panicking::rust_panic_with_hook::h227f8f44fe4dcc4d
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:702:17
  12:     0x7f22f48fefd7 - std::panicking::begin_panic_handler::{{closure}}::h643d0c4e5ea667c5
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:588:13
  13:     0x7f22f48fc13c - std::sys_common::backtrace::__rust_end_short_backtrace::hfc98d21e90a8d7a6
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys_common/backtrace.rs:138:18
  14:     0x7f22f48fecf2 - rust_begin_unwind
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/panicking.rs:584:5
  15:     0x7f22f49535c3 - core::panicking::panic_fmt::h7c86307091386a9a
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/core/src/panicking.rs:142:14
  16:     0x7f22f6307d4b - rustc_mir_transform[55a388c5acf5d686]::check_unsafety::unsafety_check_result
  17:     0x7f22f63073a8 - <rustc_mir_transform[55a388c5acf5d686]::check_unsafety::provide::{closure#0} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<(rustc_middle[42f7879d112b1aa3]::ty::context::TyCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId)>>::call_once
  18:     0x7f22f799bb2b - <rustc_middle[42f7879d112b1aa3]::dep_graph::dep_node::DepKind as rustc_query_system[9ae1097dd5b38c5b]::dep_graph::DepKind>::with_deps::<rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>::{closure#1}, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>
  19:     0x7f22f683caa7 - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_load_from_disk_and_cache_in_memory::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>
  20:     0x7f22f683bdf8 - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_execute_query::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_query_system[9ae1097dd5b38c5b]::query::caches::DefaultCache<rustc_span[f8046a25c6672ded]::def_id::LocalDefId, &rustc_middle[42f7879d112b1aa3]::mir::query::UnsafetyCheckResult>>
  21:     0x7f22f70630c4 - <rustc_query_impl[eee503ccf3b24082]::Queries as rustc_middle[42f7879d112b1aa3]::ty::query::QueryEngine>::unsafety_check_result
  22:     0x7f22f640c443 - rustc_mir_transform[55a388c5acf5d686]::check_unsafety::check_unsafety
  23:     0x7f22f640bb71 - <rustc_session[841b3c5cdfa4a6e9]::session::Session>::time::<(), rustc_interface[279f75d423814323]::passes::analysis::{closure#3}>
  24:     0x7f22f6404e8c - rustc_interface[279f75d423814323]::passes::analysis
  25:     0x7f22f6ef5662 - <rustc_query_system[9ae1097dd5b38c5b]::dep_graph::graph::DepGraph<rustc_middle[42f7879d112b1aa3]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[42f7879d112b1aa3]::ty::context::TyCtxt, (), core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  26:     0x7f22f6ef4d2a - rustc_query_system[9ae1097dd5b38c5b]::query::plumbing::try_execute_query::<rustc_query_impl[eee503ccf3b24082]::plumbing::QueryCtxt, rustc_query_system[9ae1097dd5  28:     0x7f22f5efa267 - <rustc_interface[279f75d423814323]::passes::QueryContext>::enter::<rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  29:     0x7f22f5eeddbc - rustc_interface[279f75d423814323]::interface::create_compiler_and_run::<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>
  30:     0x7f22f5eec6f2 - <scoped_tls[88a6cd5de53874af]::ScopedKey<rustc_span[f8046a25c6672ded]::SessionGlobals>>::set::<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  31:     0x7f22f5eec3df - std[fa71d80230c9c056]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[279f75d423814323]::util::run_in_thread_pool_with_globals<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>
  32:     0x7f22f6f88230 - <<std[fa71d80230c9c056]::thread::Builder>::spawn_unchecked_<rustc_interface[279f75d423814323]::util::run_in_thread_pool_with_globals<rustc_interface[279f75d423814323]::interface::run_compiler<core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>, rustc_driver[9c43a358105c7dbe]::run_compiler::{closure#1}>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#0}, core[74a8d7cf5c6329dd]::result::Result<(), rustc_errors[c8662fcb21d66c60]::ErrorGuaranteed>>::{closure#1} as core[74a8d7cf5c6329dd]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  33:     0x7f22f4908f53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hddea892768967669
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/alloc/src/boxed.rs:1940:9
  34:     0x7f22f4908f53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h908c7909b9c5388e
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/alloc/src/boxed.rs:1940:9
  35:     0x7f22f4908f53 - std::sys::unix::thread::Thread::new::thread_start::h5f564412beba7a54
                               at /rustc/2a65764f21cf10b7e03c645f1ad0946e42758e0a/library/std/src/sys/unix/thread.rs:108:17
  36:     0x7f22f47cd609 - start_thread
  37:     0x7f22f46f0163 - clone
  38:                0x0 - <unknown>

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.65.0-beta.1 (2a65764f2 2022-09-19) running on x86_64-unknown-linux-gnu

note: compiler flags: -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -Z unstable-options -C incremental=[REDACTED] -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C llvm-args=-import-instr-limit=10 -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:
#0 [unsafety_check_result] unsafety-checking `parser::attr_wrapper::size_asserts::_::{constant#1}`
#1 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `rustc_parse`
Build completed unsuccessfully in 0:00:09
```

</p>
</details>