Skip to content

region error messages involving impls are confusing - #53124

Merged
bors merged 3 commits into
rust-lang:masterfrom
davidtwco:issue-52742
Aug 10, 2018
Merged

region error messages involving impls are confusing #53124
bors merged 3 commits into
rust-lang:masterfrom
davidtwco:issue-52742

Conversation

@davidtwco

@davidtwcodavidtwco commented Aug 6, 2018

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Contributor

@bors r+

1 similar comment
@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Aug 7, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 12037ff 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 7, 2018
@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors delegate=davidtwco

@bors

bors commented Aug 7, 2018

Copy link
Copy Markdown
Collaborator

✌️ @davidtwco can now approve this pull request

cramertj added a commit to cramertj/rust that referenced this pull request Aug 8, 2018
@cramertjcramertj mentioned this pull request Aug 8, 2018
@bors

bors commented Aug 9, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 12037ff with merge c8cecf4...

bors added a commit that referenced this pull request Aug 9, 2018
region error messages involving impls are confusing
Part of #52742.
r? @nikomatsakis
@bors

bors commented Aug 9, 2018

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-appveyor

@borsbors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 9, 2018
@kennytm

Copy link
Copy Markdown
Member

@bors r-

 failures:
---- [ui] ui\nll\issue-52742.rs stdout ----
diff of stderr:
-	error: unsatisfied lifetime constraints- --> $DIR/issue-52742.rs:25:9+	error[E0106]: missing lifetime specifiers+ --> $DIR/issue-52742.rs:23:10
3 |
-	LL | fn take_bar(&mut self, b: Bar<'_>) {- | --------- -- let's call this `'1`- | |- | has type `&mut Foo<'_, '2>`-	LL | self.y = b.z- | ^^^^^^^^^^^^ requires that `'1` must outlive `'2`+	LL | impl Foo<'_, '_> {+ | ^^ expected 2 lifetime parameters
10 11	error: aborting due to previous error
12 +	For more information about this error, try `rustc --explain E0106`.
13	

@borsbors 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-review Status: Awaiting review from the assignee but also interested parties. labels Aug 9, 2018
// except according to those terms.

#![feature(nll)]
#![feature(in_band_lifetimes)]

@nikomatsakisnikomatsakisAug 9, 2018

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.

the problem here is that we now need another feature gate here

#![feature(impl_header_lifetime_elision)]

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Fixed.

@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Aug 9, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 31657c9 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 9, 2018
@bors

bors commented Aug 10, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 31657c9 with merge f6d43ed...

bors added a commit that referenced this pull request Aug 10, 2018
region error messages involving impls are confusing
Part of #52742.
r? @nikomatsakis
@bors

bors commented Aug 10, 2018

Copy link
Copy Markdown
Collaborator

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

@bors
bors merged commit 31657c9 into rust-lang:masterAug 10, 2018
@davidtwco
davidtwco deleted the issue-52742 branch August 10, 2018 09:28
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: 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

@davidtwco@nikomatsakis@bors@kennytm@rust-highfive