-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[ICE]: import.imported_module.get().is_none() #152895
Copy link
Copy link
Closed
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
A mutant of
tests/ui/resolve/ice-inconsistent-resolution-151213.rsMeta
rustc --version --verbose:Error output
Command:
rustc --edition=2024(ICEs on edition 2018, 2021, and 2024. Not on 2015)
Backtrace
Regression
Regression in nightly-2025-09-04
Command:
cargo bisect-rustc --start=2025-01-01 --end=2026-02-18 --regress ice --preserve --script rustc -- import.rs --edition=2024Notes
ICE location:
compiler/rustc_resolve/src/imports.rs Line-1075rust/compiler/rustc_resolve/src/imports.rs
Lines 1065 to 1075 in 7f99507
Duplication Check
import.imported_module.get().is_none()#147208 has identical ICE location, which does not ICE for now (and regression date also different.)