Don't ICE when encountering dyn* in statics or consts#109921
Merged
bors merged 1 commit intorust-lang:masterfrom Apr 6, 2023
Merged
Don't ICE when encountering dyn* in statics or consts#109921bors merged 1 commit intorust-lang:masterfrom
dyn* in statics or consts#109921bors merged 1 commit intorust-lang:masterfrom
Conversation
eholk
reviewed
Apr 5, 2023
| @@ -0,0 +1,10 @@ | |||
| // check-pass | |||
Contributor
There was a problem hiding this comment.
Is check-pass enough to run constant evaluation?
Contributor
|
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. |
Contributor
Author
|
Yes, it's sufficient to cause the ICE. @bors r=eholk rollup |
Collaborator
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since we have properly implemented
dyn*support in CTFE (#107728), let's not ICE here anymore.Fixes #105777
r? @eholk