about summary refs log tree commit diff
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
commitbee9da14cd8ce7b3c735645bd260eb34c6b53dcb (patch)
tree9e06cf53efc2bf982cb458d94c29f405d1292665
parent5474f56bcf08584211ce7207568204ae7ac481db (diff)
parent347d999b97a6be3cc45d72697238cb7b63960b07 (diff)
downloadrust-bee9da14cd8ce7b3c735645bd260eb34c6b53dcb.tar.gz
rust-bee9da14cd8ce7b3c735645bd260eb34c6b53dcb.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.
-rw-r--r--tests/ui/crashes/ice-6251.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/crashes/ice-6251.stderr b/tests/ui/crashes/ice-6251.stderr
index 77a3c2ba4ad..8da2965c635 100644
--- a/tests/ui/crashes/ice-6251.stderr
+++ b/tests/ui/crashes/ice-6251.stderr
@@ -33,7 +33,7 @@ LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> {
    |                                            ^^^^^^^^^^^ expected `usize`, found closure
    |
    = note: expected type `usize`
-           found closure `[closure@$DIR/ice-6251.rs:4:44: 4:55]`
+           found closure `[closure@$DIR/ice-6251.rs:4:44: 4:53]`
 
 error: aborting due to 4 previous errors