Skip to content

Commit 83ce771

Browse files
Update compiler/rustc_passes/src/check_attr.rs
Co-authored-by: Yuki Okushi <[email protected]>
1 parent 958de5a commit 83ce771

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_passes/src/check_attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ impl CheckAttrVisitor<'tcx> {
10621062
lint.build(
10631063
"`must_use` attribute on `async` functions \
10641064
applies to the anonymous `Future` returned by the \
1065-
function, not the value within.",
1065+
function, not the value within",
10661066
)
10671067
.span_label(
10681068
*span,

src/test/ui/lint/unused/unused-async.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
warning: `must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within.
1+
warning: `must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within
22
--> $DIR/unused-async.rs:5:1
33
|
44
LL | #[must_use]
@@ -11,7 +11,7 @@ LL | | }
1111
|
1212
= note: `#[warn(unused_attributes)]` on by default
1313

14-
warning: `must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within.
14+
warning: `must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within
1515
--> $DIR/unused-async.rs:15:5
1616
|
1717
LL | #[must_use]

0 commit comments

Comments
 (0)