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

Suggest to shorten temporary lifetime during method call inside generator #68212

Merged
merged 4 commits into from
Jan 15, 2020

Conversation

csmoe
Copy link
Member

@csmoe csmoe commented Jan 14, 2020

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 14, 2020
@rust-highfive

This comment has been minimized.

@csmoe csmoe changed the title Suggest to shorten temporary lifetime during method call Suggest to shorten temporary lifetime method call inside generator Jan 14, 2020
@rust-highfive

This comment has been minimized.

@csmoe csmoe changed the title Suggest to shorten temporary lifetime method call inside generator Suggest to shorten temporary lifetime during method call inside generator Jan 14, 2020
src/librustc/traits/error_reporting.rs Show resolved Hide resolved
src/librustc/ty/context.rs Outdated Show resolved Hide resolved
@estebank
Copy link
Contributor

After applying niko's suggestion, r=me.

@csmoe
Copy link
Member Author

csmoe commented Jan 15, 2020

r=@estebank

@estebank
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Jan 15, 2020

📌 Commit 4eb47de has been approved by estebank

@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 Jan 15, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Jan 15, 2020
bors added a commit that referenced this pull request Jan 15, 2020
Rollup of 6 pull requests

Successful merges:

 - #68123 (Implement Cursor for linked lists. (RFC 2570).)
 - #68212 (Suggest to shorten temporary lifetime during method call inside generator)
 - #68232 (Optimize size/speed of Unicode datasets)
 - #68236 (Add some regression tests)
 - #68237 (Account for `Path`s in `is_suggestable_infer_ty`)
 - #68252 (remove redundant clones, found by clippy)

Failed merges:

r? @ghost
@bors bors merged commit 4eb47de into rust-lang:master Jan 15, 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.

improve diagnostics for non-send Futures that might be solved by introducing temporary variables
5 participants