about summary refs log tree commit diff
path: root/tests/ui
diff options
context:
space:
mode:
authory21 <30553356+y21@users.noreply.github.com>2023-07-22 14:33:36 +0200
committery21 <30553356+y21@users.noreply.github.com>2023-07-22 14:33:36 +0200
commit482d5fafc9ffc7edf9236ea186883ee0346e7938 (patch)
treeb3929b8c8880d123cb539c6e6036b1f34fe1dd32 /tests/ui
parent37b83660bc2501f6e90cb48689304aed73229967 (diff)
downloadrust-482d5fafc9ffc7edf9236ea186883ee0346e7938.tar.gz
rust-482d5fafc9ffc7edf9236ea186883ee0346e7938.zip
replace HashMap with Vec, use span_lint_hir_and_then
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/unused_async.stderr36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/ui/unused_async.stderr b/tests/ui/unused_async.stderr
index 035dffa7f13..8d9b72c4886 100644
--- a/tests/ui/unused_async.stderr
+++ b/tests/ui/unused_async.stderr
@@ -1,11 +1,28 @@
 error: unused `async` for function with no await statements
+  --> $DIR/unused_async.rs:13:5
+   |
+LL | /     async fn async_block_await() {
+LL | |         async {
+LL | |             ready(()).await;
+LL | |         };
+LL | |     }
+   | |_____^
+   |
+   = help: consider removing the `async` from this function
+note: `await` used in an async block, which does not require the enclosing function to be `async`
+  --> $DIR/unused_async.rs:15:23
+   |
+LL |             ready(()).await;
+   |                       ^^^^^
+   = note: `-D clippy::unused-async` implied by `-D warnings`
+
+error: unused `async` for function with no await statements
   --> $DIR/unused_async.rs:45:5
    |
 LL |     async fn f3() {}
    |     ^^^^^^^^^^^^^^^^
    |
    = help: consider removing the `async` from this function
-   = note: `-D clippy::unused-async` implied by `-D warnings`
 
 error: unused `async` for function with no await statements
   --> $DIR/unused_async.rs:57:1
@@ -18,23 +35,6 @@ LL | | }
    = help: consider removing the `async` from this function
 
 error: unused `async` for function with no await statements
-  --> $DIR/unused_async.rs:13:5
-   |
-LL | /     async fn async_block_await() {
-LL | |         async {
-LL | |             ready(()).await;
-LL | |         };
-LL | |     }
-   | |_____^
-   |
-   = help: consider removing the `async` from this function
-note: `await` used in an async block, which does not require the enclosing function to be `async`
-  --> $DIR/unused_async.rs:15:23
-   |
-LL |             ready(()).await;
-   |                       ^^^^^
-
-error: unused `async` for function with no await statements
   --> $DIR/unused_async.rs:68:5
    |
 LL | /     async fn unused(&self) -> i32 {