Add separate feature gate for async fn track caller - #112117
Conversation
|
r? @wesleywiser (rustbot has picked a reviewer for you, use r? to override) |
6778fee to
937b429
Compare
|
@rustbot author |
937b429 to
18de762
Compare
|
One thing I'm not sure is if I should be updating this line that sets The tests pass as-is, but I'm not sure if I should have to reference the new feature gate inside of |
There was a problem hiding this comment.
Why is this using cls and not afn? This is an async block -- shouldn't it only work when async_fn_track_caller is enabled?
There was a problem hiding this comment.
Well, I guess it's separate.
There was a problem hiding this comment.
yeah it's separate, this case is still gated by closure_track_caller
compiler-errors
left a comment
There was a problem hiding this comment.
Can you add more tests to make sure, e.g., nested closures inside of async fns don't accidentally allow #[track_caller] with just the async_fn_track_caller feature gate?
18de762 to
202e3f6
Compare
@compiler-errors I now updated |
|
Also while we're at it, that line you mentioned: We could actually be even more conservative and change it so that we only add |
202e3f6 to
b9e395f
Compare
|
@rustbot ready |
|
@bors r+ |
|
📌 Commit b9e395fd4e612742d7d41542fbbe2a80eb9b95d7 has been approved by It is now in the queue for this repository. |
|
⌛ Testing commit b9e395fd4e612742d7d41542fbbe2a80eb9b95d7 with merge ea47e718b84c05a876f43cd313e78683bdfd7cca... |
|
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
|
@bryangarza you need to bless ui tests @rustbot author |
This patch adds a feature gate `async_fn_track_caller` that is separate from `closure_track_caller`. This is to allow enabling `async_fn_track_caller` separately. Fixes rust-lang#110009
b9e395f to
673ab17
Compare
|
@rustbot ready |
|
@bors r+ |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (e173a8e): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 650.779s -> 650.501s (-0.04%) |
This patch adds a feature gate
async_fn_track_callerthat is separate fromclosure_track_caller. This is to allow enablingasync_fn_track_callerseparately.Fixes #110009