Tweak multispan rendering
Consider comments and bare delimiters the same as an "empty line" for purposes of hiding rendered code output of long multispans. This results in more aggressive shortening of rendered output without losing too much context, specially in `*.stderr` tests that have "hidden" comments.
This commit is contained in:
parent
21fe748be1
commit
65a54a7f27
111 changed files with 206 additions and 653 deletions
|
@ -2,9 +2,7 @@ error[E0572]: return statement outside of function body
|
|||
--> $DIR/return-match-array-const.rs:5:10
|
||||
|
|
||||
LL | / fn main() {
|
||||
LL | |
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | [(); return match 0 { n => n }];
|
||||
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...
|
||||
... |
|
||||
|
@ -16,9 +14,6 @@ error[E0572]: return statement outside of function body
|
|||
--> $DIR/return-match-array-const.rs:9:10
|
||||
|
|
||||
LL | / fn main() {
|
||||
LL | |
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | [(); return match 0 { 0 => 0 }];
|
||||
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...
|
||||
|
@ -31,9 +26,6 @@ error[E0572]: return statement outside of function body
|
|||
--> $DIR/return-match-array-const.rs:13:10
|
||||
|
|
||||
LL | / fn main() {
|
||||
LL | |
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | [(); return match () { 'a' => 0, _ => 0 }];
|
||||
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue