Update compiler/rustc_passes/src/check_attr.rs
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
958de5a938
commit
83ce771c0f
@ -1062,7 +1062,7 @@ impl CheckAttrVisitor<'tcx> {
|
|||||||
lint.build(
|
lint.build(
|
||||||
"`must_use` attribute on `async` functions \
|
"`must_use` attribute on `async` functions \
|
||||||
applies to the anonymous `Future` returned by the \
|
applies to the anonymous `Future` returned by the \
|
||||||
function, not the value within.",
|
function, not the value within",
|
||||||
)
|
)
|
||||||
.span_label(
|
.span_label(
|
||||||
*span,
|
*span,
|
||||||
|
@ -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
|
--> $DIR/unused-async.rs:5:1
|
||||||
|
|
|
|
||||||
LL | #[must_use]
|
LL | #[must_use]
|
||||||
@ -11,7 +11,7 @@ LL | | }
|
|||||||
|
|
|
|
||||||
= note: `#[warn(unused_attributes)]` on by default
|
= 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
|
--> $DIR/unused-async.rs:15:5
|
||||||
|
|
|
|
||||||
LL | #[must_use]
|
LL | #[must_use]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user