Skip to content

allow escaping bound vars when normalizing ty::Opaque - #75443

Merged
bors merged 1 commit into
rust-lang:masterfrom
lcnr:opaque-normalize
Aug 13, 2020
Merged

allow escaping bound vars when normalizing ty::Opaque#75443
bors merged 1 commit into
rust-lang:masterfrom
lcnr:opaque-normalize

Conversation

@lcnr

@lcnrlcnr commented Aug 12, 2020

Copy link
Copy Markdown
Contributor

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 12, 2020

@eddybeddyb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is what I had in mind (although I missed that the code ended up duplicated like that), but I want @nikomatsakis and/or @matthewjasper to make sure I'm not wrong about my assumptions (see #75313 (comment)).

@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Aug 13, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit d2398ee has been approved by nikomatsakis

@borsbors 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 Aug 13, 2020
@lcnrlcnr added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Aug 13, 2020
@spastorino

Copy link
Copy Markdown
Member

@bors p=1 (fixes a P-critical issue)

@spastorinospastorino added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Aug 13, 2020
@bors

bors commented Aug 13, 2020

Copy link
Copy Markdown
Collaborator

⌛ Testing commit d2398ee with merge 0a49057...

@bors

bors commented Aug 13, 2020

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions, checks-azure
Approved by: nikomatsakis
Pushing 0a49057 to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Aug 13, 2020
@bors
bors merged commit 0a49057 into rust-lang:masterAug 13, 2020
@lcnr
lcnr deleted the opaque-normalize branch August 13, 2020 17:51
@pnkfelix

Copy link
Copy Markdown
Contributor

Unilaterally beta-accepting

@pnkfelixpnkfelix added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Aug 20, 2020
@Mark-SimulacrumMark-Simulacrum mentioned this pull request Aug 20, 2020
@Mark-SimulacrumMark-Simulacrum removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Aug 20, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 21, 2020
…ulacrum
[beta] backports
* Fix regionck failure when converting Index to IndexMut rust-lang#74960
* Update RELEASES.md for 1.46.0 rust-lang#74744
* allow escaping bound vars when normalizing `ty::Opaque` rust-lang#75443
r? @ghost
matklad added a commit to matklad/rust that referenced this pull request Sep 4, 2020
Add a regression test for issue-72793
Adds a regression test for rust-lang#72793, which is fixed by rust-lang#75443. Note that this won't close the issue as the snippet still shows ICE with `-Zmir-opt-level=2`. But it makes sense to add a test anyway.
matklad added a commit to matklad/rust that referenced this pull request Sep 4, 2020
Add a regression test for issue-72793
Adds a regression test for rust-lang#72793, which is fixed by rust-lang#75443. Note that this won't close the issue as the snippet still shows ICE with `-Zmir-opt-level=2`. But it makes sense to add a test anyway.
matklad added a commit to matklad/rust that referenced this pull request Sep 4, 2020
Add a regression test for issue-72793
Adds a regression test for rust-lang#72793, which is fixed by rust-lang#75443. Note that this won't close the issue as the snippet still shows ICE with `-Zmir-opt-level=2`. But it makes sense to add a test anyway.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 4, 2020
Add a regression test for issue-72793
Adds a regression test for rust-lang#72793, which is fixed by rust-lang#75443. Note that this won't close the issue as the snippet still shows ICE with `-Zmir-opt-level=2`. But it makes sense to add a test anyway.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 4, 2020
Add a regression test for issue-72793
Adds a regression test for rust-lang#72793, which is fixed by rust-lang#75443. Note that this won't close the issue as the snippet still shows ICE with `-Zmir-opt-level=2`. But it makes sense to add a test anyway.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 5, 2020
Add a regression test for issue-72793
Adds a regression test for rust-lang#72793, which is fixed by rust-lang#75443. Note that this won't close the issue as the snippet still shows ICE with `-Zmir-opt-level=2`. But it makes sense to add a test anyway.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 5, 2020
Add a regression test for issue-72793
Adds a regression test for rust-lang#72793, which is fixed by rust-lang#75443. Note that this won't close the issue as the snippet still shows ICE with `-Zmir-opt-level=2`. But it makes sense to add a test anyway.
lcnr added a commit to lcnr/rust that referenced this pull request Oct 26, 2020
lcnr added a commit to lcnr/rust that referenced this pull request Nov 2, 2020
@Mark-SimulacrumMark-Simulacrum mentioned this pull request Nov 5, 2020
Mark-Simulacrum pushed a commit to Mark-Simulacrum/rust that referenced this pull request Nov 6, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 7, 2020
…ulacrum
[beta] backports
This backports a number of PRs to beta:
* Add delay_span_bug to no longer ICE rust-lang#78645
* Do not ICE on invalid input rust-lang#78422
* revert rust-lang#75443, update mir validator rust-lang#78410
* Do not try to report on closures to avoid ICE rust-lang#78268
* Disable "optimization to avoid load of address" in InstCombine rust-lang#78195
* Disable MatchBranchSimplification rust-lang#78151
* Do not ICE with TraitPredicates containing [type error] rust-lang#77930
* Tweak `if let` suggestion to be more liberal with suggestion and to not ICE rust-lang#77283
* Use different mirror for linux headers in musl-toolchain CI script. rust-lang#78316
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 8, 2020
revert rust-lang#75443, update mir validator
This PR reverts rust-lang#75443 to fixrust-lang#75992 and instead uses rust-lang#75419 to fixrust-lang#75313.
Adapts rust-lang#75419 to correctly deal with unevaluated constants as otherwise some `feature(const_evaluatable_checked)` tests would ICE.
Note that rust-lang#72793 was also fixed by rust-lang#75443, but as that issue only concerns `feature(type_alias_impl_trait)` I deleted that test case for now and would reopen that issue.
rust-lang#75443 may have also allowed some other code to now successfully compile which would make this revert a breaking change after 2 stable versions, but I hope that this is a purely theoretical concern.
See https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/generator.20upvars/near/214617274 for more reasoning about this.
r? `@nikomatsakis` `@eddyb` `@RalfJung`
@cuvipercuviper added this to the 1.47.0 milestone May 2, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-acceptedAccepted for backporting to the compiler in the beta channel.merged-by-borsThis PR was explicitly merged by bors.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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.

Panic when compiling gluon on 1.46

9 participants

@lcnr@nikomatsakis@bors@spastorino@pnkfelix@eddyb@cuviper@Mark-Simulacrum@rust-highfive