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

Allow for failure of subst_normalize_erasing_regions in const_eval #91551

Merged
merged 2 commits into from
Dec 8, 2021

Conversation

b-naber
Copy link
Contributor

@b-naber b-naber commented Dec 5, 2021

Fixes #72845

Using associated types that cannot be normalized previously resulted in an ICE. We now allow for normalization failure and return a "TooGeneric" error in that case.

r? @RalfJung maybe?

@rust-highfive
Copy link
Collaborator

Some changes occured to the CTFE / Miri engine

cc @rust-lang/miri

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 5, 2021
@RalfJung
Copy link
Member

RalfJung commented Dec 6, 2021

I hope @oli-obk can help with this one or knows someone who can -- anything that happens 'early' during compilation, where things can be TooGeneric, is way outside my comfort zone.

Let's see if this does anything
r? @rust-lang/wg-const-eval

@RalfJung
Copy link
Member

RalfJung commented Dec 6, 2021

Since this is about const generics, also @rust-lang/project-const-generics

@oli-obk
Copy link
Contributor

oli-obk commented Dec 6, 2021

r? @oli-obk

@rust-highfive rust-highfive assigned oli-obk and unassigned RalfJung Dec 6, 2021
@oli-obk
Copy link
Contributor

oli-obk commented Dec 7, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Dec 7, 2021

📌 Commit 3f831c6 has been approved by oli-obk

@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 Dec 7, 2021
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Dec 8, 2021
…e, r=oli-obk

Allow for failure of subst_normalize_erasing_regions in const_eval

Fixes rust-lang#72845

Using associated types that cannot be normalized previously resulted in an ICE. We now allow for normalization failure and return a "TooGeneric" error in that case.

r? `@RalfJung` maybe?
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Dec 8, 2021
…e, r=oli-obk

Allow for failure of subst_normalize_erasing_regions in const_eval

Fixes rust-lang#72845

Using associated types that cannot be normalized previously resulted in an ICE. We now allow for normalization failure and return a "TooGeneric" error in that case.

r? ``@RalfJung`` maybe?
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 8, 2021
…askrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#90709 (Only shown relevant type params in E0283 label)
 - rust-lang#91551 (Allow for failure of subst_normalize_erasing_regions in const_eval)
 - rust-lang#91570 (Evaluate inline const pat early and report error if too generic)
 - rust-lang#91571 (Remove unneeded access to pretty printer's `s` field in favor of deref)
 - rust-lang#91610 (Link to rustdoc_json_types docs instead of rustdoc-json RFC)
 - rust-lang#91619 (Update cargo)
 - rust-lang#91630 (Add missing whitespace before disabled HTML attribute)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 317f750 into rust-lang:master Dec 8, 2021
@rustbot rustbot added this to the 1.59.0 milestone Dec 8, 2021
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ICE] Const generics + Const normalization + Specialization
6 participants