diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-12 13:53:11 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-12 13:53:11 +0100 |
commit | 441fbe3b0aff2e6b141912d18f22ee5866b38516 (patch) | |
tree | 5548b5bd522ea59a6c8d7ea801920365bbbaff91 /crates/ra_syntax/test_data/parser/err | |
parent | 42a16926293ff5cb4da7d7dddebc2f4aea445c94 (diff) | |
parent | f8bfd77e84e5b51dc28ff219e99fdfd6fd9f92c2 (diff) |
Merge #5721
5721: Cleanup parser modifiers tests
r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0043_default_const.rast | 40 | ||||
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0043_default_const.rs | 3 | ||||
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0043_weird_blocks.rast (renamed from crates/ra_syntax/test_data/parser/err/0163_weird_blocks.rast) | 0 | ||||
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0043_weird_blocks.rs (renamed from crates/ra_syntax/test_data/parser/err/0163_weird_blocks.rs) | 0 | ||||
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0045_item_modifiers.rast | 45 | ||||
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0045_item_modifiers.rs | 2 |
6 files changed, 47 insertions, 43 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0043_default_const.rast b/crates/ra_syntax/test_data/parser/err/0043_default_const.rast deleted file mode 100644 index 51ad2a846..000000000 --- a/crates/ra_syntax/test_data/parser/err/0043_default_const.rast +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | [email protected] | ||
2 | [email protected] | ||
3 | [email protected] "trait" | ||
4 | [email protected] " " | ||
5 | [email protected] | ||
6 | [email protected] "T" | ||
7 | [email protected] " " | ||
8 | [email protected] | ||
9 | [email protected] "{" | ||
10 | [email protected] "\n " | ||
11 | [email protected] | ||
12 | [email protected] | ||
13 | [email protected] | ||
14 | [email protected] | ||
15 | [email protected] "default" | ||
16 | [email protected] " " | ||
17 | [email protected] | ||
18 | [email protected] "const" | ||
19 | [email protected] " " | ||
20 | [email protected] | ||
21 | [email protected] "f" | ||
22 | [email protected] ":" | ||
23 | [email protected] " " | ||
24 | [email protected] | ||
25 | [email protected] | ||
26 | [email protected] | ||
27 | [email protected] | ||
28 | [email protected] "u8" | ||
29 | [email protected] " " | ||
30 | [email protected] "=" | ||
31 | [email protected] " " | ||
32 | [email protected] | ||
33 | [email protected] "0" | ||
34 | [email protected] ";" | ||
35 | [email protected] "\n" | ||
36 | [email protected] "}" | ||
37 | [email protected] "\n" | ||
38 | error 19..19: expected BANG | ||
39 | error 19..19: expected `{`, `[`, `(` | ||
40 | error 19..19: expected SEMICOLON | ||
diff --git a/crates/ra_syntax/test_data/parser/err/0043_default_const.rs b/crates/ra_syntax/test_data/parser/err/0043_default_const.rs deleted file mode 100644 index 80f15474a..000000000 --- a/crates/ra_syntax/test_data/parser/err/0043_default_const.rs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | trait T { | ||
2 | default const f: u8 = 0; | ||
3 | } | ||
diff --git a/crates/ra_syntax/test_data/parser/err/0163_weird_blocks.rast b/crates/ra_syntax/test_data/parser/err/0043_weird_blocks.rast index df29017e7..df29017e7 100644 --- a/crates/ra_syntax/test_data/parser/err/0163_weird_blocks.rast +++ b/crates/ra_syntax/test_data/parser/err/0043_weird_blocks.rast | |||
diff --git a/crates/ra_syntax/test_data/parser/err/0163_weird_blocks.rs b/crates/ra_syntax/test_data/parser/err/0043_weird_blocks.rs index 8fa324c1a..8fa324c1a 100644 --- a/crates/ra_syntax/test_data/parser/err/0163_weird_blocks.rs +++ b/crates/ra_syntax/test_data/parser/err/0043_weird_blocks.rs | |||
diff --git a/crates/ra_syntax/test_data/parser/err/0045_item_modifiers.rast b/crates/ra_syntax/test_data/parser/err/0045_item_modifiers.rast new file mode 100644 index 000000000..a6e6552a9 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0045_item_modifiers.rast | |||
@@ -0,0 +1,45 @@ | |||
1 | [email protected] | ||
2 | [email protected] | ||
3 | [email protected] "unsafe" | ||
4 | [email protected] " " | ||
5 | [email protected] | ||
6 | [email protected] "async" | ||
7 | [email protected] " " | ||
8 | [email protected] "fn" | ||
9 | [email protected] " " | ||
10 | [email protected] | ||
11 | [email protected] "foo" | ||
12 | [email protected] | ||
13 | [email protected] "(" | ||
14 | [email protected] ")" | ||
15 | [email protected] " " | ||
16 | [email protected] | ||
17 | [email protected] "{" | ||
18 | [email protected] "}" | ||
19 | [email protected] "\n" | ||
20 | [email protected] | ||
21 | [email protected] "unsafe" | ||
22 | [email protected] " " | ||
23 | [email protected] "const" | ||
24 | [email protected] " " | ||
25 | [email protected] | ||
26 | [email protected] "fn" | ||
27 | [email protected] " " | ||
28 | [email protected] | ||
29 | [email protected] | ||
30 | [email protected] | ||
31 | [email protected] | ||
32 | [email protected] "bar" | ||
33 | [email protected] | ||
34 | [email protected] "(" | ||
35 | [email protected] ")" | ||
36 | [email protected] " " | ||
37 | [email protected] | ||
38 | [email protected] "{" | ||
39 | [email protected] "}" | ||
40 | [email protected] "\n" | ||
41 | error 6..6: expected existential, fn, trait or impl | ||
42 | error 38..38: expected a name | ||
43 | error 40..40: expected COLON | ||
44 | error 46..46: expected SEMICOLON | ||
45 | error 47..47: expected an item | ||
diff --git a/crates/ra_syntax/test_data/parser/err/0045_item_modifiers.rs b/crates/ra_syntax/test_data/parser/err/0045_item_modifiers.rs new file mode 100644 index 000000000..731e58013 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0045_item_modifiers.rs | |||
@@ -0,0 +1,2 @@ | |||
1 | unsafe async fn foo() {} | ||
2 | unsafe const fn bar() {} | ||