@@ -1259,8 +1259,8 @@ impl<'tcx> LateLintPass<'tcx> for UnstableFeatures {
1259
1259
1260
1260
declare_lint ! {
1261
1261
/// 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.
1264
1264
///
1265
1265
/// ### Example
1266
1266
///
@@ -1274,13 +1274,13 @@ declare_lint! {
1274
1274
/// ### Explanation
1275
1275
///
1276
1276
/// 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]`
1278
1278
/// annotation will function as a no-op.
1279
1279
///
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
1281
1281
UNGATED_ASYNC_FN_TRACK_CALLER ,
1282
1282
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"
1284
1284
}
1285
1285
1286
1286
declare_lint_pass ! (
@@ -1300,7 +1300,7 @@ impl<'tcx> LateLintPass<'tcx> for UngatedAsyncFnTrackCaller {
1300
1300
def_id : LocalDefId ,
1301
1301
) {
1302
1302
if fn_kind. asyncness ( ) == IsAsync :: Async
1303
- && !cx. tcx . features ( ) . closure_track_caller
1303
+ && !cx. tcx . features ( ) . async_fn_track_caller
1304
1304
// Now, check if the function has the `#[track_caller]` attribute
1305
1305
&& let Some ( attr) = cx. tcx . get_attr ( def_id, sym:: track_caller)
1306
1306
{
0 commit comments