Skip to content
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

Don't ICE when encountering dyn* in statics or consts #109921

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

compiler-errors
Copy link
Member

Since we have properly implemented dyn* support in CTFE (#107728), let's not ICE here anymore.

Fixes #105777

r? @eholk

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 4, 2023
@@ -0,0 +1,10 @@
// check-pass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is check-pass enough to run constant evaluation?

@eholk
Copy link
Contributor

eholk commented Apr 5, 2023

Looks good to me. We should make sure the test actually executes the constant evaluation path too, but you can r=me if it already does.

@compiler-errors
Copy link
Member Author

Yes, it's sufficient to cause the ICE.

@bors r=eholk rollup

@bors
Copy link
Contributor

bors commented Apr 5, 2023

📌 Commit 1b5ac39 has been approved by eholk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 5, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 5, 2023
Rollup of 7 pull requests

Successful merges:

 - rust-lang#109909 (Deny `use`ing tool paths)
 - rust-lang#109921 (Don't ICE when encountering `dyn*` in statics or consts)
 - rust-lang#109922 (Disable `has_thread_local` on OpenHarmony)
 - rust-lang#109926 (write threads info into log only when debugging)
 - rust-lang#109968 (Add regression test for rust-lang#80409)
 - rust-lang#109969 (Add regression test for rust-lang#86351)
 - rust-lang#109973 (rustdoc: Improve logo display very small screen)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 4b8725b into rust-lang:master Apr 6, 2023
@rustbot rustbot added this to the 1.70.0 milestone Apr 6, 2023
@compiler-errors compiler-errors deleted the dyn-star-const-static branch August 11, 2023 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dyn * ICE when used in constant and static
4 participants