Skip to content

ICE in zero_sized_map_values #14972

@matthiaskrgr

Description

@matthiaskrgr

Summary

on rustc @ d9a739363878a06633eb912e44f02a3c5d6ba08c (with debug assertions, may not be relevat though)
./x.py clippy --stage=1 -Aclippy::all -Wclippy::zero_sized_map_values

Version

d9a739363878a06633eb912e44f02a3c5d6ba08c

Error output

Backtrace

thread 'rustc' panicked at compiler/rustc_middle/src/ty/predicate.rs:512:9:
`<dyn config::dep_tracking::DepTrackingHash as std::marker::Sized>` has escaping bound vars, so it cannot be wrapped in a dummy binder.
stack backtrace:
 0: __rustc::rust_begin_unwind
           at /rustc/95597e848d27a82b8864c677ab807e9f0be1f68c/library/std/src/panicking.rs:697:5
 1: core::panicking::panic_fmt
           at /rustc/95597e848d27a82b8864c677ab807e9f0be1f68c/library/core/src/panicking.rs:75:14
 2: <rustc_type_ir::binder::Binder<rustc_middle::ty::context::TyCtxt, rustc_type_ir::predicate::TraitRef<rustc_middle::ty::context::TyCtxt>>>::dummy
           at ./compiler/rustc_type_ir/src/binder.rs:105:9
 3: <rustc_middle::ty::predicate::Predicate as rustc_type_ir::upcast::UpcastFrom<rustc_middle::ty::context::TyCtxt, rustc_type_ir::predicate::TraitRef<rustc_middle::ty::context::TyCtxt>>>::upcast_from
           at ./compiler/rustc_middle/src/ty/predicate.rs:512:9
 4: <rustc_type_ir::predicate::TraitRef<rustc_middle::ty::context::TyCtxt> as rustc_type_ir::upcast::Upcast<rustc_middle::ty::context::TyCtxt, rustc_middle::ty::predicate::Predicate>>::upcast
           at ./compiler/rustc_type_ir/src/upcast.rs:11:9
 5: <rustc_infer::traits::Obligation<rustc_middle::ty::predicate::Predicate>>::with_depth::<rustc_type_ir::predicate::TraitRef<rustc_middle::ty::context::TyCtxt>>
           at ./compiler/rustc_infer/src/traits/mod.rs:154:25
 6: <rustc_infer::traits::Obligation<rustc_middle::ty::predicate::Predicate>>::new::<rustc_type_ir::predicate::TraitRef<rustc_middle::ty::context::TyCtxt>>
           at ./compiler/rustc_infer/src/traits/mod.rs:136:9
 7: rustc_trait_selection::traits::pred_known_to_hold_modulo_regions::<rustc_type_ir::predicate::TraitRef<rustc_middle::ty::context::TyCtxt>>::{closure#0}
           at ./compiler/rustc_trait_selection/src/traits/mod.rs:217:22
 8: rustc_trait_selection::traits::pred_known_to_hold_modulo_regions::<rustc_type_ir::predicate::TraitRef<rustc_middle::ty::context::TyCtxt>>
           at ./compiler/rustc_trait_selection/src/traits/mod.rs:211:1
 9: rustc_trait_selection::traits::type_known_to_meet_bound_modulo_regions
           at ./compiler/rustc_trait_selection/src/traits/mod.rs:204:5
10: rustc_ty_utils::common_traits::is_item_raw
           at ./compiler/rustc_ty_utils/src/common_traits.rs:46:5
11: rustc_query_impl::query_impl::is_sized_raw::dynamic_query::{closure#2}::{closure#0}
           at ./compiler/rustc_query_impl/src/plumbing.rs:294:9
    [... omitted 22 frames ...]
12: rustc_middle::query::plumbing::query_get_at::<rustc_query_system::query::caches::DefaultCache<rustc_middle::ty::PseudoCanonicalInput<rustc_middle::ty::Ty>, rustc_middle::query::erase::Erased<[u8; 1]>>>
           at ./compiler/rustc_middle/src/query/plumbing.rs:182:17
13: <rustc_middle::query::plumbing::TyCtxtAt>::is_sized_raw
           at ./compiler/rustc_middle/src/query/plumbing.rs:475:31
14: <rustc_middle::ty::context::TyCtxt>::is_sized_raw
           at ./compiler/rustc_middle/src/query/plumbing.rs:466:35
15: <rustc_middle::ty::Ty>::is_sized
           at ./compiler/rustc_middle/src/ty/util.rs:1135:45
16: rustc_ty_utils::layout::layout_of_uncached
           at ./compiler/rustc_ty_utils/src/layout.rs:387:16
17: rustc_ty_utils::layout::layout_of
           at ./compiler/rustc_ty_utils/src/layout.rs:67:18
18: rustc_query_impl::query_impl::layout_of::dynamic_query::{closure#2}::{closure#0}
           at ./compiler/rustc_query_impl/src/plumbing.rs:294:9
    [... omitted 22 frames ...]
19: rustc_middle::query::plumbing::query_get_at::<rustc_query_system::query::caches::DefaultCache<rustc_middle::ty::PseudoCanonicalInput<rustc_middle::ty::Ty>, rustc_middle::query::erase::Erased<[u8; 16]>>>
           at ./compiler/rustc_middle/src/query/plumbing.rs:182:17
20: <rustc_middle::query::plumbing::TyCtxtAt>::layout_of
           at ./compiler/rustc_middle/src/query/plumbing.rs:475:31
21: <rustc_lint::context::LateContext as rustc_middle::ty::layout::LayoutOf>::spanned_layout_of
           at ./compiler/rustc_middle/src/ty/layout.rs:725:17
22: <rustc_lint::context::LateContext as rustc_middle::ty::layout::LayoutOf>::layout_of
           at ./compiler/rustc_middle/src/ty/layout.rs:712:9
23: <clippy_lints::zero_sized_map_values::ZeroSizedMapValues as rustc_lint::passes::LateLintPass>::check_ty
           at ./src/tools/clippy/clippy_lints/src/zero_sized_map_values.rs:59:36
24: <rustc_lint::late::RuntimeCombinedLateLintPass as rustc_lint::passes::LateLintPass>::check_ty
           at ./compiler/rustc_lint/src/late.rs:328:21
25: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_ty
           at ./compiler/rustc_lint/src/late.rs:33:5
26: rustc_hir::intravisit::walk_unambig_ty::<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>
           at ./compiler/rustc_hir/src/intravisit.rs:975:27
27: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::VisitorExt>::visit_ty_unambig
           at ./compiler/rustc_hir/src/intravisit.rs:516:9
28: rustc_hir::intravisit::walk_fn_decl::<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>
           at ./compiler/rustc_hir/src/intravisit.rs:1155:5
29: rustc_hir::intravisit::walk_fn::<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>
           at ./compiler/rustc_hir/src/intravisit.rs:1173:16
30: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_fn
           at ./compiler/rustc_lint/src/late.rs:196:9
31: rustc_hir::intravisit::walk_item::<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>
           at ./compiler/rustc_hir/src/intravisit.rs:563:24
32: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:132:17
33: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>::with_param_env::<<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}::{closure#0}>
           at ./compiler/rustc_lint/src/late.rs:71:9
34: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:130:13
35: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>::with_lint_attrs::<<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}>
           at ./compiler/rustc_lint/src/late.rs:59:9
36: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item
           at ./compiler/rustc_lint/src/late.rs:129:9
37: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_nested_item
           at ./compiler/rustc_hir/src/intravisit.rs:245:24
38: rustc_hir::intravisit::walk_mod::<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>
           at ./compiler/rustc_hir/src/intravisit.rs:647:5
39: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:132:17
40: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>::with_param_env::<<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}::{closure#0}>
           at ./compiler/rustc_lint/src/late.rs:71:9
41: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:130:13
42: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>::with_lint_attrs::<<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}>
           at ./compiler/rustc_lint/src/late.rs:59:9
43: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item
           at ./compiler/rustc_lint/src/late.rs:129:9
44: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_nested_item
           at ./compiler/rustc_hir/src/intravisit.rs:245:24
45: rustc_hir::intravisit::walk_mod::<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>
           at ./compiler/rustc_hir/src/intravisit.rs:647:5
46: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:132:17
47: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>::with_param_env::<<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}::{closure#0}>
           at ./compiler/rustc_lint/src/late.rs:71:9
48: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:130:13
49: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>::with_lint_attrs::<<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}>
           at ./compiler/rustc_lint/src/late.rs:59:9
50: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item
           at ./compiler/rustc_lint/src/late.rs:129:9
51: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_nested_item
           at ./compiler/rustc_hir/src/intravisit.rs:245:24
52: rustc_hir::intravisit::walk_mod::<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>
           at ./compiler/rustc_hir/src/intravisit.rs:647:5
53: rustc_lint::late::late_lint_crate_inner::<rustc_lint::late::RuntimeCombinedLateLintPass>::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:448:9
54: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>::with_lint_attrs::<rustc_lint::late::late_lint_crate_inner<rustc_lint::late::RuntimeCombinedLateLintPass>::{closure#0}>
           at ./compiler/rustc_lint/src/late.rs:59:9
55: rustc_lint::late::late_lint_crate_inner::<rustc_lint::late::RuntimeCombinedLateLintPass>
           at ./compiler/rustc_lint/src/late.rs:444:5
56: rustc_lint::late::late_lint_crate
           at ./compiler/rustc_lint/src/late.rs:433:5
57: rustc_lint::late::check_crate::{closure#0}::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:459:17
58: <rustc_data_structures::profiling::VerboseTimingGuard>::run::<(), rustc_lint::late::check_crate::{closure#0}::{closure#0}>
           at ./compiler/rustc_data_structures/src/profiling.rs:753:9
59: <rustc_session::session::Session>::time::<(), rustc_lint::late::check_crate::{closure#0}::{closure#0}>
           at ./compiler/rustc_session/src/utils.rs:16:9
60: rustc_lint::late::check_crate::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:457:13
61: rustc_data_structures::sync::parallel::join::<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}::{closure#0}
           at ./compiler/rustc_data_structures/src/sync/parallel.rs:128:57
62: <core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}::{closure#0}> as core::ops::function::FnOnce<()>>::call_once
           at ./library/core/src/panic/unwind_safe.rs:272:9
63: std::panicking::try::do_call::<core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}::{closure#0}>, rustc_data_structures::marker::FromDyn<()>>
           at ./library/std/src/panicking.rs:589:40
64: std::panicking::try::<rustc_data_structures::marker::FromDyn<()>, core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}::{closure#0}>>
           at ./library/std/src/panicking.rs:552:19
65: std::panic::catch_unwind::<core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}::{closure#0}>, rustc_data_structures::marker::FromDyn<()>>
           at ./library/std/src/panic.rs:359:14
66: <rustc_data_structures::sync::parallel::ParallelGuard>::run::<rustc_data_structures::marker::FromDyn<()>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}::{closure#0}>
           at ./compiler/rustc_data_structures/src/sync/parallel.rs:25:9
67: rustc_data_structures::sync::parallel::join::<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}
           at ./compiler/rustc_data_structures/src/sync/parallel.rs:128:25
68: rayon_core::join::join::call::<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}>::{closure#0}
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/join/mod.rs:103:18
69: rayon_core::join::join_context::call_a::<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rayon_core::join::join::call<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}>::{closure#0}>::{closure#0}
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/join/mod.rs:125:17
70: <core::panic::unwind_safe::AssertUnwindSafe<rayon_core::join::join_context::call_a<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rayon_core::join::join::call<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}>::{closure#0}>::{closure#0}> as core::ops::function::FnOnce<()>>::call_once
           at ./library/core/src/panic/unwind_safe.rs:272:9
71: std::panicking::try::do_call::<core::panic::unwind_safe::AssertUnwindSafe<rayon_core::join::join_context::call_a<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rayon_core::join::join::call<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}>::{closure#0}>::{closure#0}>, core::option::Option<rustc_data_structures::marker::FromDyn<()>>>
           at ./library/std/src/panicking.rs:589:40
72: std::panicking::try::<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, core::panic::unwind_safe::AssertUnwindSafe<rayon_core::join::join_context::call_a<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rayon_core::join::join::call<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}>::{closure#0}>::{closure#0}>>
           at ./library/std/src/panicking.rs:552:19
73: std::panic::catch_unwind::<core::panic::unwind_safe::AssertUnwindSafe<rayon_core::join::join_context::call_a<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rayon_core::join::join::call<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}>::{closure#0}>::{closure#0}>, core::option::Option<rustc_data_structures::marker::FromDyn<()>>>
           at ./library/std/src/panic.rs:359:14
74: rayon_core::unwind::halt_unwinding::<rayon_core::join::join_context::call_a<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rayon_core::join::join::call<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}>::{closure#0}>::{closure#0}, core::option::Option<rustc_data_structures::marker::FromDyn<()>>>
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/unwind.rs:17:5
75: rayon_core::join::join_context::<rayon_core::join::join::call<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}>::{closure#0}, rayon_core::join::join::call<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#1}>::{closure#0}, core::option::Option<rustc_data_structures::marker::FromDyn<()>>, core::option::Option<rustc_data_structures::marker::FromDyn<()>>>::{closure#0}
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/join/mod.rs:144:24
76: rayon_core::join::join_context::<rayon_core::join::join::call<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}>::{closure#0}, rayon_core::join::join::call<core::option::Option<rustc_data_structures::marker::FromDyn<()>>, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#1}>::{closure#0}, core::option::Option<rustc_data_structures::marker::FromDyn<()>>, core::option::Option<rustc_data_structures::marker::FromDyn<()>>>
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/join/mod.rs:133:5
77: rayon_core::join::join::<rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#0}, rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}::{closure#1}, core::option::Option<rustc_data_structures::marker::FromDyn<()>>, core::option::Option<rustc_data_structures::marker::FromDyn<()>>>
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/join/mod.rs:106:5
78: rustc_data_structures::sync::parallel::join::<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}
           at ./compiler/rustc_data_structures/src/sync/parallel.rs:127:13
79: rustc_data_structures::sync::parallel::parallel_guard::<(core::option::Option<rustc_data_structures::marker::FromDyn<()>>, core::option::Option<rustc_data_structures::marker::FromDyn<()>>), rustc_data_structures::sync::parallel::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>::{closure#0}>
           at ./compiler/rustc_data_structures/src/sync/parallel.rs:41:15
80: rustc_data_structures::sync::parallel::join::<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()>
           at ./compiler/rustc_data_structures/src/sync/parallel.rs:126:22
81: rustc_lint::late::check_crate
           at ./compiler/rustc_lint/src/late.rs:455:5
82: rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#2}::{closure#0}
           at ./compiler/rustc_interface/src/passes.rs:1078:29
83: <rustc_data_structures::profiling::VerboseTimingGuard>::run::<(), rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#2}::{closure#0}>
           at ./compiler/rustc_data_structures/src/profiling.rs:753:9
84: <rustc_session::session::Session>::time::<(), rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#2}::{closure#0}>
           at ./compiler/rustc_session/src/utils.rs:16:9
85: rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#2}
           at ./compiler/rustc_interface/src/passes.rs:1077:25
86: rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}::{closure#0}
           at ./compiler/rustc_data_structures/src/sync/parallel.rs:74:47
87: <core::panic::unwind_safe::AssertUnwindSafe<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}::{closure#0}> as core::ops::function::FnOnce<()>>::call_once
           at ./library/core/src/panic/unwind_safe.rs:272:9
88: std::panicking::try::do_call::<core::panic::unwind_safe::AssertUnwindSafe<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}::{closure#0}>, ()>
           at ./library/std/src/panicking.rs:589:40
89: std::panicking::try::<(), core::panic::unwind_safe::AssertUnwindSafe<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}::{closure#0}>>
           at ./library/std/src/panicking.rs:552:19
90: std::panic::catch_unwind::<core::panic::unwind_safe::AssertUnwindSafe<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}::{closure#0}>, ()>
           at ./library/std/src/panic.rs:359:14
91: <rustc_data_structures::sync::parallel::ParallelGuard>::run::<(), rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}::{closure#0}>
           at ./compiler/rustc_data_structures/src/sync/parallel.rs:25:9
92: rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}
           at ./compiler/rustc_data_structures/src/sync/parallel.rs:74:29
93: <rayon_core::scope::Scope>::spawn::<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}>::{closure#0}::{closure#0}
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/scope/mod.rs:531:57
94: <core::panic::unwind_safe::AssertUnwindSafe<<rayon_core::scope::Scope>::spawn<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}>::{closure#0}::{closure#0}> as core::ops::function::FnOnce<()>>::call_once
           at ./library/core/src/panic/unwind_safe.rs:272:9
95: std::panicking::try::do_call::<core::panic::unwind_safe::AssertUnwindSafe<<rayon_core::scope::Scope>::spawn<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}>::{closure#0}::{closure#0}>, ()>
           at ./library/std/src/panicking.rs:589:40
96: std::panicking::try::<(), core::panic::unwind_safe::AssertUnwindSafe<<rayon_core::scope::Scope>::spawn<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}>::{closure#0}::{closure#0}>>
           at ./library/std/src/panicking.rs:552:19
97: std::panic::catch_unwind::<core::panic::unwind_safe::AssertUnwindSafe<<rayon_core::scope::Scope>::spawn<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}>::{closure#0}::{closure#0}>, ()>
           at ./library/std/src/panic.rs:359:14
98: rayon_core::unwind::halt_unwinding::<<rayon_core::scope::Scope>::spawn<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}>::{closure#0}::{closure#0}, ()>
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/unwind.rs:17:5
99: <rayon_core::scope::ScopeBase>::execute_job_closure::<<rayon_core::scope::Scope>::spawn<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}>::{closure#0}::{closure#0}, ()>
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/scope/mod.rs:699:28
100: <rayon_core::scope::ScopeBase>::execute_job::<<rayon_core::scope::Scope>::spawn<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}>::{closure#0}::{closure#0}>
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/scope/mod.rs:689:29
101: <rayon_core::scope::Scope>::spawn::<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}>::{closure#0}
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/scope/mod.rs:531:13
102: <rayon_core::job::HeapJob<<rayon_core::scope::Scope>::spawn<rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}::{closure#2}::{closure#1}::{closure#0}::{closure#3}>::{closure#0}> as rayon_core::job::Job>::execute
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/job.rs:176:9
103: <rayon_core::job::JobRef>::execute
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/job.rs:66:9
104: <rayon_core::registry::WorkerThread>::execute
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/registry.rs:910:13
105: <rayon_core::registry::WorkerThread>::wait_until_cold
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/registry.rs:843:26
106: <rayon_core::registry::WorkerThread>::wait_until::<rayon_core::latch::OnceLatch>
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/registry.rs:818:13
107: <rayon_core::registry::WorkerThread>::wait_until_out_of_work
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/registry.rs:868:9
108: rayon_core::registry::main_loop
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/registry.rs:973:5
109: <rayon_core::registry::ThreadBuilder>::run
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/registry.rs:52:18
110: rustc_interface::util::run_in_thread_pool_with_globals::<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}::{closure#0}
           at ./compiler/rustc_interface/src/util.rs:274:29
111: <scoped_tls::ScopedKey<rustc_span::SessionGlobals>>::set::<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}::{closure#0}, ()>
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/scoped-tls-1.0.1/src/lib.rs:137:9
112: rustc_span::set_session_globals_then::<(), rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}::{closure#0}>
           at ./compiler/rustc_span/src/lib.rs:154:5
113: rustc_interface::util::run_in_thread_pool_with_globals::<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}
           at ./compiler/rustc_interface/src/util.rs:273:25
114: <rayon_core::ThreadPoolBuilder>::build_scoped::<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}, rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}, ()>::{closure#0}::{closure#0}::{closure#0}
           at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-rayon-core-0.5.1/src/lib.rs:361:52
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

error: the compiler unexpectedly panicked. this is a bug.

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

note: please attach the file at `/home/matthias/vcs/github/rust/rustc-ice-2025-06-04T13_56_37-1886841.txt` to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=16 -C debuginfo=2 -C debug-assertions=on -C target-cpu=native -Z threads=8 -C symbol-mangling-version=v0 -Z unstable-options -Z force-unstable-if-unmarked -Z macro-backtrace -C split-debuginfo=off -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -Z on-broken-pipe=kill -C lto=off -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked

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

query stack during panic:
#0 [is_sized_raw] computing whether `dyn config::dep_tracking::DepTrackingHash` is `Sized`
#1 [layout_of] computing layout of `&dyn config::dep_tracking::DepTrackingHash`
#2 [analysis] running analysis passes on this crate
end of query stack
note: Clippy version: clippy 0.1.89 (d9a7393638 2025-06-04)

error: could not compile `rustc_session` (lib)

Caused by:
process didn't exit successfully: `/home/matthias/vcs/github/rust/build/bootstrap/debug/rustc /home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1/bin/clippy-driver /home/matthias/vcs/github/rust/build/bootstrap/debug/rustc --crate-name rustc_session --edition=2024 compiler/rustc_session/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=316 --crate-type lib --emit=dep-info,metadata -C opt-level=3 -C embed-bitcode=no -C codegen-units=16 -C debuginfo=2 -C debug-assertions=on --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=4fee110a06cf7a32 -C extra-filename=-53d8351e789470a7 --out-dir /home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps --extern bitflags=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libbitflags-0bd454a0258246e9.rmeta --extern getopts=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libgetopts-246bfc0a63f5bb2c.rmeta --extern libc=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/liblibc-bf356c66e8964904.rmeta --extern rand=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librand-813cd6096e9c4b1c.rmeta --extern rustc_abi=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_abi-e9f56e78cf743a74.rmeta --extern rustc_ast=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_ast-b9b95d3bb1f776e1.rmeta --extern rustc_data_structures=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_data_structures-09ac1edaf9193ed0.rmeta --extern rustc_errors=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_errors-d827f89f8e6df5b1.rmeta --extern rustc_feature=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_feature-081f90bfdbd0721b.rmeta --extern rustc_fluent_macro=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_fluent_macro-1dc52b6b9d2b2a35.so --extern rustc_fs_util=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_fs_util-8e6f970d99b77878.rmeta --extern rustc_hashes=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_hashes-680680e4c31b353c.rmeta --extern rustc_hir=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_hir-fafdb33a0232c6bd.rmeta --extern rustc_lint_defs=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_lint_defs-9131a0aa7d4d5ab1.rmeta --extern rustc_macros=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_macros-295e2642b14e980c.so --extern rustc_serialize=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_serialize-25f33c0c362698ad.rmeta --extern rustc_span=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_span-6695e6bf959af5e8.rmeta --extern rustc_target=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_target-432239dfa1747747.rmeta --extern smallvec=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libsmallvec-c06f2f9a1c59f1ea.rmeta --extern termize=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libtermize-3d413de4411b564f.rmeta --extern tracing=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libtracing-b98acab247d29c0e.rmeta -Ctarget-cpu=native -Zthreads=8 --sysroot /home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1 --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=cfg(bootstrap)' '--check-cfg=cfg(llvm_enzyme)' -Zforce-unstable-if-unmarked -Zmacro-backtrace -Csplit-debuginfo=off -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Alinker-messages -Zon-broken-pipe=kill -Clto=off -Z binary-dep-depinfo -L native=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/psm-ebc360c6b1c792ba/out -L native=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/blake3-1af4ad28e0bcdb76/out -L native=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/blake3-1af4ad28e0bcdb76/out` (exit status: 101)
Build completed unsuccessfully in 0:00:40

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️S-fixedStatus: Issues that got fixed, waiting to be closed as completed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions