about summary refs log tree commit diff
path: root/src/test/ui/pattern
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-08 03:05:15 +0000
committerbors <bors@rust-lang.org>2022-07-08 03:05:15 +0000
commiteba361ae36be41e42fb8fdf138455307e0ad407c (patch)
treefefca1477c4127bf5256edd6bc8d2a6e6fd373df /src/test/ui/pattern
parent9b21131278cc38ab8d79444de340015faadd061c (diff)
parentd43fa9343b18063013982ddf02d09fd1eb077c25 (diff)
downloadrust-eba361ae36be41e42fb8fdf138455307e0ad407c.tar.gz
rust-eba361ae36be41e42fb8fdf138455307e0ad407c.zip
Auto merge of #98482 - cjgillot:short-struct-span-closure, r=estebank
Shorten def_span of closures to just their header

Continuation of https://github.com/rust-lang/rust/pull/93967.
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 e9b56cdc05d..45e16264973 100644
--- a/src/test/ui/pattern/non-structural-match-types.stderr
+++ b/src/test/ui/pattern/non-structural-match-types.stderr
@@ -1,4 +1,4 @@
-error: `[closure@$DIR/non-structural-match-types.rs:9:17: 9:22]` cannot be used in patterns
+error: `[closure@$DIR/non-structural-match-types.rs:9:17: 9:19]` cannot be used in patterns
   --> $DIR/non-structural-match-types.rs:9:9
    |
 LL |         const { || {} } => {},