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> {
5858 . next ( ) // these are in reverse order as they get inserted on close, but
5959 { // we want the last open/first close
6060 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+ ) ;
6265 err. span_label (
6366 * close_sp,
6467 "...as it matches this but it has different indentation" ,
Original file line number Diff line number Diff line change 1212
1313fn foo( ) { //~ NOTE un-closed delimiter
1414 match Some ( x) {
15- //~^ NOTE this might be the culprit ...
15+ //~^ NOTE this delimiter might not be properly closed ...
1616 Some ( y) => { panic ! ( ) ; }
1717 None => { panic ! ( ) ; }
1818}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: this file contains an un-closed delimiter
44LL | fn foo() { //~ NOTE un-closed delimiter
55 | - un-closed delimiter
66LL | match Some(x) {
7- | - this might be the culprit ...
7+ | - this delimiter might not be properly closed ...
88...
99LL | }
1010 | - ...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
44LL | trait Foo {
55 | - un-closed delimiter
66LL | fn bar() {
7- | - this might be the culprit ...
7+ | - this delimiter might not be properly closed ...
88...
99LL | }
1010 | - ...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() {
2424//~^ NOTE un-closed delimiter
2525 {
2626 {
27- //~^ NOTE this might be the culprit ...
27+ //~^ NOTE this delimiter might not be properly closed ...
2828 foo ( ) ;
2929 }
3030 //~^ 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() {
55 | - un-closed delimiter
66...
77LL | {
8- | - this might be the culprit ...
8+ | - this delimiter might not be properly closed ...
99...
1010LL | }
1111 | - ...as it matches this but it has different indentation
You can’t perform that action at this time.
0 commit comments