diff options
author | Aleksey Kladov <[email protected]> | 2019-05-29 08:12:08 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-05-29 08:31:07 +0100 |
commit | 2e722ec54b3503e2b2f411959fffb63ef9f1a334 (patch) | |
tree | c72a31f26edea8fc44b5c717a4701c2e7f9bae41 /crates/ra_syntax/tests/data/parser/inline | |
parent | 7a1cae59acf72f821343b2ba10ef69fb92a5b952 (diff) |
show error offsets in tests
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline')
11 files changed, 30 insertions, 30 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0001_array_type_missing_semi.txt b/crates/ra_syntax/tests/data/parser/inline/err/0001_array_type_missing_semi.txt index eb6d98fcd..3f0f1b480 100644 --- a/crates/ra_syntax/tests/data/parser/inline/err/0001_array_type_missing_semi.txt +++ b/crates/ra_syntax/tests/data/parser/inline/err/0001_array_type_missing_semi.txt | |||
@@ -20,8 +20,8 @@ SOURCE_FILE@[0; 18) | |||
20 | ERROR@[16; 17) | 20 | ERROR@[16; 17) |
21 | SEMI@[16; 17) ";" | 21 | SEMI@[16; 17) ";" |
22 | WHITESPACE@[17; 18) "\n" | 22 | WHITESPACE@[17; 18) "\n" |
23 | err: `expected `;` or `]`` | 23 | error 12: expected `;` or `]` |
24 | err: `expected SEMI` | 24 | error 12: expected SEMI |
25 | err: `expected an item` | 25 | error 13: expected an item |
26 | err: `expected an item` | 26 | error 15: expected an item |
27 | err: `expected an item` | 27 | error 16: expected an item |
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0002_misplaced_label_err.txt b/crates/ra_syntax/tests/data/parser/inline/err/0002_misplaced_label_err.txt index b1d104bd4..7abc49d5e 100644 --- a/crates/ra_syntax/tests/data/parser/inline/err/0002_misplaced_label_err.txt +++ b/crates/ra_syntax/tests/data/parser/inline/err/0002_misplaced_label_err.txt | |||
@@ -22,7 +22,7 @@ SOURCE_FILE@[0; 30) | |||
22 | WHITESPACE@[27; 28) "\n" | 22 | WHITESPACE@[27; 28) "\n" |
23 | R_CURLY@[28; 29) "}" | 23 | R_CURLY@[28; 29) "}" |
24 | WHITESPACE@[29; 30) "\n" | 24 | WHITESPACE@[29; 30) "\n" |
25 | err: `expected a loop` | 25 | error 22: expected a loop |
26 | err: `expected SEMI` | 26 | error 22: expected SEMI |
27 | err: `expected type` | 27 | error 27: expected type |
28 | err: `expected `{`` | 28 | error 27: expected `{` |
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0003_pointer_type_no_mutability.txt b/crates/ra_syntax/tests/data/parser/inline/err/0003_pointer_type_no_mutability.txt index b470d9ad1..b97e339bb 100644 --- a/crates/ra_syntax/tests/data/parser/inline/err/0003_pointer_type_no_mutability.txt +++ b/crates/ra_syntax/tests/data/parser/inline/err/0003_pointer_type_no_mutability.txt | |||
@@ -14,4 +14,4 @@ SOURCE_FILE@[0; 14) | |||
14 | R_PAREN@[11; 12) ")" | 14 | R_PAREN@[11; 12) ")" |
15 | SEMI@[12; 13) ";" | 15 | SEMI@[12; 13) ";" |
16 | WHITESPACE@[13; 14) "\n" | 16 | WHITESPACE@[13; 14) "\n" |
17 | err: `expected mut or const in raw pointer type (use `*mut T` or `*const T` as appropriate)` | 17 | error 10: expected mut or const in raw pointer type (use `*mut T` or `*const T` as appropriate) |
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0004_impl_type.txt b/crates/ra_syntax/tests/data/parser/inline/err/0004_impl_type.txt index ef4e0d5dd..43321b1ed 100644 --- a/crates/ra_syntax/tests/data/parser/inline/err/0004_impl_type.txt +++ b/crates/ra_syntax/tests/data/parser/inline/err/0004_impl_type.txt | |||
@@ -73,7 +73,7 @@ SOURCE_FILE@[0; 87) | |||
73 | L_CURLY@[84; 85) "{" | 73 | L_CURLY@[84; 85) "{" |
74 | R_CURLY@[85; 86) "}" | 74 | R_CURLY@[85; 86) "}" |
75 | WHITESPACE@[86; 87) "\n" | 75 | WHITESPACE@[86; 87) "\n" |
76 | err: `expected trait or type` | 76 | error 38: expected trait or type |
77 | err: `expected `{`` | 77 | error 38: expected `{` |
78 | err: `expected trait or type` | 78 | error 70: expected trait or type |
79 | err: `expected `{`` | 79 | error 70: expected `{` |
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0005_fn_pointer_type_missing_fn.txt b/crates/ra_syntax/tests/data/parser/inline/err/0005_fn_pointer_type_missing_fn.txt index 41e623b41..451f29d39 100644 --- a/crates/ra_syntax/tests/data/parser/inline/err/0005_fn_pointer_type_missing_fn.txt +++ b/crates/ra_syntax/tests/data/parser/inline/err/0005_fn_pointer_type_missing_fn.txt | |||
@@ -16,8 +16,8 @@ SOURCE_FILE@[0; 20) | |||
16 | ERROR@[18; 19) | 16 | ERROR@[18; 19) |
17 | SEMI@[18; 19) ";" | 17 | SEMI@[18; 19) ";" |
18 | WHITESPACE@[19; 20) "\n" | 18 | WHITESPACE@[19; 20) "\n" |
19 | err: `expected `fn`` | 19 | error 15: expected `fn` |
20 | err: `expected SEMI` | 20 | error 15: expected SEMI |
21 | err: `expected an item` | 21 | error 16: expected an item |
22 | err: `expected an item` | 22 | error 17: expected an item |
23 | err: `expected an item` | 23 | error 18: expected an item |
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0006_unsafe_block_in_mod.txt b/crates/ra_syntax/tests/data/parser/inline/err/0006_unsafe_block_in_mod.txt index f1d0dd5c6..a1871ec08 100644 --- a/crates/ra_syntax/tests/data/parser/inline/err/0006_unsafe_block_in_mod.txt +++ b/crates/ra_syntax/tests/data/parser/inline/err/0006_unsafe_block_in_mod.txt | |||
@@ -31,5 +31,5 @@ SOURCE_FILE@[0; 33) | |||
31 | L_CURLY@[30; 31) "{" | 31 | L_CURLY@[30; 31) "{" |
32 | R_CURLY@[31; 32) "}" | 32 | R_CURLY@[31; 32) "}" |
33 | WHITESPACE@[32; 33) "\n" | 33 | WHITESPACE@[32; 33) "\n" |
34 | err: `expected an item` | 34 | error 11: expected an item |
35 | err: `expected an item` | 35 | error 18: expected an item |
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0007_async_without_semicolon.txt b/crates/ra_syntax/tests/data/parser/inline/err/0007_async_without_semicolon.txt index 1a8fa029c..f70adc25d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/err/0007_async_without_semicolon.txt +++ b/crates/ra_syntax/tests/data/parser/inline/err/0007_async_without_semicolon.txt | |||
@@ -28,4 +28,4 @@ SOURCE_FILE@[0; 30) | |||
28 | WHITESPACE@[27; 28) " " | 28 | WHITESPACE@[27; 28) " " |
29 | R_CURLY@[28; 29) "}" | 29 | R_CURLY@[28; 29) "}" |
30 | WHITESPACE@[29; 30) "\n" | 30 | WHITESPACE@[29; 30) "\n" |
31 | err: `expected SEMI` | 31 | error 27: expected SEMI |
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.txt b/crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.txt index cadbbc078..1dbfca698 100644 --- a/crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.txt | |||
@@ -22,4 +22,4 @@ SOURCE_FILE@[0; 21) | |||
22 | WHITESPACE@[18; 19) " " | 22 | WHITESPACE@[18; 19) " " |
23 | R_CURLY@[19; 20) "}" | 23 | R_CURLY@[19; 20) "}" |
24 | WHITESPACE@[20; 21) "\n" | 24 | WHITESPACE@[20; 21) "\n" |
25 | err: `expected an item` | 25 | error 14: expected an item |
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0009_attr_on_expr_not_allowed.txt b/crates/ra_syntax/tests/data/parser/inline/err/0009_attr_on_expr_not_allowed.txt index 8e7d7d241..338776a72 100644 --- a/crates/ra_syntax/tests/data/parser/inline/err/0009_attr_on_expr_not_allowed.txt +++ b/crates/ra_syntax/tests/data/parser/inline/err/0009_attr_on_expr_not_allowed.txt | |||
@@ -51,5 +51,5 @@ SOURCE_FILE@[0; 48) | |||
51 | WHITESPACE@[45; 46) "\n" | 51 | WHITESPACE@[45; 46) "\n" |
52 | R_CURLY@[46; 47) "}" | 52 | R_CURLY@[46; 47) "}" |
53 | WHITESPACE@[47; 48) "\n" | 53 | WHITESPACE@[47; 48) "\n" |
54 | err: `attributes are not allowed on BIN_EXPR` | 54 | error 24: attributes are not allowed on BIN_EXPR |
55 | err: `attributes are not allowed on IF_EXPR` | 55 | error 44: attributes are not allowed on IF_EXPR |
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0010_bad_tuple_index_expr.txt b/crates/ra_syntax/tests/data/parser/inline/err/0010_bad_tuple_index_expr.txt index 36717439e..a21b29c80 100644 --- a/crates/ra_syntax/tests/data/parser/inline/err/0010_bad_tuple_index_expr.txt +++ b/crates/ra_syntax/tests/data/parser/inline/err/0010_bad_tuple_index_expr.txt | |||
@@ -46,6 +46,6 @@ SOURCE_FILE@[0; 47) | |||
46 | WHITESPACE@[44; 45) "\n" | 46 | WHITESPACE@[44; 45) "\n" |
47 | R_CURLY@[45; 46) "}" | 47 | R_CURLY@[45; 46) "}" |
48 | WHITESPACE@[46; 47) "\n" | 48 | WHITESPACE@[46; 47) "\n" |
49 | err: `Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix` | 49 | error [17; 19): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix |
50 | err: `Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix` | 50 | error [27; 31): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix |
51 | err: `Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix` | 51 | error [39; 43): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix |
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0010_wrong_order_fns.txt b/crates/ra_syntax/tests/data/parser/inline/err/0010_wrong_order_fns.txt index 5f39e7238..9eb4c9b36 100644 --- a/crates/ra_syntax/tests/data/parser/inline/err/0010_wrong_order_fns.txt +++ b/crates/ra_syntax/tests/data/parser/inline/err/0010_wrong_order_fns.txt | |||
@@ -35,5 +35,5 @@ SOURCE_FILE@[0; 50) | |||
35 | L_CURLY@[47; 48) "{" | 35 | L_CURLY@[47; 48) "{" |
36 | R_CURLY@[48; 49) "}" | 36 | R_CURLY@[48; 49) "}" |
37 | WHITESPACE@[49; 50) "\n" | 37 | WHITESPACE@[49; 50) "\n" |
38 | err: `expected fn, trait or impl` | 38 | error 5: expected fn, trait or impl |
39 | err: `expected fn, trait or impl` | 39 | error 31: expected fn, trait or impl |