aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2020-06-23 07:41:43 +0100
committerLaurenČ›iu Nicola <[email protected]>2020-06-23 14:51:07 +0100
commit76ddface089886c88b8b29e3893119f38ef26aab (patch)
tree9df8e5f774a385d64669f3883a9fef1b6aebb9a2 /crates/ra_syntax/test_data
parent98c3e4e887dcc5a8242c3e67c04a3cedbb1b9c58 (diff)
Fix panic in split and merge import assists
Diffstat (limited to 'crates/ra_syntax/test_data')
-rw-r--r--crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast5
-rw-r--r--crates/ra_syntax/test_data/parser/inline/err/0015_empty_segment.rast15
-rw-r--r--crates/ra_syntax/test_data/parser/inline/err/0015_empty_segment.rs1
3 files changed, 18 insertions, 3 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast b/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast
index 8c6b89dc2..b3bcf472a 100644
--- a/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast
+++ b/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast
@@ -9,8 +9,7 @@ [email protected]
9 [email protected] 9 [email protected]
10 [email protected] "foo" 10 [email protected] "foo"
11 [email protected] "::" 11 [email protected] "::"
12 [email protected] 12 [email protected]
13 [email protected] 13 [email protected] "92"
14 [email protected] "92"
15 [email protected] ";" 14 [email protected] ";"
16error 9..9: expected identifier 15error 9..9: expected identifier
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0015_empty_segment.rast b/crates/ra_syntax/test_data/parser/inline/err/0015_empty_segment.rast
new file mode 100644
index 000000000..da8505607
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/inline/err/0015_empty_segment.rast
@@ -0,0 +1,15 @@
1[email protected]
2 [email protected]
3 [email protected] "use"
4 [email protected] " "
5 [email protected]
6 [email protected]
7 [email protected]
8 [email protected]
9 [email protected] "crate"
10 [email protected] "::"
11 [email protected]
12 [email protected] ";"
13 [email protected] "\n"
14error 11..11: expected identifier
15error 12..12: expected SEMICOLON
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0015_empty_segment.rs b/crates/ra_syntax/test_data/parser/inline/err/0015_empty_segment.rs
new file mode 100644
index 000000000..7510664e1
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/inline/err/0015_empty_segment.rs
@@ -0,0 +1 @@
use crate::;