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

Constrain all regions in the concrete type for an opaque type #60449

Merged
merged 1 commit into from
May 4, 2019

Conversation

matthewjasper
Copy link
Contributor

push_outlives_components skips some regions in a type, notably the signature
of a closure is ignored. Most of the time this is OK, but for opaque types the
concrete type is used when checking auto-trait bounds in other functions.

cc @nikomatsakis @pnkfelix

Closes #57464
Closes #60127

@rust-highfive
Copy link
Collaborator

r? @eddyb

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 1, 2019
@matthewjasper matthewjasper force-pushed the impl-trait-outlives branch from 19cc7a4 to d69784e Compare May 1, 2019 20:32
@eddyb
Copy link
Member

eddyb commented May 1, 2019

r? @pnkfelix

@rust-highfive rust-highfive assigned pnkfelix and unassigned eddyb May 1, 2019
@rust-highfive

This comment has been minimized.

@matthewjasper matthewjasper force-pushed the impl-trait-outlives branch from d69784e to 4a1c0ce Compare May 1, 2019 22:30
@pnkfelix
Copy link
Member

pnkfelix commented May 2, 2019

@bors r+

@bors
Copy link
Contributor

bors commented May 2, 2019

📌 Commit 4a1c0cec7b1fd64237de1468ca99f2bad094070d has been approved by pnkfelix

@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 May 2, 2019
@matthewjasper
Copy link
Contributor Author

@bors r- so that I can fix the comment

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 2, 2019
@matthewjasper matthewjasper force-pushed the impl-trait-outlives branch from 4a1c0ce to d72f4de Compare May 2, 2019 17:57
@matthewjasper
Copy link
Contributor Author

@bors r=pnkfelix

@bors
Copy link
Contributor

bors commented May 2, 2019

📌 Commit d72f4de has been approved by pnkfelix

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 2, 2019
Centril added a commit to Centril/rust that referenced this pull request May 2, 2019
…r=pnkfelix

Constrain all regions in the concrete type for an opaque type

`push_outlives_components` skips some regions in a type, notably the signature
of a closure is ignored. Most of the time this is OK, but for opaque types the
concrete type is used when checking auto-trait bounds in other functions.

cc @nikomatsakis @pnkfelix

Closes rust-lang#57464
Closes rust-lang#60127
Centril added a commit to Centril/rust that referenced this pull request May 3, 2019
…r=pnkfelix

Constrain all regions in the concrete type for an opaque type

`push_outlives_components` skips some regions in a type, notably the signature
of a closure is ignored. Most of the time this is OK, but for opaque types the
concrete type is used when checking auto-trait bounds in other functions.

cc @nikomatsakis @pnkfelix

Closes rust-lang#57464
Closes rust-lang#60127
Centril added a commit to Centril/rust that referenced this pull request May 3, 2019
…r=pnkfelix

Constrain all regions in the concrete type for an opaque type

`push_outlives_components` skips some regions in a type, notably the signature
of a closure is ignored. Most of the time this is OK, but for opaque types the
concrete type is used when checking auto-trait bounds in other functions.

cc @nikomatsakis @pnkfelix

Closes rust-lang#57464
Closes rust-lang#60127
Centril added a commit to Centril/rust that referenced this pull request May 4, 2019
…r=pnkfelix

Constrain all regions in the concrete type for an opaque type

`push_outlives_components` skips some regions in a type, notably the signature
of a closure is ignored. Most of the time this is OK, but for opaque types the
concrete type is used when checking auto-trait bounds in other functions.

cc @nikomatsakis @pnkfelix

Closes rust-lang#57464
Closes rust-lang#60127
bors added a commit that referenced this pull request May 4, 2019
Rollup of 9 pull requests

Successful merges:

 - #60429 (Account for paths in incorrect pub qualifier help)
 - #60449 (Constrain all regions in the concrete type for an opaque type)
 - #60486 (Place related refactors)
 - #60513 (Remove -Z borrowck=compare flag)
 - #60516 (Remove TypeckMir)
 - #60517 (Reword casting message)
 - #60520 (Add rustfmt toml)
 - #60521 (Migrate tidy to rust 2018 edition)
 - #60527 (Fix async fn lowering ICE with APIT.)

Failed merges:

r? @ghost
@bors bors merged commit d72f4de into rust-lang:master May 4, 2019
@matthewjasper matthewjasper deleted the impl-trait-outlives branch May 12, 2019 16:10
@pnkfelix
Copy link
Member

based on a user request, nominating for backport to stable. (I am assuming a backport to beta in time for the beta-to-stable-rollover is simply not feasible at this point in the cycle.)

@pnkfelix pnkfelix added the stable-nominated Nominated for backporting to the compiler in the stable channel. label May 17, 2019
@matthewjasper
Copy link
Contributor Author

I've also nominated #60765 because it's essentially the second part of this fix.

@pietroalbini pietroalbini added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label May 28, 2019
@pnkfelix
Copy link
Member

pnkfelix commented Jun 6, 2019

discussed at T-compiler meeting. Approved for backport to stable channel.

@pnkfelix pnkfelix added the stable-accepted Accepted for backporting to the compiler in the stable channel. label Jun 6, 2019
@Centril
Copy link
Contributor

Centril commented Jun 11, 2019

Discussed on T-release meeting; declining point release for now based on sum-total of stable-accepted.

@Mark-Simulacrum Mark-Simulacrum removed stable-nominated Nominated for backporting to the compiler in the stable channel. stable-accepted Accepted for backporting to the compiler in the stable channel. labels Jul 2, 2019
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
8 participants