Open jfkw opened 1 year ago
I'm hitting this too on stable:
rustc 1.74.0 (79e9716c9 2023-11-13)
binary: rustc
commit-hash: 79e9716c980570bfd1f666e3b16ac583f0168962
commit-date: 2023-11-13
host: aarch64-apple-darwin
release: 1.74.0
LLVM version: 17.0.4
apparently a duplicate of https://github.com/rust-lang/rust/issues/117976 at least according to the discussion found here
When building https://github.com/kaosat-dev/Blender_bevy_components_workflow as of 868fa163e0205050dd262ad93a0fcafd496ee4d7 , basic example, rustc emits the following internal compiler error:
Code
Meta
rustc --version --verbose
:Error output
Backtrace
``` delayed span bug: broken MIR in Item(DefId(0:152 ~ bevy_inspector_egui[ba3a]::bevy_inspector::ui_for_entity_components::{closure#3})) (after phase change to runtime-optimized) at bb5[4]: Alias(Opaque, AliasTy { args: [ReErased, ReErased], def_id: DefId(0:2162 ~ bevy_inspector_egui[ba3a]::restricted_world_view::{impl#3}::get_entity_component_reflect::{opaque#0}) }) does not have fields 0:::emit_diagnostic
1: ::delay_span_bug::
2: ::fail::
3: ::run_pass
4: rustc_mir_transform::pass_manager::run_passes_inner
5: rustc_mir_transform::optimized_mir
6: rustc_query_impl::plumbing::__rust_begin_short_backtrace::>
7: rustc_query_system::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, false>
8: rustc_query_impl::query_impl::optimized_mir::get_query_non_incr::__rust_end_short_backtrace
9: ::instance_mir
10: rustc_monomorphize::collector::collect_items_rec::{closure#0}
11: rustc_monomorphize::collector::collect_items_rec
12: rustc_monomorphize::collector::collect_items_rec
13: rustc_monomorphize::collector::collect_items_rec
14: rustc_monomorphize::collector::collect_items_rec
15: rustc_monomorphize::collector::collect_items_rec
16: rustc_monomorphize::collector::collect_items_rec
17: rustc_monomorphize::collector::collect_items_rec
18: rustc_monomorphize::collector::collect_items_rec
19: rustc_monomorphize::collector::collect_items_rec
20: rustc_monomorphize::collector::collect_items_rec
21: rustc_monomorphize::collector::collect_items_rec
22: rustc_monomorphize::collector::collect_items_rec
23: rustc_monomorphize::collector::collect_items_rec
24: rustc_monomorphize::collector::collect_items_rec
25: rustc_monomorphize::partitioning::collect_and_partition_mono_items
26: rustc_query_impl::plumbing::__rust_begin_short_backtrace::>
27: >::call_once
28: rustc_query_system::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, false>
29: rustc_query_impl::query_impl::collect_and_partition_mono_items::get_query_non_incr::__rust_end_short_backtrace
30: ::codegen_crate
31: rustc_interface::passes::start_codegen
32: ::ongoing_codegen
33: std::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>
34: <::spawn_unchecked_, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
35: as core::ops::function::FnOnce>::call_once
at /rustc/2e5a9dd6c9eaa42f0684b4b760bd68fc27cbe51b/library/alloc/src/boxed.rs:2007:9
36: as core::ops::function::FnOnce>::call_once
at /rustc/2e5a9dd6c9eaa42f0684b4b760bd68fc27cbe51b/library/alloc/src/boxed.rs:2007:9
37: std::sys::unix::thread::Thread::new::thread_start
at /rustc/2e5a9dd6c9eaa42f0684b4b760bd68fc27cbe51b/library/std/src/sys/unix/thread.rs:108:17
38: start_thread
39: __clone3
delayed span bug: broken MIR in Item(DefId(0:152 ~ bevy_inspector_egui[ba3a]::bevy_inspector::ui_for_entity_components::{closure#3})) (after phase change to runtime-optimized) at bb5[5]:
Alias(Opaque, AliasTy { args: [ReErased, ReErased], def_id: DefId(0:2162 ~ bevy_inspector_egui[ba3a]::restricted_world_view::{impl#3}::get_entity_component_reflect::{opaque#0}) }) does not have fields
0: ::emit_diagnostic
1: ::delay_span_bug::
2: ::fail::
3: ::run_pass
4: rustc_mir_transform::pass_manager::run_passes_inner
5: rustc_mir_transform::optimized_mir
6: rustc_query_impl::plumbing::__rust_begin_short_backtrace::>
7: rustc_query_system::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, false>
8: rustc_query_impl::query_impl::optimized_mir::get_query_non_incr::__rust_end_short_backtrace
9: ::instance_mir
10: rustc_monomorphize::collector::collect_items_rec::{closure#0}
11: rustc_monomorphize::collector::collect_items_rec
12: rustc_monomorphize::collector::collect_items_rec
13: rustc_monomorphize::collector::collect_items_rec
14: rustc_monomorphize::collector::collect_items_rec
15: rustc_monomorphize::collector::collect_items_rec
16: rustc_monomorphize::collector::collect_items_rec
17: rustc_monomorphize::collector::collect_items_rec
18: rustc_monomorphize::collector::collect_items_rec
19: rustc_monomorphize::collector::collect_items_rec
20: rustc_monomorphize::collector::collect_items_rec
21: rustc_monomorphize::collector::collect_items_rec
22: rustc_monomorphize::collector::collect_items_rec
23: rustc_monomorphize::collector::collect_items_rec
24: rustc_monomorphize::collector::collect_items_rec
25: rustc_monomorphize::partitioning::collect_and_partition_mono_items
26: rustc_query_impl::plumbing::__rust_begin_short_backtrace::>
27: >::call_once
28: rustc_query_system::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, false>
29: rustc_query_impl::query_impl::collect_and_partition_mono_items::get_query_non_incr::__rust_end_short_backtrace
30: ::codegen_crate
31: rustc_interface::passes::start_codegen
32: ::ongoing_codegen
33: std::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>
34: <::spawn_unchecked_, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
35: as core::ops::function::FnOnce>::call_once
at /rustc/2e5a9dd6c9eaa42f0684b4b760bd68fc27cbe51b/library/alloc/src/boxed.rs:2007:9
36: as core::ops::function::FnOnce>::call_once
at /rustc/2e5a9dd6c9eaa42f0684b4b760bd68fc27cbe51b/library/alloc/src/boxed.rs:2007:9
37: std::sys::unix::thread::Thread::new::thread_start
at /rustc/2e5a9dd6c9eaa42f0684b4b760bd68fc27cbe51b/library/std/src/sys/unix/thread.rs:108:17
38: start_thread
39: __clone3
rustc version: 1.75.0-nightly (2e5a9dd6c 2023-10-02)
platform: x86_64-unknown-linux-gnu
```