-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
ICE: attempted .def_id() on invalid res: Err
#137508
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
cargo-bisect-rustc points to nightly-2024-07-27 (specifically 7120fda...7c2012d ), so probably #121676 which introduced |
a bit simpler: trait Tr {
type Item;
}
fn main() {
let _: dyn Tr + ?Foo();
} |
TaKO8Ki
added a commit
to TaKO8Ki/rust
that referenced
this issue
Feb 25, 2025
fmease
added a commit
to fmease/rust
that referenced
this issue
Feb 26, 2025
…rrors Avoid collecting associated types for undefined trait Fixes rust-lang#137508 Fixes rust-lang#137554
fmease
added a commit
to fmease/rust
that referenced
this issue
Feb 26, 2025
…rrors Avoid collecting associated types for undefined trait Fixes rust-lang#137508 Fixes rust-lang#137554
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Feb 26, 2025
Rollup merge of rust-lang#137631 - TaKO8Ki:issue-137508, r=compiler-errors Avoid collecting associated types for undefined trait Fixes rust-lang#137508 Fixes rust-lang#137554
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Original Code (Fuzzing)
Meta
rustc --version --verbose
:Error output
Backtrace
Notes
compiler/rustc_hir/src/def.rs Line-683
rust/compiler/rustc_hir/src/def.rs
Lines 677 to 684 in f8a913b
The text was updated successfully, but these errors were encountered: