Skip to content

def_collector: Fully visit async functions - #70011

Merged
bors merged 1 commit into
rust-lang:masterfrom
petrochenkov:asyncice
Mar 15, 2020
Merged

def_collector: Fully visit async functions#70011
bors merged 1 commit into
rust-lang:masterfrom
petrochenkov:asyncice

Conversation

@petrochenkov

@petrochenkovpetrochenkov commented Mar 14, 2020

Copy link
Copy Markdown
Contributor

We forgot to visit attributes previously, it caused ICEs.

Special treatment of async functions is also moved from visit_item to visit_fn to reuse more of the default visitor.

Fixes#67778.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @estebank

(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 Mar 14, 2020
@petrochenkov

petrochenkov commented Mar 14, 2020

Copy link
Copy Markdown
ContributorAuthor

Actually, maybe this can be cleaned up to only specialize visit_fn for async functions instead of visit_item. I'll try.

UPDATE: Done.

@Centril

Copy link
Copy Markdown
Contributor

Nice! r? @Centril@bors r+

@bors

bors commented Mar 15, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 2093d83 has been approved by Centril

@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 Mar 15, 2020
@CentrilCentril mentioned this pull request Mar 15, 2020
bors added a commit that referenced this pull request Mar 15, 2020
Rollup of 8 pull requests
Successful merges:
- #69528 (Add undo_leak to reset RefCell borrow state)
- #69589 (ast: `Mac`/`Macro` -> `MacCall`)
- #69661 (Implement From<&mut str> for String)
- #69988 (rustc_metadata: Remove `rmeta::MacroDef`)
- #70006 (resolve: Fix two issues in fresh binding disambiguation)
- #70011 (def_collector: Fully visit async functions)
- #70013 (Return feature gate as a `Symbol` )
- #70018 (Fix "since" field for `Once::is_complete`'s `#[stable]` attribute)
Failed merges:
r? @ghost
@bors
bors merged commit d74c5cd into rust-lang:masterMar 15, 2020
@petrochenkov
petrochenkov deleted the asyncice branch February 22, 2025 18:41
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.

async fn ICEs in macro on stable

5 participants

@petrochenkov@rust-highfive@Centril@bors@estebank