Closed
Description
Code
unsafe fn pointer(v: usize, w: u32) {
}
pub trait UniformScalar {}
impl UniformScalar for u32 {}
pub trait GlUniformScalar: UniformScalar {
const FACTORY: unsafe fn(usize, Self) -> ();
}
impl GlUniformScalar for u32 {
const FACTORY: unsafe fn(usize, Self) -> () = pointer;
}
pub fn foo<T: UniformScalar>(value: T) {
<T as GlUniformScalar>::FACTORY(1, value);
}
Meta
rustc --version --verbose
:
rustc 1.67.0-nightly (2585bcea0 2022-11-28)
binary: rustc
commit-hash: 2585bcea0bc2a9c42a4be2c1eba5c61137f2b167
commit-date: 2022-11-28
host: x86_64-pc-windows-msvc
release: 1.67.0-nightly
LLVM version: 15.0.4
Error output
error: internal compiler error: compiler\rustc_hir_analysis\src\collect.rs:1186:13: unexpected sort of node in fn_sig(): TraitItem(TraitItem { ident: FACTORY#0, owner_id: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, generics: Generics { params: [], predicates: [], has_where_clause_predicates: false, where_clause_span: no-location (#0), span: no-location (#0) }, kind:
Const(Ty { hir_id: HirId { owner: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, local_id: 6 }, kind: BareFn(BareFnTy { unsafety: Unsafe, abi: Rust, generic_params: [], decl: FnDecl { inputs: [Ty { hir_id: HirId { owner: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, local_id: 1 }, kind: Path(Resolved(None, Path { span:
librashader-runtime-gl\src\util.rs:145:30: 145:35 (#0), res: PrimTy(Uint(Usize)), segments: [PathSegment { ident: usize#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, local_id: 2 }, res: PrimTy(Uint(Usize)), args: None, infer_args: false }] })), span: librashader-runtime-gl\src\util.rs:145:30: 145:35 (#0) }, Ty { hir_id: HirId { owner: OwnerId
{ def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, local_id: 3 }, kind: Path(Resolved(None, Path { span: librashader-runtime-gl\src\util.rs:145:37: 145:41 (#0), res: SelfTyParam { trait_: DefId(0:488 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar) }, segments: [PathSegment { ident: Self#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::u
til::GlUniformScalar::FACTORY) }, local_id: 4 }, res: SelfTyParam { trait_: DefId(0:488 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar) }, args: None, infer_args: false }] })), span: librashader-runtime-gl\src\util.rs:145:37: 145:41 (#0) }], output: Return(Ty { hir_id: HirId { owner: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, local_id: 5 }, kind: Tup([]), spa
n: librashader-runtime-gl\src\util.rs:145:46: 145:48 (#0) }), c_variadic: false, implicit_self: None, lifetime_elision_allowed: false }, param_names: [#0, #0] }), span: librashader-runtime-gl\src\util.rs:145:20: 145:48 (#0) }, None), span: librashader-runtime-gl\src\util.rs:145:5: 145:49 (#0), defaultness: Default { has_value: false } })
thread 'rustc' panicked at 'Box<dyn Any>', /rustc/2585bcea0bc2a9c42a4be2c1eba5c61137f2b167\compiler\rustc_errors\src\lib.rs:1575:9
stack backtrace:
0: 0x7ffede139e32 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he98090efe44cd0fc
1: 0x7ffede1762ab - core::fmt::write::hb954b2197d3e582b
2: 0x7ffede12ca6a - <std::io::IoSlice as core::fmt::Debug>::fmt::h32e63234a004ac6b
3: 0x7ffede139b7b - std::sys::common::alloc::realloc_fallback::h68c0777f4e737e72
4: 0x7ffede13d489 - std::panicking::default_hook::h1f60f9f1445f2537
5: 0x7ffede13d10b - std::panicking::default_hook::h1f60f9f1445f2537
6: 0x7ffee0f4c62d - rustc_driver[d0f83ceb44e5ac18]::describe_lints
7: 0x7ffede13ddf0 - std::panicking::rust_panic_with_hook::hbfae456cc425367a
8: 0x7ffee3297c63 - <rustc_middle[d0a66062f335146f]::ty::instance::InstanceDef as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
9: 0x7ffee3296a99 - <rustc_middle[d0a66062f335146f]::ty::instance::InstanceDef as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
10: 0x7ffee325cec9 - <rustc_middle[d0a66062f335146f]::mir::coverage::InjectedExpressionIndex as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
11: 0x7ffee3294cc9 - <rustc_middle[d0a66062f335146f]::ty::instance::InstanceDef as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
12: 0x7ffee3294be0 - <rustc_middle[d0a66062f335146f]::ty::instance::InstanceDef as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
13: 0x7ffee32946d2 - <rustc_middle[d0a66062f335146f]::ty::instance::InstanceDef as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
14: 0x7ffee3270648 - <rustc_middle[d0a66062f335146f]::ty::sty::Binder<rustc_middle[d0a66062f335146f]::ty::TraitPredicate>>::print_modifiers_and_trait_path
15: 0x7ffee32724c8 - rustc_middle[d0a66062f335146f]::util::bug::bug_fmt
16: 0x7ffee3272445 - rustc_middle[d0a66062f335146f]::util::bug::bug_fmt
17: 0x7ffee0216f1f - rustc_hir_analysis[921f0d197ecacc03]::collect::get_infer_ret_ty
18: 0x7ffedf14378c - <rustc_const_eval[febab0397fa2a2b1]::transform::check_consts::resolver::State as core[a700df5e4066f152]::clone::Clone>::clone_from
19: 0x7ffedf1ce8da - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
20: 0x7ffee090ffad - <rustc_span[af6edd4795884392]::symbol::Symbol as rustc_serialize[a990790a377fd69]::serialize::Encodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheEncoder>>::encode
21: 0x7ffee081faec - <rustc_query_impl[3e532bb7df4263fc]::Queries as rustc_middle[d0a66062f335146f]::ty::query::QueryEngine>::as_any
22: 0x7ffee237577d - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::check_block_no_value
23: 0x7ffee2374be5 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::check_block_no_value
24: 0x7ffee00df346 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::probe_instantiate_query_response
25: 0x7ffee0076e8c - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::check_call
26: 0x7ffee00a1e32 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::demand_coerce
27: 0x7ffee00ef510 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::check_struct_path
28: 0x7ffee00a1ff8 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::demand_coerce
29: 0x7ffee00b6ae0 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::demand_coerce
30: 0x7ffee015095c - <rustc_hir_typeck[b4e1bc149af20378]::method::probe::Pick>::maybe_emit_unstable_name_collision_hint
31: 0x7ffee01380d7 - <rustc_hir_typeck[b4e1bc149af20378]::inherited::Inherited>::build
32: 0x7ffee00650bf - <rustc_hir_typeck[b4e1bc149af20378]::UnsafetyState>::recurse
33: 0x7ffedf143229 - <rustc_const_eval[febab0397fa2a2b1]::transform::check_consts::resolver::State as core[a700df5e4066f152]::clone::Clone>::clone_from
34: 0x7ffedf1cbc75 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
35: 0x7ffee09480c5 - <rustc_span[af6edd4795884392]::symbol::Symbol as rustc_serialize[a990790a377fd69]::serialize::Encodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheEncoder>>::encode
36: 0x7ffee081fea6 - <rustc_query_impl[3e532bb7df4263fc]::Queries as rustc_middle[d0a66062f335146f]::ty::query::QueryEngine>::as_any
37: 0x7ffee0155bb3 - <rustc_hir_typeck[b4e1bc149af20378]::method::probe::Pick>::maybe_emit_unstable_name_collision_hint
38: 0x7ffedee327a1 - <rustc_hir_typeck[b4e1bc149af20378]::diverges::Diverges as core[a700df5e4066f152]::ops::bit::BitAnd>::bitand
39: 0x7ffedf144ebf - <rustc_const_eval[febab0397fa2a2b1]::transform::check_consts::resolver::State as core[a700df5e4066f152]::clone::Clone>::clone_from
40: 0x7ffedf1f1456 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
41: 0x7ffedf295123 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
42: 0x7ffedf2fcde6 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
43: 0x7ffedee9453a - <<dyn rustc_hir_analysis[921f0d197ecacc03]::astconv::AstConv>::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis[921f0d197ecacc03]::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
44: 0x7ffedee8a323 - rustc_hir_analysis[921f0d197ecacc03]::check_crate
45: 0x7ffede75d725 - rustc_interface[e6db9c4597e420e0]::passes::analysis
46: 0x7ffedf144aef - <rustc_const_eval[febab0397fa2a2b1]::transform::check_consts::resolver::State as core[a700df5e4066f152]::clone::Clone>::clone_from
47: 0x7ffedf1ec449 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
48: 0x7ffedf283f90 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
49: 0x7ffedf304aca - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
50: 0x7ffede71bdb4 - <unknown>
51: 0x7ffede72c7f6 - rustc_driver[d0f83ceb44e5ac18]::args::arg_expand_all
52: 0x7ffede72bb18 - rustc_driver[d0f83ceb44e5ac18]::args::arg_expand_all
53: 0x7ffede71cd29 - <unknown>
54: 0x7ffede713a3d - <unknown>
55: 0x7ffede15017c - std::sys::windows::thread::Thread::new::h4f63e44627cbb569
56: 0x7ff810fd74b4 - BaseThreadInitThunk
57: 0x7ff811bc26a1 - RtlUserThreadStart
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.67.0-nightly (2585bcea0 2022-11-28) running on x86_64-pc-windows-msvc
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [fn_sig] computing function signature of `util::GlUniformScalar::FACTORY`
#1 [typeck] type-checking `util::foo`
#2 [typeck_item_bodies] type-checking all item bodies
#3 [analysis] running analysis passes on this crate
end of query stack
Backtrace
error: internal compiler error: compiler\rustc_hir_analysis\src\collect.rs:1186:13: unexpected sort of node in fn_sig(): TraitItem(TraitItem { ident: FACTORY#0, owner_id: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, generics: Generics { params: [], predicates: [], has_where_clause_predicates: false, where_clause_span: no-location (#0), span: no-location (#0) }, kind:
Const(Ty { hir_id: HirId { owner: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, local_id: 6 }, kind: BareFn(BareFnTy { unsafety: Unsafe, abi: Rust, generic_params: [], decl: FnDecl { inputs: [Ty { hir_id: HirId { owner: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, local_id: 1 }, kind: Path(Resolved(None, Path { span:
librashader-runtime-gl\src\util.rs:145:30: 145:35 (#0), res: PrimTy(Uint(Usize)), segments: [PathSegment { ident: usize#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, local_id: 2 }, res: PrimTy(Uint(Usize)), args: None, infer_args: false }] })), span: librashader-runtime-gl\src\util.rs:145:30: 145:35 (#0) }, Ty { hir_id: HirId { owner: OwnerId
{ def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, local_id: 3 }, kind: Path(Resolved(None, Path { span: librashader-runtime-gl\src\util.rs:145:37: 145:41 (#0), res: SelfTyParam { trait_: DefId(0:488 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar) }, segments: [PathSegment { ident: Self#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::u
til::GlUniformScalar::FACTORY) }, local_id: 4 }, res: SelfTyParam { trait_: DefId(0:488 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar) }, args: None, infer_args: false }] })), span: librashader-runtime-gl\src\util.rs:145:37: 145:41 (#0) }], output: Return(Ty { hir_id: HirId { owner: OwnerId { def_id: DefId(0:489 ~ librashader_runtime_gl[c33d]::util::GlUniformScalar::FACTORY) }, local_id: 5 }, kind: Tup([]), spa
n: librashader-runtime-gl\src\util.rs:145:46: 145:48 (#0) }), c_variadic: false, implicit_self: None, lifetime_elision_allowed: false }, param_names: [#0, #0] }), span: librashader-runtime-gl\src\util.rs:145:20: 145:48 (#0) }, None), span: librashader-runtime-gl\src\util.rs:145:5: 145:49 (#0), defaultness: Default { has_value: false } })
thread 'rustc' panicked at 'Box<dyn Any>', /rustc/2585bcea0bc2a9c42a4be2c1eba5c61137f2b167\compiler\rustc_errors\src\lib.rs:1575:9
stack backtrace:
0: 0x7ffede139e32 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he98090efe44cd0fc
1: 0x7ffede1762ab - core::fmt::write::hb954b2197d3e582b
2: 0x7ffede12ca6a - <std::io::IoSlice as core::fmt::Debug>::fmt::h32e63234a004ac6b
3: 0x7ffede139b7b - std::sys::common::alloc::realloc_fallback::h68c0777f4e737e72
4: 0x7ffede13d489 - std::panicking::default_hook::h1f60f9f1445f2537
5: 0x7ffede13d10b - std::panicking::default_hook::h1f60f9f1445f2537
6: 0x7ffee0f4c62d - rustc_driver[d0f83ceb44e5ac18]::describe_lints
7: 0x7ffede13ddf0 - std::panicking::rust_panic_with_hook::hbfae456cc425367a
8: 0x7ffee3297c63 - <rustc_middle[d0a66062f335146f]::ty::instance::InstanceDef as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
9: 0x7ffee3296a99 - <rustc_middle[d0a66062f335146f]::ty::instance::InstanceDef as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
10: 0x7ffee325cec9 - <rustc_middle[d0a66062f335146f]::mir::coverage::InjectedExpressionIndex as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
11: 0x7ffee3294cc9 - <rustc_middle[d0a66062f335146f]::ty::instance::InstanceDef as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
12: 0x7ffee3294be0 - <rustc_middle[d0a66062f335146f]::ty::instance::InstanceDef as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
13: 0x7ffee32946d2 - <rustc_middle[d0a66062f335146f]::ty::instance::InstanceDef as rustc_middle[d0a66062f335146f]::ty::context::Lift>::lift_to_tcx
14: 0x7ffee3270648 - <rustc_middle[d0a66062f335146f]::ty::sty::Binder<rustc_middle[d0a66062f335146f]::ty::TraitPredicate>>::print_modifiers_and_trait_path
15: 0x7ffee32724c8 - rustc_middle[d0a66062f335146f]::util::bug::bug_fmt
16: 0x7ffee3272445 - rustc_middle[d0a66062f335146f]::util::bug::bug_fmt
17: 0x7ffee0216f1f - rustc_hir_analysis[921f0d197ecacc03]::collect::get_infer_ret_ty
18: 0x7ffedf14378c - <rustc_const_eval[febab0397fa2a2b1]::transform::check_consts::resolver::State as core[a700df5e4066f152]::clone::Clone>::clone_from
19: 0x7ffedf1ce8da - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
20: 0x7ffee090ffad - <rustc_span[af6edd4795884392]::symbol::Symbol as rustc_serialize[a990790a377fd69]::serialize::Encodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheEncoder>>::encode
21: 0x7ffee081faec - <rustc_query_impl[3e532bb7df4263fc]::Queries as rustc_middle[d0a66062f335146f]::ty::query::QueryEngine>::as_any
22: 0x7ffee237577d - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::check_block_no_value
23: 0x7ffee2374be5 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::check_block_no_value
24: 0x7ffee00df346 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::probe_instantiate_query_response
25: 0x7ffee0076e8c - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::check_call
26: 0x7ffee00a1e32 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::demand_coerce
27: 0x7ffee00ef510 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::check_struct_path
28: 0x7ffee00a1ff8 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::demand_coerce
29: 0x7ffee00b6ae0 - <rustc_hir_typeck[b4e1bc149af20378]::fn_ctxt::FnCtxt>::demand_coerce
30: 0x7ffee015095c - <rustc_hir_typeck[b4e1bc149af20378]::method::probe::Pick>::maybe_emit_unstable_name_collision_hint
31: 0x7ffee01380d7 - <rustc_hir_typeck[b4e1bc149af20378]::inherited::Inherited>::build
32: 0x7ffee00650bf - <rustc_hir_typeck[b4e1bc149af20378]::UnsafetyState>::recurse
33: 0x7ffedf143229 - <rustc_const_eval[febab0397fa2a2b1]::transform::check_consts::resolver::State as core[a700df5e4066f152]::clone::Clone>::clone_from
34: 0x7ffedf1cbc75 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
35: 0x7ffee09480c5 - <rustc_span[af6edd4795884392]::symbol::Symbol as rustc_serialize[a990790a377fd69]::serialize::Encodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheEncoder>>::encode
36: 0x7ffee081fea6 - <rustc_query_impl[3e532bb7df4263fc]::Queries as rustc_middle[d0a66062f335146f]::ty::query::QueryEngine>::as_any
37: 0x7ffee0155bb3 - <rustc_hir_typeck[b4e1bc149af20378]::method::probe::Pick>::maybe_emit_unstable_name_collision_hint
38: 0x7ffedee327a1 - <rustc_hir_typeck[b4e1bc149af20378]::diverges::Diverges as core[a700df5e4066f152]::ops::bit::BitAnd>::bitand
39: 0x7ffedf144ebf - <rustc_const_eval[febab0397fa2a2b1]::transform::check_consts::resolver::State as core[a700df5e4066f152]::clone::Clone>::clone_from
40: 0x7ffedf1f1456 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
41: 0x7ffedf295123 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
42: 0x7ffedf2fcde6 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
43: 0x7ffedee9453a - <<dyn rustc_hir_analysis[921f0d197ecacc03]::astconv::AstConv>::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis[921f0d197ecacc03]::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
44: 0x7ffedee8a323 - rustc_hir_analysis[921f0d197ecacc03]::check_crate
45: 0x7ffede75d725 - rustc_interface[e6db9c4597e420e0]::passes::analysis
46: 0x7ffedf144aef - <rustc_const_eval[febab0397fa2a2b1]::transform::check_consts::resolver::State as core[a700df5e4066f152]::clone::Clone>::clone_from
47: 0x7ffedf1ec449 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
48: 0x7ffedf283f90 - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
49: 0x7ffedf304aca - <&[(rustc_middle[d0a66062f335146f]::middle::exported_symbols::ExportedSymbol, rustc_middle[d0a66062f335146f]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[a990790a377fd69]::serialize::Decodable<rustc_query_impl[3e532bb7df4263fc]::on_disk_cache::CacheDecoder>>::decode
50: 0x7ffede71bdb4 - <unknown>
51: 0x7ffede72c7f6 - rustc_driver[d0f83ceb44e5ac18]::args::arg_expand_all
52: 0x7ffede72bb18 - rustc_driver[d0f83ceb44e5ac18]::args::arg_expand_all
53: 0x7ffede71cd29 - <unknown>
54: 0x7ffede713a3d - <unknown>
55: 0x7ffede15017c - std::sys::windows::thread::Thread::new::h4f63e44627cbb569
56: 0x7ff810fd74b4 - BaseThreadInitThunk
57: 0x7ff811bc26a1 - RtlUserThreadStart
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.67.0-nightly (2585bcea0 2022-11-28) running on x86_64-pc-windows-msvc
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [fn_sig] computing function signature of `util::GlUniformScalar::FACTORY`
#1 [typeck] type-checking `util::foo`
#2 [typeck_item_bodies] type-checking all item bodies
#3 [analysis] running analysis passes on this crate
end of query stack