File tree Expand file tree Collapse file tree 6 files changed +9
-6
lines changed Expand file tree Collapse file tree 6 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,10 @@ impl<'a> StringReader<'a> {
58
58
. next ( ) // these are in reverse order as they get inserted on close, but
59
59
{ // we want the last open/first close
60
60
if d == delim {
61
- err. span_label ( * open_sp, "this might be the culprit..." ) ;
61
+ err. span_label (
62
+ * open_sp,
63
+ "this delimiter might not be properly closed..." ,
64
+ ) ;
62
65
err. span_label (
63
66
* close_sp,
64
67
"...as it matches this but it has different indentation" ,
Original file line number Diff line number Diff line change 12
12
13
13
fn foo( ) { //~ NOTE un-closed delimiter
14
14
match Some ( x) {
15
- //~^ NOTE this might be the culprit ...
15
+ //~^ NOTE this delimiter might not be properly closed ...
16
16
Some ( y) => { panic ! ( ) ; }
17
17
None => { panic ! ( ) ; }
18
18
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: this file contains an un-closed delimiter
4
4
LL | fn foo() { //~ NOTE un-closed delimiter
5
5
| - un-closed delimiter
6
6
LL | match Some(x) {
7
- | - this might be the culprit ...
7
+ | - this delimiter might not be properly closed ...
8
8
...
9
9
LL | }
10
10
| - ...as it matches this but it has different indentation
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: this file contains an un-closed delimiter
4
4
LL | trait Foo {
5
5
| - un-closed delimiter
6
6
LL | fn bar() {
7
- | - this might be the culprit ...
7
+ | - this delimiter might not be properly closed ...
8
8
...
9
9
LL | }
10
10
| - ...as it matches this but it has different indentation
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ fn main() {
24
24
//~^ NOTE un-closed delimiter
25
25
{
26
26
{
27
- //~^ NOTE this might be the culprit ...
27
+ //~^ NOTE this delimiter might not be properly closed ...
28
28
foo ( ) ;
29
29
}
30
30
//~^ NOTE ...as it matches this but it has different indentation
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ LL | fn main() {
5
5
| - un-closed delimiter
6
6
...
7
7
LL | {
8
- | - this might be the culprit ...
8
+ | - this delimiter might not be properly closed ...
9
9
...
10
10
LL | }
11
11
| - ...as it matches this but it has different indentation
You can’t perform that action at this time.
0 commit comments