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

Fixes #53119. #53186

Merged
merged 2 commits into from
Aug 9, 2018
Merged

Fixes #53119. #53186

merged 2 commits into from
Aug 9, 2018

Conversation

mikhail-m1
Copy link
Contributor

@mikhail-m1 mikhail-m1 commented Aug 8, 2018

Fixes #53119.

I minimized sample little bit more, but I checked the sample from issue too.
r? @nikomatsakis

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 8, 2018
// `ClosureOutlivesRequirement`.
let r_scc = self.constraint_sccs.scc(*lower_bound);
for ur in self.scc_values.universal_regions_outlived_by(r_scc) {
let non_local_ub = self.universal_region_relations.non_local_upper_bound(ur);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I cannot use non_local_universal_upper_bound because it returns 'static for '_#5r from your comment in the issue

Copy link
Contributor

Choose a reason for hiding this comment

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

seems fine

Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

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

Nice! Left a nit requesting a new comment.

!self
// For each region outlived by lower_bound find a non-local,
// universal region (it may be the same region) and add it to
// `ClosureOutlivesRequirement`.

This comment was marked as resolved.

@nikomatsakis
Copy link
Contributor

@bors r+ p=1

This is a RC blocker for NLL.

@bors
Copy link
Contributor

bors commented Aug 8, 2018

📌 Commit e5f32ef has been approved by nikomatsakis

@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 Aug 8, 2018
cramertj added a commit to cramertj/rust that referenced this pull request Aug 8, 2018
Fixes rust-lang#53119.

Fixes rust-lang#53119.

I minimized sample little bit more, but I checked the sample from issue too.
r? @nikomatsakis
@bors
Copy link
Contributor

bors commented Aug 8, 2018

⌛ Testing commit e5f32ef with merge 80caa7f...

bors added a commit that referenced this pull request Aug 8, 2018
Fixes #53119.

Fixes #53119.

I minimized sample little bit more, but I checked the sample from issue too.
r? @nikomatsakis
@bors
Copy link
Contributor

bors commented Aug 9, 2018

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

@bors bors merged commit e5f32ef into rust-lang:master Aug 9, 2018
@pnkfelix pnkfelix added the A-NLL Area: Non-lexical lifetimes (NLL) label Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-NLL Area: Non-lexical lifetimes (NLL) 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.

5 participants