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

rustc: T: 'empty always holds for all types. #42482

Merged
merged 1 commit into from
Jun 7, 2017

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Jun 6, 2017

Fixes #42467 by special-casing ReEmpty to always hold, even for parameters.
The reason this is the case is that ReEmpty is the result of inferring a region variable with no constraints attached to it, so there is no lifetime a type would contain which would be strictly shorter.

r? @nikomatsakis

@eddyb eddyb added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jun 6, 2017
@eddyb eddyb requested a review from nikomatsakis June 6, 2017 16:54
@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 6, 2017

📌 Commit ec7195f has been approved by nikomatsakis

@bors
Copy link
Collaborator

bors commented Jun 7, 2017

⌛ Testing commit ec7195f with merge 37b1f6c...

bors added a commit that referenced this pull request Jun 7, 2017
rustc: T: 'empty always holds for all types.

Fixes #42467 by special-casing `ReEmpty` to always hold, even for parameters.
The reason this is the case is that `ReEmpty` is the result of inferring a region variable with no constraints attached to it, so there is no lifetime a type would contain which would be strictly shorter.

r? @nikomatsakis
@bors
Copy link
Collaborator

bors commented Jun 7, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: nikomatsakis
Pushing 37b1f6c to master...

@bors bors merged commit ec7195f into rust-lang:master Jun 7, 2017
@eddyb eddyb deleted the issue-42467 branch June 7, 2017 12:34
@brson brson added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Jun 12, 2017
@brson brson mentioned this pull request Jun 12, 2017
@brson brson removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jun 13, 2017
bors added a commit that referenced this pull request Jun 15, 2017
Beta next

- #42521
- #42512
- #42482
- #42481
- #42480

r? @nikomatsakis remember to untag 'beta-nominated' on linked issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants