about summary refs log tree commit diff
path: root/src/test/ui/pattern
diff options
context:
space:
mode:
authorArpad Borsos <swatinem@swatinem.de>2022-11-25 09:53:58 +0100
committerArpad Borsos <swatinem@swatinem.de>2022-11-26 20:42:50 +0100
commitc96d888bdfb23122c7823445f471b3d284dd07e6 (patch)
treeb40b5621facb53829e0f26a061b966b2e3f5b318 /src/test/ui/pattern
parentaf63e3b39f3990418ad8e0a1b1fa8a722a7c50b0 (diff)
downloadrust-c96d888bdfb23122c7823445f471b3d284dd07e6.tar.gz
rust-c96d888bdfb23122c7823445f471b3d284dd07e6.zip
Pretty-print generators with their `generator_kind`
After removing `GenFuture`, I special-cased async generators to pretty-print as `impl Future<Output = X>` mainly to avoid too much diagnostics changes originally.

This now reverses that change so that async fn/blocks are pretty-printed as `[$movability `async` $something@$source-position]` in various diagnostics, and updates the tests that this touches.
Diffstat (limited to 'src/test/ui/pattern')
-rw-r--r--src/test/ui/pattern/non-structural-match-types.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/pattern/non-structural-match-types.stderr b/src/test/ui/pattern/non-structural-match-types.stderr
index 45e16264973..dea7c4695cc 100644
--- a/src/test/ui/pattern/non-structural-match-types.stderr
+++ b/src/test/ui/pattern/non-structural-match-types.stderr
@@ -4,7 +4,7 @@ error: `[closure@$DIR/non-structural-match-types.rs:9:17: 9:19]` cannot be used
 LL |         const { || {} } => {},
    |         ^^^^^^^^^^^^^^^
 
-error: `impl Future<Output = ()>` cannot be used in patterns
+error: `[async block@$DIR/non-structural-match-types.rs:12:17: 12:25]` cannot be used in patterns
   --> $DIR/non-structural-match-types.rs:12:9
    |
 LL |         const { async {} } => {},