Skip to content

Commit

Permalink
Update compiler/rustc_passes/src/check_attr.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
wesleywiser and JohnTitor committed Nov 16, 2021
1 parent 958de5a commit 83ce771
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_passes/src/check_attr.rs
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/lint/unused/unused-async.stderr
@@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit 83ce771

Please sign in to comment.