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

NLL mentions lifetimes that are not included in printed span(s). #52973

Merged

Conversation

davidtwco
Copy link
Member

Part of #52663.

r? @pnkfelix

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 2, 2018
@pnkfelix
Copy link
Member

pnkfelix commented Aug 2, 2018

The definition point for the lifetime probably isn't the optimal thing to highlight... it would be nice, if we can do it, to highlight the relevant usage points (right)? That is, the points where the lifetime is used in the type(s) relevant to the error message.

Having said that, this is better than nothing, especially since the relevant types are likely to be close to, perhaps even on the same line as, the definition point.

@pnkfelix
Copy link
Member

pnkfelix commented Aug 2, 2018

@bors r+

@bors
Copy link
Contributor

bors commented Aug 2, 2018

📌 Commit 2488cb6 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 Aug 2, 2018
cramertj added a commit to cramertj/rust that referenced this pull request Aug 2, 2018
…-included-in-span, r=pnkfelix

NLL mentions lifetimes that are not included in printed span(s).

Part of rust-lang#52663.

r? @pnkfelix
cramertj added a commit to cramertj/rust that referenced this pull request Aug 2, 2018
…-included-in-span, r=pnkfelix

NLL mentions lifetimes that are not included in printed span(s).

Part of rust-lang#52663.

r? @pnkfelix
@bors
Copy link
Contributor

bors commented Aug 3, 2018

⌛ Testing commit 2488cb6 with merge 7e031b0...

bors added a commit that referenced this pull request Aug 3, 2018
…n-span, r=pnkfelix

NLL mentions lifetimes that are not included in printed span(s).

Part of #52663.

r? @pnkfelix
@bors
Copy link
Contributor

bors commented Aug 3, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: pnkfelix
Pushing 7e031b0 to master...

@bors bors merged commit 2488cb6 into rust-lang:master Aug 3, 2018
@davidtwco davidtwco deleted the issue-52663-lifetimes-not-included-in-span branch August 6, 2018 14:10
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants