You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
async{} blocks can no longer be used in functions marked as #[track_caller] #105134
The following code compiles and works as expected on nightly-2022-11-17 and fails on nightly-2022-11-18:
#[track_caller]pubfnf(){
_ = async{};}
error[E0658]: `#[track_caller]` on closures is currently unstable
--> src/lib.rs:3:9
|
3 | _ = async {};
| ^^^^^^^^
|
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
Similarly to #104588, this is caused by #104219, but this reproduction doesn't even use #[track_caller] on async fn! btw I've found this b/c users of my crate reported that it doesn't compile anymore, good stuff
@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
cc @bryangarza
Activity
apiraino commentedon Dec 2, 2022
WG-prioritization assigning priority (Zulip discussion).
@rustbot label -I-prioritize +P-critical
Rollup merge of rust-lang#105180 - nbdd0121:async_track_caller, r=com…
Rollup merge of rust-lang#105180 - nbdd0121:async_track_caller, r=com…