Skip to content

Compiling wgpu 0.15 results in internal compiler error #111368

New issue

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

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

Already on GitHub? Sign in to your account

Closed
BeastLe9enD opened this issue May 8, 2023 · 4 comments · Fixed by #111371
Closed

Compiling wgpu 0.15 results in internal compiler error #111368

BeastLe9enD opened this issue May 8, 2023 · 4 comments · Fixed by #111371
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@BeastLe9enD
Copy link

Code

Just create a new project with cargo new --lib example and add wgpu = 0.15 to Cargo.toml. You don't need any code in the lib.rs, just adding the create is enough.

Meta

rustc 1.71.0-nightly (c4190f2d3 2023-05-07)
binary: rustc
commit-hash: c4190f2d3a46a59f435f7b42f58bc22b2f4d6917
commit-date: 2023-05-07
host: x86_64-pc-windows-msvc
release: 1.71.0-nightly
LLVM version: 16.0.2

Error output

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

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917\compiler\rustc_errors\src\lib.rs:1650:9
stack backtrace:
   0:     0x7ffe2be7618c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h589fff291caad0e9
   1:     0x7ffe2beaed9b - core::fmt::write::h2171a44e38cedecb
   2:     0x7ffe2be6b879 - <std::io::IoSlice as core::fmt::Debug>::fmt::h061f4aa272b6ea31
   3:     0x7ffe2be75f3b - std::sys::common::alloc::realloc_fallback::hcfa014c00a26eca2
   4:     0x7ffe2be79759 - std::panicking::default_hook::h47e91f5308fe81c9
   5:     0x7ffe2be7940f - std::panicking::default_hook::h47e91f5308fe81c9
   6:     0x7ffdfc978e46 - rustc_driver_impl[d78d41273699e6fd]::install_ice_hook
   7:     0x7ffe2be79e5b - std::panicking::rust_panic_with_hook::h5aa5099f5e4d9bb1
   8:     0x7ffdfee030a3 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
   9:     0x7ffdfee00b19 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  10:     0x7ffdfee00ab9 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  11:     0x7ffdfedf94e0 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  12:     0x7ffdfedf909c - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  13:     0x7ffdfee30a1d - rustc_middle[38bc2b5443285d88]::util::bug::bug_fmt
  14:     0x7ffdfee2ffdd - <rustc_middle[38bc2b5443285d88]::ty::assoc::AssocItems>::find_by_name_and_kinds
  15:     0x7ffdfee2ff9f - <rustc_middle[38bc2b5443285d88]::ty::assoc::AssocItems>::find_by_name_and_kinds
  16:     0x7ffdfee3090f - rustc_middle[38bc2b5443285d88]::util::bug::bug_fmt
  17:     0x7ffdfbc90658 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_constant
  18:     0x7ffdfbc873b0 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  19:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  20:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  21:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  22:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  23:     0x7ffdfa93f811 - <rustc_hir_analysis[3d1752039b41016e]::collect::resolve_bound_vars::BoundVarContext as rustc_hir[4af8980b68494400]::intravisit::Visitor>::visit_trait_item
  24:     0x7ffdfa947262 - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  25:     0x7ffdfa946aef - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  26:     0x7ffdfa942481 - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  27:     0x7ffdfacaf6be - rustc_query_impl[c5cf013de40e4b1]::plumbing::loadable_from_disk
  28:     0x7ffdfab7cd16 - rustc_query_impl[c5cf013de40e4b1]::query_system_fns
  29:     0x7ffdfc3b2045 - rustc_codegen_ssa[f99ce3f7c2c1bf9e]::debuginfo::wants_c_like_enum_debuginfo
  30:     0x7ffdfac235af - rustc_query_impl[c5cf013de40e4b1]::plumbing::loadable_from_disk
  31:     0x7ffdfab7cbaa - rustc_query_impl[c5cf013de40e4b1]::query_system_fns
  32:     0x7ffdfc3f44d7 - <rustc_metadata[ff44d38fe982060f]::rmeta::encoder::EncodeContext as rustc_type_ir[6c5130269c2587c]::codec::TyEncoder>::predicate_shorthands
  33:     0x7ffdfad745a0 - rustc_metadata[ff44d38fe982060f]::rmeta::encoder::encode_metadata
  34:     0x7ffdfad7399e - rustc_metadata[ff44d38fe982060f]::rmeta::encoder::encode_metadata
  35:     0x7ffdfad79d32 - rustc_metadata[ff44d38fe982060f]::fs::encode_and_write_metadata
  36:     0x7ffdfa1a4803 - rustc_interface[924d4f64a1bf3a2a]::passes::start_codegen
  37:     0x7ffdfa1a6429 - rustc_interface[924d4f64a1bf3a2a]::passes::start_codegen
  38:     0x7ffdfa194185 - <rustc_interface[924d4f64a1bf3a2a]::queries::Queries>::ongoing_codegen
  39:     0x7ffdfa15971a - rustc_driver_impl[d78d41273699e6fd]::args::arg_expand_all
  40:     0x7ffdfa17a98b - <rustc_middle[38bc2b5443285d88]::ty::SymbolName as core[208341b000719f40]::fmt::Debug>::fmt
  41:     0x7ffdfa158c59 - rustc_driver_impl[d78d41273699e6fd]::main
  42:     0x7ffdfa179bc6 - <rustc_middle[38bc2b5443285d88]::ty::SymbolName as core[208341b000719f40]::fmt::Debug>::fmt
  43:     0x7ffe2be8cf6c - std::sys::windows::thread::Thread::new::hcb1bee3f60360344
  44:     0x7ffe78b9244d - BaseThreadInitThunk
  45:     0x7ffe79a4df78 - RtlUserThreadStart

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 (c4190f2d3 2023-05-07) running on x86_64-pc-windows-msvc

note: compiler flags: --crate-type lib -C embed-bitcode=no -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(24:2795 ~ wgpu_core[3156]::track::buffer::{impl#0}::any_exclusive)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917\compiler\rustc_errors\src\lib.rs:1650:9
stack backtrace:
   0:     0x7ffe2be7618c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h589fff291caad0e9
   1:     0x7ffe2beaed9b - core::fmt::write::h2171a44e38cedecb
   2:     0x7ffe2be6b879 - <std::io::IoSlice as core::fmt::Debug>::fmt::h061f4aa272b6ea31
   3:     0x7ffe2be75f3b - std::sys::common::alloc::realloc_fallback::hcfa014c00a26eca2
   4:     0x7ffe2be79759 - std::panicking::default_hook::h47e91f5308fe81c9
   5:     0x7ffe2be7940f - std::panicking::default_hook::h47e91f5308fe81c9
   6:     0x7ffdfc978e46 - rustc_driver_impl[d78d41273699e6fd]::install_ice_hook
   7:     0x7ffe2be79e5b - std::panicking::rust_panic_with_hook::h5aa5099f5e4d9bb1
   8:     0x7ffdfee030a3 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
   9:     0x7ffdfee00b19 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  10:     0x7ffdfee00ab9 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  11:     0x7ffdfedf94e0 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  12:     0x7ffdfedf909c - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  13:     0x7ffdfee30a1d - rustc_middle[38bc2b5443285d88]::util::bug::bug_fmt
  14:     0x7ffdfee2ffdd - <rustc_middle[38bc2b5443285d88]::ty::assoc::AssocItems>::find_by_name_and_kinds
  15:     0x7ffdfee2ff9f - <rustc_middle[38bc2b5443285d88]::ty::assoc::AssocItems>::find_by_name_and_kinds
  16:     0x7ffdfee3090f - rustc_middle[38bc2b5443285d88]::util::bug::bug_fmt
  17:     0x7ffdfbc90658 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_constant
  18:     0x7ffdfbc873b0 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  19:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  20:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  21:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  22:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  23:     0x7ffdfa93f811 - <rustc_hir_analysis[3d1752039b41016e]::collect::resolve_bound_vars::BoundVarContext as rustc_hir[4af8980b68494400]::intravisit::Visitor>::visit_trait_item
  24:     0x7ffdfa947262 - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  25:     0x7ffdfa946aef - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  26:     0x7ffdfa942481 - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  27:     0x7ffdfacaf6be - rustc_query_impl[c5cf013de40e4b1]::plumbing::loadable_from_disk
  28:     0x7ffdfab7cd16 - rustc_query_impl[c5cf013de40e4b1]::query_system_fns
  29:     0x7ffdfc3b2045 - rustc_codegen_ssa[f99ce3f7c2c1bf9e]::debuginfo::wants_c_like_enum_debuginfo
  30:     0x7ffdfac235af - rustc_query_impl[c5cf013de40e4b1]::plumbing::loadable_from_disk
  31:     0x7ffdfab7cbaa - rustc_query_impl[c5cf013de40e4b1]::query_system_fns
  32:     0x7ffdfc3f44d7 - <rustc_metadata[ff44d38fe982060f]::rmeta::encoder::EncodeContext as rustc_type_ir[6c5130269c2587c]::codec::TyEncoder>::predicate_shorthands
  33:     0x7ffdfad745a0 - rustc_metadata[ff44d38fe982060f]::rmeta::encoder::encode_metadata
  34:     0x7ffdfad7399e - rustc_metadata[ff44d38fe982060f]::rmeta::encoder::encode_metadata
  35:     0x7ffdfad79d32 - rustc_metadata[ff44d38fe982060f]::fs::encode_and_write_metadata
  36:     0x7ffdfa1a4803 - rustc_interface[924d4f64a1bf3a2a]::passes::start_codegen
  37:     0x7ffdfa1a6429 - rustc_interface[924d4f64a1bf3a2a]::passes::start_codegen
  38:     0x7ffdfa194185 - <rustc_interface[924d4f64a1bf3a2a]::queries::Queries>::ongoing_codegen
  39:     0x7ffdfa15971a - rustc_driver_impl[d78d41273699e6fd]::args::arg_expand_all
  40:     0x7ffdfa17a98b - <rustc_middle[38bc2b5443285d88]::ty::SymbolName as core[208341b000719f40]::fmt::Debug>::fmt
  41:     0x7ffdfa158c59 - rustc_driver_impl[d78d41273699e6fd]::main
  42:     0x7ffdfa179bc6 - <rustc_middle[38bc2b5443285d88]::ty::SymbolName as core[208341b000719f40]::fmt::Debug>::fmt
  43:     0x7ffe2be8cf6c - std::sys::windows::thread::Thread::new::hcb1bee3f60360344
  44:     0x7ffe78b9244d - BaseThreadInitThunk
  45:     0x7ffe79a4df78 - RtlUserThreadStart

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 (c4190f2d3 2023-05-07) running on x86_64-pc-windows-msvc

note: compiler flags: --crate-type lib -C embed-bitcode=no -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(24:2794 ~ wgpu_core[3156]::track::buffer::{impl#0}::all_ordered)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917\compiler\rustc_errors\src\lib.rs:1650:9
stack backtrace:
   0:     0x7ffe2be7618c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h589fff291caad0e9
   1:     0x7ffe2beaed9b - core::fmt::write::h2171a44e38cedecb
   2:     0x7ffe2be6b879 - <std::io::IoSlice as core::fmt::Debug>::fmt::h061f4aa272b6ea31
   3:     0x7ffe2be75f3b - std::sys::common::alloc::realloc_fallback::hcfa014c00a26eca2
   4:     0x7ffe2be79759 - std::panicking::default_hook::h47e91f5308fe81c9
   5:     0x7ffe2be7940f - std::panicking::default_hook::h47e91f5308fe81c9
   6:     0x7ffdfc978e46 - rustc_driver_impl[d78d41273699e6fd]::install_ice_hook
   7:     0x7ffe2be79e5b - std::panicking::rust_panic_with_hook::h5aa5099f5e4d9bb1
   8:     0x7ffdfee030a3 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
   9:     0x7ffdfee00b19 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  10:     0x7ffdfee00ab9 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  11:     0x7ffdfedf94e0 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  12:     0x7ffdfedf909c - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  13:     0x7ffdfee30a1d - rustc_middle[38bc2b5443285d88]::util::bug::bug_fmt
  14:     0x7ffdfee2ffdd - <rustc_middle[38bc2b5443285d88]::ty::assoc::AssocItems>::find_by_name_and_kinds
  15:     0x7ffdfee2ff9f - <rustc_middle[38bc2b5443285d88]::ty::assoc::AssocItems>::find_by_name_and_kinds
  16:     0x7ffdfee3090f - rustc_middle[38bc2b5443285d88]::util::bug::bug_fmt
  17:     0x7ffdfbc90658 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_constant
  18:     0x7ffdfbc873b0 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  19:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  20:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  21:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  22:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  23:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  24:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  25:     0x7ffdfa93f811 - <rustc_hir_analysis[3d1752039b41016e]::collect::resolve_bound_vars::BoundVarContext as rustc_hir[4af8980b68494400]::intravisit::Visitor>::visit_trait_item
  26:     0x7ffdfa947262 - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  27:     0x7ffdfa946aef - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  28:     0x7ffdfa942481 - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  29:     0x7ffdfacaf6be - rustc_query_impl[c5cf013de40e4b1]::plumbing::loadable_from_disk
  30:     0x7ffdfab7cd16 - rustc_query_impl[c5cf013de40e4b1]::query_system_fns
  31:     0x7ffdfc3b2045 - rustc_codegen_ssa[f99ce3f7c2c1bf9e]::debuginfo::wants_c_like_enum_debuginfo
  32:     0x7ffdfac235af - rustc_query_impl[c5cf013de40e4b1]::plumbing::loadable_from_disk
  33:     0x7ffdfab7cbaa - rustc_query_impl[c5cf013de40e4b1]::query_system_fns
  34:     0x7ffdfc3f44d7 - <rustc_metadata[ff44d38fe982060f]::rmeta::encoder::EncodeContext as rustc_type_ir[6c5130269c2587c]::codec::TyEncoder>::predicate_shorthands
  35:     0x7ffdfad745a0 - rustc_metadata[ff44d38fe982060f]::rmeta::encoder::encode_metadata
  36:     0x7ffdfad7399e - rustc_metadata[ff44d38fe982060f]::rmeta::encoder::encode_metadata
  37:     0x7ffdfad79d32 - rustc_metadata[ff44d38fe982060f]::fs::encode_and_write_metadata
  38:     0x7ffdfa1a4803 - rustc_interface[924d4f64a1bf3a2a]::passes::start_codegen
  39:     0x7ffdfa1a6429 - rustc_interface[924d4f64a1bf3a2a]::passes::start_codegen
  40:     0x7ffdfa194185 - <rustc_interface[924d4f64a1bf3a2a]::queries::Queries>::ongoing_codegen
  41:     0x7ffdfa15971a - rustc_driver_impl[d78d41273699e6fd]::args::arg_expand_all
  42:     0x7ffdfa17a98b - <rustc_middle[38bc2b5443285d88]::ty::SymbolName as core[208341b000719f40]::fmt::Debug>::fmt
  43:     0x7ffdfa158c59 - rustc_driver_impl[d78d41273699e6fd]::main
  44:     0x7ffdfa179bc6 - <rustc_middle[38bc2b5443285d88]::ty::SymbolName as core[208341b000719f40]::fmt::Debug>::fmt
  45:     0x7ffe2be8cf6c - std::sys::windows::thread::Thread::new::hcb1bee3f60360344
  46:     0x7ffe78b9244d - BaseThreadInitThunk
  47:     0x7ffe79a4df78 - RtlUserThreadStart

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 (c4190f2d3 2023-05-07) running on x86_64-pc-windows-msvc

note: compiler flags: --crate-type lib -C embed-bitcode=no -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(24:3010 ~ wgpu_core[3156]::track::texture::{impl#0}::all_ordered)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917\compiler\rustc_errors\src\lib.rs:1650:9
stack backtrace:
   0:     0x7ffe2be7618c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h589fff291caad0e9
   1:     0x7ffe2beaed9b - core::fmt::write::h2171a44e38cedecb
   2:     0x7ffe2be6b879 - <std::io::IoSlice as core::fmt::Debug>::fmt::h061f4aa272b6ea31
   3:     0x7ffe2be75f3b - std::sys::common::alloc::realloc_fallback::hcfa014c00a26eca2
   4:     0x7ffe2be79759 - std::panicking::default_hook::h47e91f5308fe81c9
   5:     0x7ffe2be7940f - std::panicking::default_hook::h47e91f5308fe81c9
   6:     0x7ffdfc978e46 - rustc_driver_impl[d78d41273699e6fd]::install_ice_hook
   7:     0x7ffe2be79e5b - std::panicking::rust_panic_with_hook::h5aa5099f5e4d9bb1
   8:     0x7ffdfee030a3 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
   9:     0x7ffdfee00b19 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  10:     0x7ffdfee00ab9 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  11:     0x7ffdfedf94e0 - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  12:     0x7ffdfedf909c - <rustc_infer[a65e2b8346eabc11]::traits::project::ProjectionCacheEntry as core[208341b000719f40]::fmt::Debug>::fmt
  13:     0x7ffdfee30a1d - rustc_middle[38bc2b5443285d88]::util::bug::bug_fmt
  14:     0x7ffdfee2ffdd - <rustc_middle[38bc2b5443285d88]::ty::assoc::AssocItems>::find_by_name_and_kinds
  15:     0x7ffdfee2ff9f - <rustc_middle[38bc2b5443285d88]::ty::assoc::AssocItems>::find_by_name_and_kinds
  16:     0x7ffdfee3090f - rustc_middle[38bc2b5443285d88]::util::bug::bug_fmt
  17:     0x7ffdfbc90658 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_constant
  18:     0x7ffdfbc873b0 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  19:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  20:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  21:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  22:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  23:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  24:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  25:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  26:     0x7ffdfbc877c8 - <rustc_monomorphize[71ab258f76e48289]::collector::MirNeighborCollector as rustc_middle[38bc2b5443285d88]::mir::visit::Visitor>::visit_operand
  27:     0x7ffdfa93f811 - <rustc_hir_analysis[3d1752039b41016e]::collect::resolve_bound_vars::BoundVarContext as rustc_hir[4af8980b68494400]::intravisit::Visitor>::visit_trait_item
  28:     0x7ffdfa947262 - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  29:     0x7ffdfa946aef - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  30:     0x7ffdfa942481 - <rustc_monomorphize[71ab258f76e48289]::partitioning::default::DefaultPartitioning as rustc_monomorphize[71ab258f76e48289]::partitioning::Partition>::merge_codegen_units
  31:     0x7ffdfacaf6be - rustc_query_impl[c5cf013de40e4b1]::plumbing::loadable_from_disk
  32:     0x7ffdfab7cd16 - rustc_query_impl[c5cf013de40e4b1]::query_system_fns
  33:     0x7ffdfc3b2045 - rustc_codegen_ssa[f99ce3f7c2c1bf9e]::debuginfo::wants_c_like_enum_debuginfo
  34:     0x7ffdfac235af - rustc_query_impl[c5cf013de40e4b1]::plumbing::loadable_from_disk
  35:     0x7ffdfab7cbaa - rustc_query_impl[c5cf013de40e4b1]::query_system_fns
  36:     0x7ffdfc3f44d7 - <rustc_metadata[ff44d38fe982060f]::rmeta::encoder::EncodeContext as rustc_type_ir[6c5130269c2587c]::codec::TyEncoder>::predicate_shorthands
  37:     0x7ffdfad745a0 - rustc_metadata[ff44d38fe982060f]::rmeta::encoder::encode_metadata
  38:     0x7ffdfad7399e - rustc_metadata[ff44d38fe982060f]::rmeta::encoder::encode_metadata
  39:     0x7ffdfad79d32 - rustc_metadata[ff44d38fe982060f]::fs::encode_and_write_metadata
  40:     0x7ffdfa1a4803 - rustc_interface[924d4f64a1bf3a2a]::passes::start_codegen
  41:     0x7ffdfa1a6429 - rustc_interface[924d4f64a1bf3a2a]::passes::start_codegen
  42:     0x7ffdfa194185 - <rustc_interface[924d4f64a1bf3a2a]::queries::Queries>::ongoing_codegen
  43:     0x7ffdfa15971a - rustc_driver_impl[d78d41273699e6fd]::args::arg_expand_all
  44:     0x7ffdfa17a98b - <rustc_middle[38bc2b5443285d88]::ty::SymbolName as core[208341b000719f40]::fmt::Debug>::fmt
  45:     0x7ffdfa158c59 - rustc_driver_impl[d78d41273699e6fd]::main
  46:     0x7ffdfa179bc6 - <rustc_middle[38bc2b5443285d88]::ty::SymbolName as core[208341b000719f40]::fmt::Debug>::fmt
  47:     0x7ffe2be8cf6c - std::sys::windows::thread::Thread::new::hcb1bee3f60360344
  48:     0x7ffe78b9244d - BaseThreadInitThunk
  49:     0x7ffe79a4df78 - RtlUserThreadStart

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 (c4190f2d3 2023-05-07) running on x86_64-pc-windows-msvc

note: compiler flags: --crate-type lib -C embed-bitcode=no -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

@BeastLe9enD BeastLe9enD added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 8, 2023
@BeastLe9enD
Copy link
Author

Seems to be the same as #111334

@kpreid
Copy link
Contributor

kpreid commented May 9, 2023

Same error with wgpu 0.16, too.

This was referenced May 9, 2023
@BeastLe9enD
Copy link
Author

Same on 2023-05-09, rust version 1.71.0-nightly (2f2c438 2023-05-08)

@oskgo
Copy link
Contributor

oskgo commented May 9, 2023

I get a similar error compiling tfhe, which does not have a transitive wgpu dependency.

Backtrace
error: internal compiler error: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR available for DefId(20:166 ~ tfhe[0ecc]::boolean::engine::{impl#4}::and)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/2f2c438dce75d8cc532c3baa849eeddc0901802c/compiler/rustc_errors/src/lib.rs:1650:9
stack backtrace:
 0:        0x100a01a88 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hb1d7f427abac4e67
 1:        0x100a514dc - core::fmt::write::h99b2593a967c157f
 2:        0x1009f7c94 - std::io::Write::write_fmt::hb795e309bfe1402e
 3:        0x100a018dc - std::sys_common::backtrace::print::h2210289afef2f458
 4:        0x100a042f8 - std::panicking::default_hook::{{closure}}::h2e14385d88f14166
 5:        0x100a04100 - std::panicking::default_hook::h2065fd506ae6675b
 6:        0x108e474f4 - rustc_driver_impl[578feedc5daeedcf]::install_ice_hook::{closure#0}
 7:        0x100a0490c - std::panicking::rust_panic_with_hook::h3b0873ff2ce9653d
 8:        0x10cc2be2c - std[abb65c99166164af]::panicking::begin_panic::<rustc_errors[bfc4faeb8411a782]::ExplicitBug>::{closure#0}
 9:        0x10cc28fe4 - std[abb65c99166164af]::sys_common::backtrace::__rust_end_short_backtrace::<std[abb65c99166164af]::panicking::begin_panic<rustc_errors[bfc4faeb8411a782]::ExplicitBug>::{closure#0}, !>
10:        0x10d2233e0 - std[abb65c99166164af]::panicking::begin_panic::<rustc_errors[bfc4faeb8411a782]::ExplicitBug>
11:        0x10cc20300 - <rustc_errors[bfc4faeb8411a782]::HandlerInner>::bug::<alloc[f5305febaccc2c84]::string::String>
12:        0x10cc1fcbc - <rustc_errors[bfc4faeb8411a782]::Handler>::bug::<alloc[f5305febaccc2c84]::string::String>
13:        0x10cd014f8 - rustc_middle[caf3ad0f18d6cf5a]::util::bug::opt_span_bug_fmt::<rustc_span[7819acb6a66388c3]::span_encoding::Span>::{closure#0}
14:        0x10cd00bbc - 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:        0x10cd00b88 - 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:        0x10d22826c - rustc_middle[caf3ad0f18d6cf5a]::util::bug::bug_fmt
17:        0x10b50a7e0 - rustc_monomorphize[eb5800245940b2a8]::collector::should_codegen_locally
18:        0x10b50a43c - rustc_monomorphize[eb5800245940b2a8]::collector::visit_instance_use
19:        0x10b509c7c - <rustc_monomorphize[eb5800245940b2a8]::collector::MirNeighborCollector as rustc_middle[caf3ad0f18d6cf5a]::mir::visit::Visitor>::visit_terminator
20:        0x10b50df0c - rustc_monomorphize[eb5800245940b2a8]::collector::collect_neighbours
21:        0x10b50cc4c - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
22:        0x10b50cf50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
23:        0x10b50cf50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
24:        0x10b50cf50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
25:        0x10b50cf50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
26:        0x10b50cf50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
27:        0x10b50cf50 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_items_rec
28:        0x10b52cd34 - <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:        0x10b51ff54 - 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:        0x10b528a60 - <rustc_session[687b389697f94a83]::session::Session>::time::<(), rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items::{closure#1}>
31:        0x10b50b364 - rustc_monomorphize[eb5800245940b2a8]::collector::collect_crate_mono_items
32:        0x10b51d73c - rustc_monomorphize[eb5800245940b2a8]::partitioning::collect_and_partition_mono_items
33:        0x10c049cb8 - 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:        0x10c0fb5e0 - rustc_query_impl[a6cc2ac4118918e4]::get_query::collect_and_partition_mono_items
35:        0x108f04b48 - rustc_codegen_ssa[aeefc1f214e73609]::base::codegen_crate::<rustc_codegen_llvm[6b91aa987c2cba1e]::LlvmCodegenBackend>
36:        0x108f5aca4 - <rustc_codegen_llvm[6b91aa987c2cba1e]::LlvmCodegenBackend as rustc_codegen_ssa[aeefc1f214e73609]::traits::backend::CodegenBackend>::codegen_crate
37:        0x108ef720c - rustc_interface[6e4b2cae1a32f574]::passes::start_codegen
38:        0x108e6f930 - <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>>
39:        0x108efa848 - <rustc_interface[6e4b2cae1a32f574]::queries::Queries>::ongoing_codegen
40:        0x108e23740 - <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>>
41:        0x108debac4 - 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>>
42:        0x108ded8fc - <<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}
43:        0x100a0d278 - std::sys::unix::thread::Thread::new::thread_start::h38aefecedc206f89
44:        0x1a0a63fa8 - __pthread_joiner_wake

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 bin -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental=[REDACTED]

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
end of query stack

@bors bors closed this as completed in 3a37c2f May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants