Skip to content

ICE report_elidable_lifetimes (debug assertions) #14973

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

Open
matthiaskrgr opened this issue Jun 4, 2025 · 0 comments
Open

ICE report_elidable_lifetimes (debug assertions) #14973

matthiaskrgr opened this issue Jun 4, 2025 · 0 comments
Labels
C-bug Category: Clippy is not doing the correct thing I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@matthiaskrgr
Copy link
Member

Summary

build rustc with debug assertions
then
./x.py clippy --stage=1 -Wclippy::all -Wclippy::nursery -Wclippy::complexity -Wclippy::suspicious -Wclippy::pedantic -Wclippy::style -Wclippy::restriction -Aclippy::zero_sized_map_values -Aclippy::redundant_pub_crate

=> ice in rustc_resolve

Version

rustc @ d9a739363878a06633eb912e44f02a3c5d6ba08c

Error output

Backtrace

thread 'rustc' panicked at /home/matthias/vcs/github/rust/compiler/rustc_errors/src/diagnostic.rs:931:9:
assertion `left == right` failed: suggestion must not have overlapping parts
left: Some([SubstitutionPart { span: compiler/rustc_resolve/src/build_reduced_graph.rs:1318:10: 1318:15 (#0), snippet: "" }, SubstitutionPart { span: compiler/rustc_resolve/src/build_reduced_graph.rs:1318:13: 1318:19 (#0), snippet: "" }])
right: None
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: core::panicking::assert_failed_inner
           at /rustc/95597e848d27a82b8864c677ab807e9f0be1f68c/library/core/src/panicking.rs:428:23
 3: core::panicking::assert_failed::<core::option::Option<&[rustc_errors::SubstitutionPart; 2]>, core::option::Option<&[rustc_errors::SubstitutionPart; 2]>>
           at ./library/core/src/panicking.rs:388:5
 4: <rustc_errors::diagnostic::Diag<()>>::multipart_suggestion_with_style::<&str>
           at ./compiler/rustc_errors/src/diagnostic.rs:931:9
 5: <rustc_errors::diagnostic::Diag<()>>::multipart_suggestion::<&str>
           at ./compiler/rustc_errors/src/diagnostic.rs:883:9
 6: clippy_lints::lifetimes::report_elidable_lifetimes::{closure#7}
           at ./src/tools/clippy/clippy_lints/src/lifetimes.rs:845:22
 7: clippy_utils::diagnostics::span_lint_and_then::<rustc_lint::context::LateContext, alloc::vec::Vec<rustc_span::span_encoding::Span>, alloc::string::String, clippy_lints::lifetimes::report_elidable_lifetimes::{closure#7}>::{closure#0}
           at ./src/tools/clippy/clippy_utils/src/diagnostics.rs:257:9
 8: <clippy_utils::diagnostics::span_lint_and_then<rustc_lint::context::LateContext, alloc::vec::Vec<rustc_span::span_encoding::Span>, alloc::string::String, clippy_lints::lifetimes::report_elidable_lifetimes::{closure#7}>::{closure#0} as core::ops::function::FnOnce<(&mut rustc_errors::diagnostic::Diag<()>,)>>::call_once::{shim:vtable#0}
           at ./library/core/src/ops/function.rs:250:5
 9: <alloc::boxed::Box<dyn for<'a, 'b> core::ops::function::FnOnce<(&'a mut rustc_errors::diagnostic::Diag<'b, ()>,), Output = ()>> as core::ops::function::FnOnce<(&mut rustc_errors::diagnostic::Diag<()>,)>>::call_once
           at ./library/alloc/src/boxed.rs:1966:9
10: rustc_middle::lint::lint_level::lint_level_impl
           at ./compiler/rustc_middle/src/lint.rs:427:13
11: rustc_middle::lint::lint_level::<clippy_utils::diagnostics::span_lint_and_then<rustc_lint::context::LateContext, alloc::vec::Vec<rustc_span::span_encoding::Span>, alloc::string::String, clippy_lints::lifetimes::report_elidable_lifetimes::{closure#7}>::{closure#0}>
           at ./compiler/rustc_middle/src/lint.rs:433:5
12: <rustc_lint::context::LateContext as rustc_lint::context::LintContext>::opt_span_lint::<alloc::vec::Vec<rustc_span::span_encoding::Span>, clippy_utils::diagnostics::span_lint_and_then<rustc_lint::context::LateContext, alloc::vec::Vec<rustc_span::span_encoding::Span>, alloc::string::String, clippy_lints::lifetimes::report_elidable_lifetimes::{closure#7}>::{closure#0}>
13: <rustc_lint::context::LateContext as rustc_lint::context::LintContext>::span_lint::<alloc::vec::Vec<rustc_span::span_encoding::Span>, clippy_utils::diagnostics::span_lint_and_then<rustc_lint::context::LateContext, alloc::vec::Vec<rustc_span::span_encoding::Span>, alloc::string::String, clippy_lints::lifetimes::report_elidable_lifetimes::{closure#7}>::{closure#0}>
           at ./compiler/rustc_lint/src/context.rs:536:9
14: clippy_utils::diagnostics::span_lint_and_then::<rustc_lint::context::LateContext, alloc::vec::Vec<rustc_span::span_encoding::Span>, alloc::string::String, clippy_lints::lifetimes::report_elidable_lifetimes::{closure#7}>
           at ./src/tools/clippy/clippy_utils/src/diagnostics.rs:255:8
15: clippy_lints::lifetimes::report_elidable_lifetimes
           at ./src/tools/clippy/clippy_lints/src/lifetimes.rs:822:5
16: clippy_lints::lifetimes::report_elidable_impl_lifetimes
           at ./src/tools/clippy/clippy_lints/src/lifetimes.rs:773:5
17: clippy_lints::lifetimes::report_extra_impl_lifetimes
           at ./src/tools/clippy/clippy_lints/src/lifetimes.rs:737:5
18: <clippy_lints::lifetimes::Lifetimes as rustc_lint::passes::LateLintPass>::check_item
           at ./src/tools/clippy/clippy_lints/src/lifetimes.rs:156:13
19: <rustc_lint::late::RuntimeCombinedLateLintPass as rustc_lint::passes::LateLintPass>::check_item
           at ./compiler/rustc_lint/src/late.rs:328:21
20: <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:33:5
21: <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
22: <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
23: <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
24: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item
           at ./compiler/rustc_lint/src/late.rs:129:9
25: <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
26: rustc_hir::intravisit::walk_mod::<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>
           at ./compiler/rustc_hir/src/intravisit.rs:647:5
27: <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
28: <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
29: <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
30: <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
31: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item
           at ./compiler/rustc_lint/src/late.rs:129:9
32: <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
33: rustc_hir::intravisit::walk_mod::<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>
           at ./compiler/rustc_hir/src/intravisit.rs:647:5
34: rustc_lint::late::late_lint_crate_inner::<rustc_lint::late::RuntimeCombinedLateLintPass>::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:448:9
35: <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
36: rustc_lint::late::late_lint_crate_inner::<rustc_lint::late::RuntimeCombinedLateLintPass>
           at ./compiler/rustc_lint/src/late.rs:444:5
37: rustc_lint::late::late_lint_crate
           at ./compiler/rustc_lint/src/late.rs:433:5
38: rustc_lint::late::check_crate::{closure#0}::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:459:17
39: <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
40: <rustc_session::session::Session>::time::<(), rustc_lint::late::check_crate::{closure#0}::{closure#0}>
           at ./compiler/rustc_session/src/utils.rs:16:9
41: rustc_lint::late::check_crate::{closure#0}
           at ./compiler/rustc_lint/src/late.rs:457:13
42: 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
43: <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
44: 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
45: 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
46: 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
47: <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
48: 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
49: 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
50: 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
51: <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
52: 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
53: 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
54: 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
55: 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
56: 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
57: 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
58: 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
59: 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
60: 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
61: 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
62: rustc_lint::late::check_crate
           at ./compiler/rustc_lint/src/late.rs:455:5
63: 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
64: <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
65: <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
66: 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
67: 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
68: <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
69: 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
70: 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
71: 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
72: <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
73: 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
74: <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
75: <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
76: 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
77: 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
78: 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
79: 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
80: <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
81: <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
82: <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
83: <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
84: <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
85: <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
86: <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
87: <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
88: <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
89: 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
90: <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
91: 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
92: <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
93: 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
94: 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
95: <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-04T14_07_37-1906017.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 [analysis] running analysis passes on this crate
end of query stack
note: Clippy version: clippy 0.1.89 (d9a7393638 2025-06-04)

warning: `rustc_resolve` (lib) generated 851 warnings (1 duplicate) (run `cargo clippy --fix --lib -p rustc_resolve` to apply 255 suggestions)
error: could not compile `rustc_resolve` (lib); 851 warnings emitted

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_resolve --edition=2024 compiler/rustc_resolve/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=9ed6e1dd835f38cd -C extra-filename=-896c69b21b111cc2 --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 itertools=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libitertools-c964cb64709afa23.rmeta --extern pulldown_cmark=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libpulldown_cmark-f9bcb5c8e4e5b5c1.rmeta --extern rustc_arena=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_arena-a7f47643aa7a417a.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_ast_pretty=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_ast_pretty-b261afc8ebcf3851.rmeta --extern rustc_attr_data_structures=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_attr_data_structures-e9a1ba8883977d3c.rmeta --extern rustc_attr_parsing=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_attr_parsing-7a0d54345c385402.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_expand=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_expand-9739bf025eb48b4b.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_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_macros=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_macros-295e2642b14e980c.so --extern rustc_metadata=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_metadata-caa742267cc94b8c.rmeta --extern rustc_middle=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_middle-57d0cf8593dbbc56.rmeta --extern rustc_query_system=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_query_system-ed8845939ec905fb.rmeta --extern rustc_session=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_session-53d8351e789470a7.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 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 thin_vec=/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libthin_vec-d90bd953dcba4f42.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:16

@matthiaskrgr matthiaskrgr added C-bug Category: Clippy is not doing the correct thing I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️ labels Jun 4, 2025
@matthiaskrgr matthiaskrgr changed the title ICE report_elidable_lifetimes ICE report_elidable_lifetimes (debug assertions) Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

1 participant