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

Use smaller span for suggestion restricting lifetime #70827

Merged
merged 1 commit into from
Apr 6, 2020

Conversation

estebank
Copy link
Contributor

@estebank estebank commented Apr 5, 2020

No description provided.

@rust-highfive
Copy link
Collaborator

r? @ecstatic-morse

(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 Apr 5, 2020
@ecstatic-morse
Copy link
Contributor

One could conceivably argue that the span should point to "the opaque type" mentioned in the error message instead of "the bound", but I think this PR is strictly an improvement.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 6, 2020

📌 Commit 0664b81 has been approved by ecstatic-morse

@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 Apr 6, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 6, 2020
Rollup of 5 pull requests

Successful merges:

 - rust-lang#70519 (Tweak output of type params and constraints in the wrong order)
 - rust-lang#70704 (Make panic unwind the default for aarch64-*-windows-msvc targets)
 - rust-lang#70713 (Prefer sysroot from rustc in same directory as rust-gdb)
 - rust-lang#70739 (def_collector, visit_fn: account for no body)
 - rust-lang#70827 (Use smaller span for suggestion restricting lifetime)

Failed merges:

r? @ghost
@bors bors merged commit 3faec69 into rust-lang:master Apr 6, 2020
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