-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Normalization ICE from drop_in_place
in Mir inliner on -Zopt-level=3
#106444
Labels
A-mir-opt-inlining
Area: MIR inlining
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
@rustbot label +T-compiler +requires-nighlty +A-mir-opt-inlining +I-ICE |
JakobDegen
changed the title
ICE in Mir inliner on
Normaliztion ICE from Jan 4, 2023
-Zopt-level=3
drop_in_place
in Mir inliner on -Zopt-level=3
Noratrieb
added
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
requires-nightly
This issue requires a nightly compiler in some way.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
A-mir-opt-inlining
Area: MIR inlining
labels
Jan 4, 2023
compiler-errors
changed the title
Normaliztion ICE from
Normalization ICE from Jan 4, 2023
drop_in_place
in Mir inliner on -Zopt-level=3
drop_in_place
in Mir inliner on -Zopt-level=3
This was referenced Apr 28, 2023
Triage: the ICE has been fixed since nightly-2023-05-18. |
rustbot
added
the
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
label
May 20, 2023
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Mar 23, 2024
…xxxx, r=fmease add a couple more ice tests Fixes rust-lang#104779 Fixes rust-lang#106423 Fixes rust-lang#106444 Fixes rust-lang#101852 Fixes rust-lang#106874 Fixes rust-lang#105047 Fixes rust-lang#107228 Fixes rust-lang#99945
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Mar 23, 2024
…xxxx, r=fmease add a couple more ice tests Fixes rust-lang#104779 Fixes rust-lang#106423 Fixes rust-lang#106444 Fixes rust-lang#101852 Fixes rust-lang#106874 Fixes rust-lang#105047 Fixes rust-lang#107228 Fixes rust-lang#99945
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Mar 24, 2024
…xxxx, r=fmease add a couple more ice tests Fixes rust-lang#104779 Fixes rust-lang#106423 Fixes rust-lang#106444 Fixes rust-lang#101852 Fixes rust-lang#106874 Fixes rust-lang#105047 Fixes rust-lang#107228 Fixes rust-lang#99945
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Mar 24, 2024
…xxxx, r=fmease add a couple more ice tests Fixes rust-lang#104779 Fixes rust-lang#106423 Fixes rust-lang#106444 Fixes rust-lang#101852 Fixes rust-lang#106874 Fixes rust-lang#105047 Fixes rust-lang#107228 Fixes rust-lang#99945
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Mar 24, 2024
Rollup merge of rust-lang#122943 - matthiaskrgr:ice-tests-9xxxx-to-12xxxx, r=fmease add a couple more ice tests Fixes rust-lang#104779 Fixes rust-lang#106423 Fixes rust-lang#106444 Fixes rust-lang#101852 Fixes rust-lang#106874 Fixes rust-lang#105047 Fixes rust-lang#107228 Fixes rust-lang#99945
RenjiSann
pushed a commit
to RenjiSann/rust
that referenced
this issue
Mar 25, 2024
RenjiSann
pushed a commit
to RenjiSann/rust
that referenced
this issue
Mar 25, 2024
…xxxx, r=fmease add a couple more ice tests Fixes rust-lang#104779 Fixes rust-lang#106423 Fixes rust-lang#106444 Fixes rust-lang#101852 Fixes rust-lang#106874 Fixes rust-lang#105047 Fixes rust-lang#107228 Fixes rust-lang#99945
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-mir-opt-inlining
Area: MIR inlining
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
rustc +nightly -Zmir-opt-level=3 --crate-type lib test.rs
The problem is that we attempt to inline
drop_in_place
. This leads us to build a drop shim for a not fully monomorphized type. The code for that drop shim then tries to normalize the types of the fields with an empty param env, which causes the ICE.I don't know what the correct way to fix this is. It should probably be possible to build a drop shim for a not fully mono'd type. Probably this means that code needs to accept a
ParamEnv
?Meta
rustc --version --verbose
:Backtrace from recent master
@rustbot label T-compiler requires-nighlty A-mir-opt-inlining I-ICE
The text was updated successfully, but these errors were encountered: