-
Notifications
You must be signed in to change notification settings - Fork 13k
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
DefId(...) does not have a "params_in_repr" #128327
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
Naserume
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Jul 29, 2024
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Jul 29, 2024
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
|
jieyouxu
added
the
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
label
Aug 5, 2024
matthiaskrgr
added
the
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
label
Aug 5, 2024
saethlin
removed
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Aug 19, 2024
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
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-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: