@@ -1259,8 +1259,8 @@ impl<'tcx> LateLintPass<'tcx> for UnstableFeatures {
12591259
12601260declare_lint ! {
12611261 /// The `ungated_async_fn_track_caller` lint warns when the
1262- /// `#[track_caller]` attribute is used on an async function, method, or
1263- /// closure, without enabling the corresponding unstable feature flag.
1262+ /// `#[track_caller]` attribute is used on an async function
1263+ /// without enabling the corresponding unstable feature flag.
12641264 ///
12651265 /// ### Example
12661266 ///
@@ -1274,13 +1274,13 @@ declare_lint! {
12741274 /// ### Explanation
12751275 ///
12761276 /// The attribute must be used in conjunction with the
1277- /// [`closure_track_caller ` feature flag]. Otherwise, the `#[track_caller]`
1277+ /// [`async_fn_track_caller ` feature flag]. Otherwise, the `#[track_caller]`
12781278 /// annotation will function as a no-op.
12791279 ///
1280- /// [`closure_track_caller ` feature flag]: https://doc.rust-lang.org/beta/unstable-book/language-features/closure -track-caller.html
1280+ /// [`async_fn_track_caller ` feature flag]: https://doc.rust-lang.org/beta/unstable-book/language-features/async-fn -track-caller.html
12811281 UNGATED_ASYNC_FN_TRACK_CALLER ,
12821282 Warn ,
1283- "enabling track_caller on an async fn is a no-op unless the closure_track_caller feature is enabled"
1283+ "enabling track_caller on an async fn is a no-op unless the async_fn_track_caller feature is enabled"
12841284}
12851285
12861286declare_lint_pass ! (
@@ -1300,7 +1300,7 @@ impl<'tcx> LateLintPass<'tcx> for UngatedAsyncFnTrackCaller {
13001300 def_id : LocalDefId ,
13011301 ) {
13021302 if fn_kind. asyncness ( ) == IsAsync :: Async
1303- && !cx. tcx . features ( ) . closure_track_caller
1303+ && !cx. tcx . features ( ) . async_fn_track_caller
13041304 // Now, check if the function has the `#[track_caller]` attribute
13051305 && let Some ( attr) = cx. tcx . get_attr ( def_id, sym:: track_caller)
13061306 {
0 commit comments