Skip to content

Commit

Permalink
Auto merge of #104219 - bryangarza:async-track-caller-dup, r=eholk
Browse files Browse the repository at this point in the history
Support `#[track_caller]` on async fns

Adds `#[track_caller]` to the generator that is created when we desugar the async fn.

Fixes #78840

Open questions:
- What is the performance impact of adding `#[track_caller]` to every `GenFuture`'s `poll(...)` function, even if it's unused (i.e., the parent span does not set `#[track_caller]`)? We might need to set it only conditionally, if the indirection causes overhead we don't want.
  • Loading branch information
bors committed Nov 17, 2022
2 parents 344a043 + 846e2a3 commit 9fb64de
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 9fb64de

Please sign in to comment.