From 83ce771c0f3af07803423918a63ac4f958ca6ea9 Mon Sep 17 00:00:00 2001 From: Wesley Wiser Date: Tue, 16 Nov 2021 09:43:10 -0500 Subject: [PATCH] Update compiler/rustc_passes/src/check_attr.rs Co-authored-by: Yuki Okushi --- compiler/rustc_passes/src/check_attr.rs | 2 +- src/test/ui/lint/unused/unused-async.stderr | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index 633a90dd0ec7c..09d883aad05d4 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -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, diff --git a/src/test/ui/lint/unused/unused-async.stderr b/src/test/ui/lint/unused/unused-async.stderr index e470b6dac9473..6bbc9e2bf0088 100644 --- a/src/test/ui/lint/unused/unused-async.stderr +++ b/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] @@ -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]