diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-29 07:40:39 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-29 07:40:39 +0100 |
commit | 7a1cae59acf72f821343b2ba10ef69fb92a5b952 (patch) | |
tree | 26e606ccd132a24e9bc89cf174e4adadf60c5992 /crates/ra_syntax/tests/data/parser/inline/err/0006_unsafe_block_in_mod.txt | |
parent | b0d84cb8faefedde7ace4ff152a2a13408e79e5d (diff) | |
parent | 80a17251473bd6213a4c8a51ea7f732394d173c5 (diff) |
Merge #1337
1337: Move syntax errors our of syntax tree r=matklad a=matklad
I am not really sure if it's a good idea, but `SyntaxError` do not really belong to a `SyntaxTree`. So let's just store them on the side?
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline/err/0006_unsafe_block_in_mod.txt')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/err/0006_unsafe_block_in_mod.txt | 4 |
1 files changed, 2 insertions, 2 deletions
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 fefa35c20..f1d0dd5c6 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 | |||
@@ -11,11 +11,9 @@ SOURCE_FILE@[0; 33) | |||
11 | L_CURLY@[8; 9) "{" | 11 | L_CURLY@[8; 9) "{" |
12 | R_CURLY@[9; 10) "}" | 12 | R_CURLY@[9; 10) "}" |
13 | WHITESPACE@[10; 11) " " | 13 | WHITESPACE@[10; 11) " " |
14 | err: `expected an item` | ||
15 | ERROR@[11; 17) | 14 | ERROR@[11; 17) |
16 | UNSAFE_KW@[11; 17) "unsafe" | 15 | UNSAFE_KW@[11; 17) "unsafe" |
17 | WHITESPACE@[17; 18) " " | 16 | WHITESPACE@[17; 18) " " |
18 | err: `expected an item` | ||
19 | ERROR@[18; 21) | 17 | ERROR@[18; 21) |
20 | L_CURLY@[18; 19) "{" | 18 | L_CURLY@[18; 19) "{" |
21 | WHITESPACE@[19; 20) " " | 19 | WHITESPACE@[19; 20) " " |
@@ -33,3 +31,5 @@ SOURCE_FILE@[0; 33) | |||
33 | L_CURLY@[30; 31) "{" | 31 | L_CURLY@[30; 31) "{" |
34 | R_CURLY@[31; 32) "}" | 32 | R_CURLY@[31; 32) "}" |
35 | WHITESPACE@[32; 33) "\n" | 33 | WHITESPACE@[32; 33) "\n" |
34 | err: `expected an item` | ||
35 | err: `expected an item` | ||