Skip to content

Commit b2de435

Browse files
committed
update wording of lint
1 parent 4d71cec commit b2de435

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/rustc_error_messages/locales/en-US/lint.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ lint_builtin_mutable_transmutes =
351351
lint_builtin_unstable_features = unstable feature
352352
353353
lint_ungated_async_fn_track_caller = `#[track_caller]` on async functions is a no-op
354-
.suggestion = enable this feature
354+
.suggestion = enable this unstable feature
355355
356356
lint_builtin_unreachable_pub = unreachable `pub` {$what}
357357
.suggestion = consider restricting its visibility

compiler/rustc_lint/src/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ impl<'tcx> LateLintPass<'tcx> for UngatedAsyncFnTrackCaller {
13761376
|lint| {
13771377
lint.span_label(span, "this function will not propagate the caller location");
13781378
if cx.tcx.sess.is_nightly_build() {
1379-
lint.span_suggestion(attr.span, fluent::suggestion, "#[closure_track_caller]", Applicability::MachineApplicable);
1379+
lint.span_suggestion(attr.span, fluent::suggestion, "closure_track_caller", Applicability::MachineApplicable);
13801380
}
13811381
lint
13821382
}

src/test/ui/async-await/track-caller/issue-104588-no-op-track-caller.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ warning: `#[track_caller]` on async functions is a no-op
22
--> $DIR/issue-104588-no-op-track-caller.rs:4:1
33
|
44
LL | #[track_caller]
5-
| ^^^^^^^^^^^^^^^ help: enable this feature: `#[closure_track_caller]`
5+
| ^^^^^^^^^^^^^^^ help: enable this unstable feature: `closure_track_caller`
66
LL | async fn foo() {}
77
| ----------------- this function will not propagate the caller location
88
|

src/test/ui/async-await/track-caller/panic-track-caller.nofeat.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ warning: `#[track_caller]` on async functions is a no-op
22
--> $DIR/panic-track-caller.rs:50:1
33
|
44
LL | #[track_caller]
5-
| ^^^^^^^^^^^^^^^ help: enable this feature: `#[closure_track_caller]`
5+
| ^^^^^^^^^^^^^^^ help: enable this unstable feature: `closure_track_caller`
66
LL | / async fn bar_track_caller() {
77
LL | | panic!()
88
LL | | }

0 commit comments

Comments
 (0)