Skip to content

Commit

Permalink
review comment: change wording of suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Dec 13, 2021
1 parent 64dea33 commit 1a7f2d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -896,7 +896,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
// it is from the local crate.
err.span_suggestion_verbose(
expr.span.shrink_to_hi().with_hi(span.hi()),
"do not `.await` the expression",
"remove the `.await`",
String::new(),
Applicability::MachineApplicable,
);
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/async-await/issue-70594.stderr
Expand Up @@ -27,7 +27,7 @@ LL | [1; ().await];
= help: the trait `Future` is not implemented for `()`
= note: () must be a future or must implement `IntoFuture` to be awaited
= note: required because of the requirements on the impl of `IntoFuture` for `()`
help: do not `.await` the expression
help: remove the `.await`
|
LL - [1; ().await];
LL + [1; ()];
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/async-await/issues/issue-62009-1.stderr
Expand Up @@ -33,7 +33,7 @@ LL | (|_| 2333).await;
= help: the trait `Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:12:5: 12:15]`
= note: [closure@$DIR/issue-62009-1.rs:12:5: 12:15] must be a future or must implement `IntoFuture` to be awaited
= note: required because of the requirements on the impl of `IntoFuture` for `[closure@$DIR/issue-62009-1.rs:12:5: 12:15]`
help: do not `.await` the expression
help: remove the `.await`
|
LL - (|_| 2333).await;
LL + (|_| 2333);
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/async-await/unnecessary-await.stderr
Expand Up @@ -9,7 +9,7 @@ LL | boo().await;
= help: the trait `Future` is not implemented for `()`
= note: () must be a future or must implement `IntoFuture` to be awaited
= note: required because of the requirements on the impl of `IntoFuture` for `()`
help: do not `.await` the expression
help: remove the `.await`
|
LL - boo().await;
LL + boo();
Expand Down

0 comments on commit 1a7f2d5

Please sign in to comment.