Skip to content

bevy examples wrong #111377

Closed
Closed
@zcran

Description

@zcran

Code

use bevy::prelude::*;

fn main(){
  App::new()
    .add_plugins(DefaultPlugins)
    .run();
}

Meta

rustc --version --verbose:

rustc 1.71.0-nightly (2f2c438dc 2023-05-08)

Error output

Compiling wgpu v0.15.1
error: internal compiler error: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR available for DefId(30:2989 ~ wgpu_core[e674]::track::texture::{impl#0}::any_exclusive)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/2f2c438dce75d8cc532c3baa849eeddc0901802c/compiler/rustc_errors/src/lib.rs:1650:9
stack backtrace:
   0:        0x10dd89a88 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hb1d7f427abac4e67
   1:        0x10ddd94dc - core::fmt::write::h99b2593a967c157f
   2:        0x10dd7fc94 - std::io::Write::write_fmt::hb795e309bfe1402e
   3:        0x10dd898dc - std::sys_common::backtrace::print::h2210289afef2f458
   4:        0x10dd8c2f8 - std::panicking::default_hook::{{closure}}::h2e14385d88f14166
   5:        0x10dd8c100 - std::panicking::default_hook::h2065fd506ae6675b
   6:        0x1053034f4 - rustc_driver_impl[578feedc5daeedcf]::install_ice_hook::{closure#0}
   7:        0x10dd8c90c - std::panicking::rust_panic_with_hook::h3b0873ff2ce9653d
   8:        0x1090e7e2c - std[abb65c99166164af]::panicking::begin_panic::<rustc_errors[bfc4faeb8411a782]::ExplicitBug>::{closure#0}
   9:        0x1090e4fe4 - std[abb65c99166164af]::sys_common::backtrace::__rust_end_short_backtrace::<std[abb65c99166164af]::panicking::begin_panic<rustc_errors[bfc4faeb8411a782]::ExplicitBug>::{closure#0}, !>
  10:        0x1096df3e0 - std[abb65c99166164af]::panicking::begin_panic::<rustc_errors[bfc4faeb8411a782]::ExplicitBug>
  11:        0x1090dc300 - <rustc_errors[bfc4faeb8411a782]::HandlerInner>::bug::<alloc[f5305febaccc2c84]::string::String>
  12:        0x1090dbcbc - <rustc_errors[bfc4faeb8411a782]::Handler>::bug::<alloc[f5305febaccc2c84]::string::String>
  13:        0x1091bd4f8 - rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt::<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}
  14:        0x1091bcbbc - rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_opt::<rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:        0x1091bcb88 - rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_context_opt::<rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_opt<rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:        0x1096e426c - rustc_middle[caf3ad0f18d6cf5a]::util::bug::bug_fmt
  17:        0x1079c67e0 - rustc_monomorphize[eb5800245940b2a8]::collector::should_codegen_locally
  18:        0x1079c643c - rustc_monomorphize[eb5800245940b2a8]::collector::visit_instance_use
  19:        0x1079c5c7c - <rustc_monomorphize[eb5800245940b2a8]::collector::MirNeighborCollector as rustc_middle[caf3ad0f18d6cf5a]::mir::visit::Visitor>::visit_terminator
  20:        0x1079c9f0c - rustc_monomorphize[eb5800245940b2a8]::collector::collect_neighbours
  21:        0x1079c8c4c - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  22:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  23:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  24:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  25:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  26:        0x1079e8d34 - <core[bcec2d62264d7952]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[73389b4178ce37f6]::sync::par_for_each_in<alloc[f5305febaccc2c84]::vec::Vec<rustc_middle[caf3ad0f18d6cf5a]::mir::mono::MonoItem>, rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}::{closure#0}>::{closure#0}::{closure#0}> as core[bcec2d62264d7952]::ops::function::FnOnce<()>>::call_once
  27:        0x1079dbf54 - rustc_data_structures[73389b4178ce37f6]::sync::par_for_each_in::<alloc[f5305febaccc2c84]::vec::Vec<rustc_middle[caf3ad0f18d6cf5a]::mir::mono::MonoItem>, rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}::{closure#0}>
  28:        0x1079e4a60 - <rustc_session[687b389697f94a83]::session::Session>::time::<(), rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}>
  29:        0x1079c7364 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items
  30:        0x1079d973c - rustc_monomorphize[eb5800245940b2a8]::partitioning::collect_and_partition_mono_items
  31:        0x1085060f8 - rustc_query_system[a2dfadba2cd10974]::query::plumbing::try_execute_query::<rustc_query_impl[a6cc2ac4118918e4]::queries::collect_and_partition_mono_items, rustc_query_impl[a6cc2ac4118918e4]::plumbing::QueryCtxt>
  32:        0x1085b75e0 - rustc_query_impl[a6cc2ac4118918e4]::get_query::collect_and_partition_mono_items
  33:        0x10875dc04 - rustc_codegen_ssa[aeefc1f214e73609]::back::symbol_export::exported_symbols_provider_local
  34:        0x1084651d4 - rustc_query_system[a2dfadba2cd10974]::query::plumbing::try_execute_query::<rustc_query_impl[a6cc2ac4118918e4]::queries::exported_symbols, rustc_query_impl[a6cc2ac4118918e4]::plumbing::QueryCtxt>
  35:        0x1085b7438 - rustc_query_impl[a6cc2ac4118918e4]::get_query::exported_symbols
  36:        0x108a1f054 - <rustc_metadata[c034591ca126f0e8]::rmeta::encoder::EncodeContext>::encode_crate_root
  37:        0x108a269fc - rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata_impl
  38:        0x1089e77c8 - rustc_data_structures[73389b4178ce37f6]::sync::join::<rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata::{closure#0}, rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata::{closure#1}, (), ()>
  39:        0x108a26208 - rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata
  40:        0x1089fe630 - rustc_metadata[c034591ca126f0e8]::fs::encode_and_write_metadata
  41:        0x1053b3188 - rustc_interface[6e4b2cae1a32f574]::passes::start_codegen
  42:        0x10532b930 - <rustc_middle[caf3ad0f18d6cf5a]::ty::context::GlobalCtxt>::enter::<<rustc_interface[6e4b2cae1a32f574]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<alloc[f5305febaccc2c84]::boxed::Box<dyn core[bcec2d62264d7952]::any::Any>, rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  43:        0x1053b6848 - <rustc_interface[6e4b2cae1a32f574]::queries::Queries>::ongoing_codegen
  44:        0x1052df740 - <rustc_interface[6e4b2cae1a32f574]::interface::Compiler>::enter::<rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}::{closure#2}, core[bcec2d62264d7952]::result::Result<core[bcec2d62264d7952]::option::Option<rustc_interface[6e4b2cae1a32f574]::queries::Linker>, rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  45:        0x1052a7ac4 - std[abb65c99166164af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[6e4b2cae1a32f574]::util::run_in_thread_pool_with_globals<rustc_interface[6e4b2cae1a32f574]::interface::run_compiler<core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>, rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}>::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  46:        0x1052a98fc - <<std[abb65c99166164af]::thread::Builder>::spawn_unchecked_<rustc_interface[6e4b2cae1a32f574]::util::run_in_thread_pool_with_globals<rustc_interface[6e4b2cae1a32f574]::interface::run_compiler<core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>, rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}>::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#1} as core[bcec2d62264d7952]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  47:        0x10dd95278 - std::sys::unix::thread::Thread::new::thread_start::h38aefecedc206f89
  48:        0x18348606c - _pthread_kill

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.71.0-nightly (2f2c438dc 2023-05-08) running on aarch64-apple-darwin

note: compiler flags: --crate-type lib -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [collect_and_partition_mono_items] collect_and_partition_mono_items
#1 [exported_symbols] collecting exported symbols for crate `0`
end of query stack
error: internal compiler error: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR available for DefId(30:2773 ~ wgpu_core[e674]::track::buffer::{impl#0}::any_exclusive)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/2f2c438dce75d8cc532c3baa849eeddc0901802c/compiler/rustc_errors/src/lib.rs:1650:9
stack backtrace:
   0:        0x10dd89a88 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hb1d7f427abac4e67
   1:        0x10ddd94dc - core::fmt::write::h99b2593a967c157f
   2:        0x10dd7fc94 - std::io::Write::write_fmt::hb795e309bfe1402e
   3:        0x10dd898dc - std::sys_common::backtrace::print::h2210289afef2f458
   4:        0x10dd8c2f8 - std::panicking::default_hook::{{closure}}::h2e14385d88f14166
   5:        0x10dd8c100 - std::panicking::default_hook::h2065fd506ae6675b
   6:        0x1053034f4 - rustc_driver_impl[578feedc5daeedcf]::install_ice_hook::{closure#0}
   7:        0x10dd8c90c - std::panicking::rust_panic_with_hook::h3b0873ff2ce9653d
   8:        0x1090e7e2c - std[abb65c99166164af]::panicking::begin_panic::<rustc_errors[bfc4faeb8411a782]::ExplicitBug>::{closure#0}
   9:        0x1090e4fe4 - std[abb65c99166164af]::sys_common::backtrace::__rust_end_short_backtrace::<std[abb65c99166164af]::panicking::begin_panic<rustc_errors[bfc4faeb8411a782]::ExplicitBug>::{closure#0}, !>
  10:        0x1096df3e0 - std[abb65c99166164af]::panicking::begin_panic::<rustc_errors[bfc4faeb8411a782]::ExplicitBug>
  11:        0x1090dc300 - <rustc_errors[bfc4faeb8411a782]::HandlerInner>::bug::<alloc[f5305febaccc2c84]::string::String>
  12:        0x1090dbcbc - <rustc_errors[bfc4faeb8411a782]::Handler>::bug::<alloc[f5305febaccc2c84]::string::String>
  13:        0x1091bd4f8 - rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt::<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}
  14:        0x1091bcbbc - rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_opt::<rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:        0x1091bcb88 - rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_context_opt::<rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_opt<rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:        0x1096e426c - rustc_middle[caf3ad0f18d6cf5a]::util::bug::bug_fmt
  17:        0x1079c67e0 - rustc_monomorphize[eb5800245940b2a8]::collector::should_codegen_locally
  18:        0x1079c643c - rustc_monomorphize[eb5800245940b2a8]::collector::visit_instance_use
  19:        0x1079c5c7c - <rustc_monomorphize[eb5800245940b2a8]::collector::MirNeighborCollector as rustc_middle[caf3ad0f18d6cf5a]::mir::visit::Visitor>::visit_terminator
  20:        0x1079c9f0c - rustc_monomorphize[eb5800245940b2a8]::collector::collect_neighbours
  21:        0x1079c8c4c - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  22:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  23:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  24:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  25:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  26:        0x1079e8d34 - <core[bcec2d62264d7952]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[73389b4178ce37f6]::sync::par_for_each_in<alloc[f5305febaccc2c84]::vec::Vec<rustc_middle[caf3ad0f18d6cf5a]::mir::mono::MonoItem>, rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}::{closure#0}>::{closure#0}::{closure#0}> as core[bcec2d62264d7952]::ops::function::FnOnce<()>>::call_once
  27:        0x1079dbf54 - rustc_data_structures[73389b4178ce37f6]::sync::par_for_each_in::<alloc[f5305febaccc2c84]::vec::Vec<rustc_middle[caf3ad0f18d6cf5a]::mir::mono::MonoItem>, rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}::{closure#0}>
  28:        0x1079e4a60 - <rustc_session[687b389697f94a83]::session::Session>::time::<(), rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}>
  29:        0x1079c7364 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items
  30:        0x1079d973c - rustc_monomorphize[eb5800245940b2a8]::partitioning::collect_and_partition_mono_items
  31:        0x1085060f8 - rustc_query_system[a2dfadba2cd10974]::query::plumbing::try_execute_query::<rustc_query_impl[a6cc2ac4118918e4]::queries::collect_and_partition_mono_items, rustc_query_impl[a6cc2ac4118918e4]::plumbing::QueryCtxt>
  32:        0x1085b75e0 - rustc_query_impl[a6cc2ac4118918e4]::get_query::collect_and_partition_mono_items
  33:        0x10875dc04 - rustc_codegen_ssa[aeefc1f214e73609]::back::symbol_export::exported_symbols_provider_local
  34:        0x1084651d4 - rustc_query_system[a2dfadba2cd10974]::query::plumbing::try_execute_query::<rustc_query_impl[a6cc2ac4118918e4]::queries::exported_symbols, rustc_query_impl[a6cc2ac4118918e4]::plumbing::QueryCtxt>
  35:        0x1085b7438 - rustc_query_impl[a6cc2ac4118918e4]::get_query::exported_symbols
  36:        0x108a1f054 - <rustc_metadata[c034591ca126f0e8]::rmeta::encoder::EncodeContext>::encode_crate_root
  37:        0x108a269fc - rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata_impl
  38:        0x1089e77c8 - rustc_data_structures[73389b4178ce37f6]::sync::join::<rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata::{closure#0}, rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata::{closure#1}, (), ()>
  39:        0x108a26208 - rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata
  40:        0x1089fe630 - rustc_metadata[c034591ca126f0e8]::fs::encode_and_write_metadata
  41:        0x1053b3188 - rustc_interface[6e4b2cae1a32f574]::passes::start_codegen
  42:        0x10532b930 - <rustc_middle[caf3ad0f18d6cf5a]::ty::context::GlobalCtxt>::enter::<<rustc_interface[6e4b2cae1a32f574]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<alloc[f5305febaccc2c84]::boxed::Box<dyn core[bcec2d62264d7952]::any::Any>, rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  43:        0x1053b6848 - <rustc_interface[6e4b2cae1a32f574]::queries::Queries>::ongoing_codegen
  44:        0x1052df740 - <rustc_interface[6e4b2cae1a32f574]::interface::Compiler>::enter::<rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}::{closure#2}, core[bcec2d62264d7952]::result::Result<core[bcec2d62264d7952]::option::Option<rustc_interface[6e4b2cae1a32f574]::queries::Linker>, rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  45:        0x1052a7ac4 - std[abb65c99166164af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[6e4b2cae1a32f574]::util::run_in_thread_pool_with_globals<rustc_interface[6e4b2cae1a32f574]::interface::run_compiler<core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>, rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}>::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  46:        0x1052a98fc - <<std[abb65c99166164af]::thread::Builder>::spawn_unchecked_<rustc_interface[6e4b2cae1a32f574]::util::run_in_thread_pool_with_globals<rustc_interface[6e4b2cae1a32f574]::interface::run_compiler<core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>, rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}>::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#1} as core[bcec2d62264d7952]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  47:        0x10dd95278 - std::sys::unix::thread::Thread::new::thread_start::h38aefecedc206f89
  48:        0x18348606c - _pthread_kill

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.71.0-nightly (2f2c438dc 2023-05-08) running on aarch64-apple-darwin

note: compiler flags: --crate-type lib -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [collect_and_partition_mono_items] collect_and_partition_mono_items
#1 [exported_symbols] collecting exported symbols for crate `0`
end of query stack
error: internal compiler error: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR available for DefId(30:2772 ~ wgpu_core[e674]::track::buffer::{impl#0}::all_ordered)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/2f2c438dce75d8cc532c3baa849eeddc0901802c/compiler/rustc_errors/src/lib.rs:1650:9
stack backtrace:
   0:        0x10dd89a88 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hb1d7f427abac4e67
   1:        0x10ddd94dc - core::fmt::write::h99b2593a967c157f
   2:        0x10dd7fc94 - std::io::Write::write_fmt::hb795e309bfe1402e
   3:        0x10dd898dc - std::sys_common::backtrace::print::h2210289afef2f458
   4:        0x10dd8c2f8 - std::panicking::default_hook::{{closure}}::h2e14385d88f14166
   5:        0x10dd8c100 - std::panicking::default_hook::h2065fd506ae6675b
   6:        0x1053034f4 - rustc_driver_impl[578feedc5daeedcf]::install_ice_hook::{closure#0}
   7:        0x10dd8c90c - std::panicking::rust_panic_with_hook::h3b0873ff2ce9653d
   8:        0x1090e7e2c - std[abb65c99166164af]::panicking::begin_panic::<rustc_errors[bfc4faeb8411a782]::ExplicitBug>::{closure#0}
   9:        0x1090e4fe4 - std[abb65c99166164af]::sys_common::backtrace::__rust_end_short_backtrace::<std[abb65c99166164af]::panicking::begin_panic<rustc_errors[bfc4faeb8411a782]::ExplicitBug>::{closure#0}, !>
  10:        0x1096df3e0 - std[abb65c99166164af]::panicking::begin_panic::<rustc_errors[bfc4faeb8411a782]::ExplicitBug>
  11:        0x1090dc300 - <rustc_errors[bfc4faeb8411a782]::HandlerInner>::bug::<alloc[f5305febaccc2c84]::string::String>
  12:        0x1090dbcbc - <rustc_errors[bfc4faeb8411a782]::Handler>::bug::<alloc[f5305febaccc2c84]::string::String>
  13:        0x1091bd4f8 - rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt::<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}
  14:        0x1091bcbbc - rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_opt::<rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:        0x1091bcb88 - rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_context_opt::<rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_opt<rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:        0x1096e426c - rustc_middle[caf3ad0f18d6cf5a]::util::bug::bug_fmt
  17:        0x1079c67e0 - rustc_monomorphize[eb5800245940b2a8]::collector::should_codegen_locally
  18:        0x1079c643c - rustc_monomorphize[eb5800245940b2a8]::collector::visit_instance_use
  19:        0x1079c5c7c - <rustc_monomorphize[eb5800245940b2a8]::collector::MirNeighborCollector as rustc_middle[caf3ad0f18d6cf5a]::mir::visit::Visitor>::visit_terminator
  20:        0x1079c9f0c - rustc_monomorphize[eb5800245940b2a8]::collector::collect_neighbours
  21:        0x1079c8c4c - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  22:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  23:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  24:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  25:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  26:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  27:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  28:        0x1079e8d34 - <core[bcec2d62264d7952]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[73389b4178ce37f6]::sync::par_for_each_in<alloc[f5305febaccc2c84]::vec::Vec<rustc_middle[caf3ad0f18d6cf5a]::mir::mono::MonoItem>, rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}::{closure#0}>::{closure#0}::{closure#0}> as core[bcec2d62264d7952]::ops::function::FnOnce<()>>::call_once
  29:        0x1079dbf54 - rustc_data_structures[73389b4178ce37f6]::sync::par_for_each_in::<alloc[f5305febaccc2c84]::vec::Vec<rustc_middle[caf3ad0f18d6cf5a]::mir::mono::MonoItem>, rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}::{closure#0}>
  30:        0x1079e4a60 - <rustc_session[687b389697f94a83]::session::Session>::time::<(), rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}>
  31:        0x1079c7364 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items
  32:        0x1079d973c - rustc_monomorphize[eb5800245940b2a8]::partitioning::collect_and_partition_mono_items
  33:        0x1085060f8 - rustc_query_system[a2dfadba2cd10974]::query::plumbing::try_execute_query::<rustc_query_impl[a6cc2ac4118918e4]::queries::collect_and_partition_mono_items, rustc_query_impl[a6cc2ac4118918e4]::plumbing::QueryCtxt>
  34:        0x1085b75e0 - rustc_query_impl[a6cc2ac4118918e4]::get_query::collect_and_partition_mono_items
  35:        0x10875dc04 - rustc_codegen_ssa[aeefc1f214e73609]::back::symbol_export::exported_symbols_provider_local
  36:        0x1084651d4 - rustc_query_system[a2dfadba2cd10974]::query::plumbing::try_execute_query::<rustc_query_impl[a6cc2ac4118918e4]::queries::exported_symbols, rustc_query_impl[a6cc2ac4118918e4]::plumbing::QueryCtxt>
  37:        0x1085b7438 - rustc_query_impl[a6cc2ac4118918e4]::get_query::exported_symbols
  38:        0x108a1f054 - <rustc_metadata[c034591ca126f0e8]::rmeta::encoder::EncodeContext>::encode_crate_root
  39:        0x108a269fc - rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata_impl
  40:        0x1089e77c8 - rustc_data_structures[73389b4178ce37f6]::sync::join::<rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata::{closure#0}, rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata::{closure#1}, (), ()>
  41:        0x108a26208 - rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata
  42:        0x1089fe630 - rustc_metadata[c034591ca126f0e8]::fs::encode_and_write_metadata
  43:        0x1053b3188 - rustc_interface[6e4b2cae1a32f574]::passes::start_codegen
  44:        0x10532b930 - <rustc_middle[caf3ad0f18d6cf5a]::ty::context::GlobalCtxt>::enter::<<rustc_interface[6e4b2cae1a32f574]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<alloc[f5305febaccc2c84]::boxed::Box<dyn core[bcec2d62264d7952]::any::Any>, rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  45:        0x1053b6848 - <rustc_interface[6e4b2cae1a32f574]::queries::Queries>::ongoing_codegen
  46:        0x1052df740 - <rustc_interface[6e4b2cae1a32f574]::interface::Compiler>::enter::<rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}::{closure#2}, core[bcec2d62264d7952]::result::Result<core[bcec2d62264d7952]::option::Option<rustc_interface[6e4b2cae1a32f574]::queries::Linker>, rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  47:        0x1052a7ac4 - std[abb65c99166164af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[6e4b2cae1a32f574]::util::run_in_thread_pool_with_globals<rustc_interface[6e4b2cae1a32f574]::interface::run_compiler<core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>, rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}>::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  48:        0x1052a98fc - <<std[abb65c99166164af]::thread::Builder>::spawn_unchecked_<rustc_interface[6e4b2cae1a32f574]::util::run_in_thread_pool_with_globals<rustc_interface[6e4b2cae1a32f574]::interface::run_compiler<core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>, rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}>::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#1} as core[bcec2d62264d7952]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  49:        0x10dd95278 - std::sys::unix::thread::Thread::new::thread_start::h38aefecedc206f89
  50:        0x18348606c - _pthread_kill

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.71.0-nightly (2f2c438dc 2023-05-08) running on aarch64-apple-darwin

note: compiler flags: --crate-type lib -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [collect_and_partition_mono_items] collect_and_partition_mono_items
#1 [exported_symbols] collecting exported symbols for crate `0`
end of query stack
error: internal compiler error: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR available for DefId(30:2988 ~ wgpu_core[e674]::track::texture::{impl#0}::all_ordered)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/2f2c438dce75d8cc532c3baa849eeddc0901802c/compiler/rustc_errors/src/lib.rs:1650:9
stack backtrace:
   0:        0x10dd89a88 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hb1d7f427abac4e67
   1:        0x10ddd94dc - core::fmt::write::h99b2593a967c157f
   2:        0x10dd7fc94 - std::io::Write::write_fmt::hb795e309bfe1402e
   3:        0x10dd898dc - std::sys_common::backtrace::print::h2210289afef2f458
   4:        0x10dd8c2f8 - std::panicking::default_hook::{{closure}}::h2e14385d88f14166
   5:        0x10dd8c100 - std::panicking::default_hook::h2065fd506ae6675b
   6:        0x1053034f4 - rustc_driver_impl[578feedc5daeedcf]::install_ice_hook::{closure#0}
   7:        0x10dd8c90c - std::panicking::rust_panic_with_hook::h3b0873ff2ce9653d
   8:        0x1090e7e2c - std[abb65c99166164af]::panicking::begin_panic::<rustc_errors[bfc4faeb8411a782]::ExplicitBug>::{closure#0}
   9:        0x1090e4fe4 - std[abb65c99166164af]::sys_common::backtrace::__rust_end_short_backtrace::<std[abb65c99166164af]::panicking::begin_panic<rustc_errors[bfc4faeb8411a782]::ExplicitBug>::{closure#0}, !>
  10:        0x1096df3e0 - std[abb65c99166164af]::panicking::begin_panic::<rustc_errors[bfc4faeb8411a782]::ExplicitBug>
  11:        0x1090dc300 - <rustc_errors[bfc4faeb8411a782]::HandlerInner>::bug::<alloc[f5305febaccc2c84]::string::String>
  12:        0x1090dbcbc - <rustc_errors[bfc4faeb8411a782]::Handler>::bug::<alloc[f5305febaccc2c84]::string::String>
  13:        0x1091bd4f8 - rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt::<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}
  14:        0x1091bcbbc - rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_opt::<rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:        0x1091bcb88 - rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_context_opt::<rustc_middle[caf3ad0f18d6cf5a]::ty::context::tls::with_opt<rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:        0x1096e426c - rustc_middle[caf3ad0f18d6cf5a]::util::bug::bug_fmt
  17:        0x1079c67e0 - rustc_monomorphize[eb5800245940b2a8]::collector::should_codegen_locally
  18:        0x1079c643c - rustc_monomorphize[eb5800245940b2a8]::collector::visit_instance_use
  19:        0x1079c5c7c - <rustc_monomorphize[eb5800245940b2a8]::collector::MirNeighborCollector as rustc_middle[caf3ad0f18d6cf5a]::mir::visit::Visitor>::visit_terminator
  20:        0x1079c9f0c - rustc_monomorphize[eb5800245940b2a8]::collector::collect_neighbours
  21:        0x1079c8c4c - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  22:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  23:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  24:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  25:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  26:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  27:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  28:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  29:        0x1079c8f50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
  30:        0x1079e8d34 - <core[bcec2d62264d7952]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[73389b4178ce37f6]::sync::par_for_each_in<alloc[f5305febaccc2c84]::vec::Vec<rustc_middle[caf3ad0f18d6cf5a]::mir::mono::MonoItem>, rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}::{closure#0}>::{closure#0}::{closure#0}> as core[bcec2d62264d7952]::ops::function::FnOnce<()>>::call_once
  31:        0x1079dbf54 - rustc_data_structures[73389b4178ce37f6]::sync::par_for_each_in::<alloc[f5305febaccc2c84]::vec::Vec<rustc_middle[caf3ad0f18d6cf5a]::mir::mono::MonoItem>, rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}::{closure#0}>
  32:        0x1079e4a60 - <rustc_session[687b389697f94a83]::session::Session>::time::<(), rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}>
  33:        0x1079c7364 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items
  34:        0x1079d973c - rustc_monomorphize[eb5800245940b2a8]::partitioning::collect_and_partition_mono_items
  35:        0x1085060f8 - rustc_query_system[a2dfadba2cd10974]::query::plumbing::try_execute_query::<rustc_query_impl[a6cc2ac4118918e4]::queries::collect_and_partition_mono_items, rustc_query_impl[a6cc2ac4118918e4]::plumbing::QueryCtxt>
  36:        0x1085b75e0 - rustc_query_impl[a6cc2ac4118918e4]::get_query::collect_and_partition_mono_items
  37:        0x10875dc04 - rustc_codegen_ssa[aeefc1f214e73609]::back::symbol_export::exported_symbols_provider_local
  38:        0x1084651d4 - rustc_query_system[a2dfadba2cd10974]::query::plumbing::try_execute_query::<rustc_query_impl[a6cc2ac4118918e4]::queries::exported_symbols, rustc_query_impl[a6cc2ac4118918e4]::plumbing::QueryCtxt>
  39:        0x1085b7438 - rustc_query_impl[a6cc2ac4118918e4]::get_query::exported_symbols
  40:        0x108a1f054 - <rustc_metadata[c034591ca126f0e8]::rmeta::encoder::EncodeContext>::encode_crate_root
  41:        0x108a269fc - rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata_impl
  42:        0x1089e77c8 - rustc_data_structures[73389b4178ce37f6]::sync::join::<rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata::{closure#0}, rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata::{closure#1}, (), ()>
  43:        0x108a26208 - rustc_metadata[c034591ca126f0e8]::rmeta::encoder::encode_metadata
  44:        0x1089fe630 - rustc_metadata[c034591ca126f0e8]::fs::encode_and_write_metadata
  45:        0x1053b3188 - rustc_interface[6e4b2cae1a32f574]::passes::start_codegen
  46:        0x10532b930 - <rustc_middle[caf3ad0f18d6cf5a]::ty::context::GlobalCtxt>::enter::<<rustc_interface[6e4b2cae1a32f574]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<alloc[f5305febaccc2c84]::boxed::Box<dyn core[bcec2d62264d7952]::any::Any>, rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  47:        0x1053b6848 - <rustc_interface[6e4b2cae1a32f574]::queries::Queries>::ongoing_codegen
  48:        0x1052df740 - <rustc_interface[6e4b2cae1a32f574]::interface::Compiler>::enter::<rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}::{closure#2}, core[bcec2d62264d7952]::result::Result<core[bcec2d62264d7952]::option::Option<rustc_interface[6e4b2cae1a32f574]::queries::Linker>, rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  49:        0x1052a7ac4 - std[abb65c99166164af]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[6e4b2cae1a32f574]::util::run_in_thread_pool_with_globals<rustc_interface[6e4b2cae1a32f574]::interface::run_compiler<core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>, rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}>::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>
  50:        0x1052a98fc - <<std[abb65c99166164af]::thread::Builder>::spawn_unchecked_<rustc_interface[6e4b2cae1a32f574]::util::run_in_thread_pool_with_globals<rustc_interface[6e4b2cae1a32f574]::interface::run_compiler<core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>, rustc_driver_impl[578feedc5daeedcf]::run_compiler::{closure#1}>::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[bcec2d62264d7952]::result::Result<(), rustc_span[7819acb6a66388c3]::ErrorGuaranteed>>::{closure#1} as core[bcec2d62264d7952]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  51:        0x10dd95278 - std::sys::unix::thread::Thread::new::thread_start::h38aefecedc206f89
  52:        0x18348606c - _pthread_kill

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.71.0-nightly (2f2c438dc 2023-05-08) running on aarch64-apple-darwin

note: compiler flags: --crate-type lib -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [collect_and_partition_mono_items] collect_and_partition_mono_items
#1 [exported_symbols] collecting exported symbols for crate `0`
end of query stack
error: could not compile `wgpu` (lib)
Backtrace

<backtrace>

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions