Update compiler/rustc_passes/src/check_attr.rs

Co-authored-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Wesley Wiser 2021-11-16 09:43:10 -05:00 committed by Wesley Wiser
parent 958de5a938
commit 83ce771c0f
2 changed files with 3 additions and 3 deletions

View File

@ -1062,7 +1062,7 @@ impl CheckAttrVisitor<'tcx> {
lint.build(
"`must_use` attribute on `async` functions \
applies to the anonymous `Future` returned by the \
function, not the value within.",
function, not the value within",
)
.span_label(
*span,

View File

@ -1,4 +1,4 @@
warning: `must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within.
warning: `must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within
--> $DIR/unused-async.rs:5:1
|
LL | #[must_use]
@ -11,7 +11,7 @@ LL | | }
|
= note: `#[warn(unused_attributes)]` on by default
warning: `must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within.
warning: `must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within
--> $DIR/unused-async.rs:15:5
|
LL | #[must_use]