-
Notifications
You must be signed in to change notification settings - Fork 13.4k
DefId(...) does not have a "params_in_repr" #128327
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
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
Here's a reproduction that doesn't use src/lib.rs: use second::SomeTrait;
struct Foo;
struct Bar;
impl SomeTrait for Foo {
type Associated = Bar;
}
struct Apple((Apple, <Foo as SomeTrait>::Associated<Banana?>)); second/src/lib.rs: pub trait SomeTrait {
type Associated;
} Cargo.toml BoilerplateCargo.toml: [workspace]
members = ["second"]
[package]
name = "first"
version = "0.1.0"
edition = "2021"
[dependencies]
second = { path = "second" } second/Cargo.toml: [package]
name = "second"
version = "0.1.0"
edition = "2021"
[dependencies] rustc-ice-2024-07-29T02_57_15-8524.txt
|
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Oct 2, 2024
Rollup merge of rust-lang#131150 - bvanjoi:issue-128327, r=chenyukang only query `params_in_repr` if def kind is adt Fixes rust-lang#128327 `params_in_repr` was only stored in `encode_info_for_adt`, so we only query it when the def kind belongs to them. https://github.com/rust-lang/rust/blob/9e3e5174462afaf6c3b9db9b35c6d1934521848a/compiler/rustc_metadata/src/rmeta/encoder.rs#L1566-L1567
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
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.
Similar Issue #108160. ICEs in nightly-2024-07-11 0c81f94 and so on.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: