Skip to content

rustc_typeck: don't record direct callees in generator_interior. - #65743

Merged
bors merged 1 commit into
rust-lang:masterfrom
eddyb:generator-on-call
Oct 26, 2019
Merged

rustc_typeck: don't record direct callees in generator_interior.#65743
bors merged 1 commit into
rust-lang:masterfrom
eddyb:generator-on-call

Conversation

@eddyb

@eddybeddyb commented Oct 23, 2019

Copy link
Copy Markdown
Contributor

For expressions like f(g().await) we were recording f as needing to be kept in a temporary (and therefore be tracked by the generator type) across the suspend, even if a function/method path.
However, this is never needed, and can cause issues with complex function types (see #65244).

cc @Zoxc@nikomatsakis

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @matthewjasper

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 23, 2019
@matthewjasper

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Oct 26, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit d717806 has been approved by matthewjasper

@bors

bors commented Oct 26, 2019

Copy link
Copy Markdown
Collaborator

🌲 The tree is currently closed for pull requests below priority 1000, this pull request will be tested once the tree is reopened

@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 Oct 26, 2019
Centril added a commit to Centril/rust that referenced this pull request Oct 26, 2019
…asper
rustc_typeck: don't record direct callees in generator_interior.
For expressions like `f(g().await)` we were recording `f` as needing to be kept in a temporary (and therefore be tracked by the generator type) across the suspend, even if a function/method path.
However, this is never needed, and can cause issues with complex function types (see rust-lang#65244).
cc @Zoxc@nikomatsakis
@CentrilCentril mentioned this pull request Oct 26, 2019
bors added a commit that referenced this pull request Oct 26, 2019
Rollup of 8 pull requests
Successful merges:
- #65743 (rustc_typeck: don't record direct callees in generator_interior.)
- #65761 (libsyntax: Enhance documentation of the AST module)
- #65772 (Remove the last remaining READMEs)
- #65773 (Increase spacing for suggestions in diagnostics)
- #65791 (Adding doc on keyword continue)
- #65824 (rustc: make DefPathData (and friends) Copy (now that it uses Symbol).)
- #65828 (Derive Eq and Hash for SourceInfo again)
- #65842 (Add more information on rustdoc search)
Failed merges:
- #65825 (rustc: use IndexVec<DefIndex, T> instead of Vec<T>.)
r? @ghost
@bors
bors merged commit d717806 into rust-lang:masterOct 26, 2019
@eddyb
eddyb deleted the generator-on-call branch October 27, 2019 08:50
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.

4 participants

@eddyb@rust-highfive@matthewjasper@bors