diff options
author | Aleksey Kladov <[email protected]> | 2018-07-31 13:08:04 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-31 13:08:04 +0100 |
commit | 346f6e4f7d364b009d0feb66162314abfd06c81b (patch) | |
tree | 08247447f613e855ed2dc68dd9102528b252cb4d /tests | |
parent | 9dcb79a60225cd127f1bd9f8653ff5da525d9af0 (diff) |
impl type&trait
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/parser/inline/0008_unsafe_impl.txt | 10 | ||||
-rw-r--r-- | tests/data/parser/inline/0010_unsafe_default_impl.txt | 10 | ||||
-rw-r--r-- | tests/data/parser/inline/0046_default_impl.txt | 10 | ||||
-rw-r--r-- | tests/data/parser/inline/0047_impl_item.txt | 10 | ||||
-rw-r--r-- | tests/data/parser/inline/0048_impl_item_neg.rs | 1 | ||||
-rw-r--r-- | tests/data/parser/inline/0048_impl_item_neg.txt | 22 |
6 files changed, 51 insertions, 12 deletions
diff --git a/tests/data/parser/inline/0008_unsafe_impl.txt b/tests/data/parser/inline/0008_unsafe_impl.txt index a88a447cb..d21782b45 100644 --- a/tests/data/parser/inline/0008_unsafe_impl.txt +++ b/tests/data/parser/inline/0008_unsafe_impl.txt | |||
@@ -3,9 +3,13 @@ FILE@[0; 19) | |||
3 | UNSAFE_KW@[0; 6) | 3 | UNSAFE_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
5 | IMPL_KW@[7; 11) | 5 | IMPL_KW@[7; 11) |
6 | WHITESPACE@[11; 12) | 6 | PATH_TYPE@[11; 16) |
7 | IDENT@[12; 15) "Foo" | 7 | PATH@[11; 16) |
8 | WHITESPACE@[15; 16) | 8 | PATH_SEGMENT@[11; 16) |
9 | NAME_REF@[11; 16) | ||
10 | WHITESPACE@[11; 12) | ||
11 | IDENT@[12; 15) "Foo" | ||
12 | WHITESPACE@[15; 16) | ||
9 | L_CURLY@[16; 17) | 13 | L_CURLY@[16; 17) |
10 | R_CURLY@[17; 18) | 14 | R_CURLY@[17; 18) |
11 | WHITESPACE@[18; 19) | 15 | WHITESPACE@[18; 19) |
diff --git a/tests/data/parser/inline/0010_unsafe_default_impl.txt b/tests/data/parser/inline/0010_unsafe_default_impl.txt index 7450381cb..a89008c8a 100644 --- a/tests/data/parser/inline/0010_unsafe_default_impl.txt +++ b/tests/data/parser/inline/0010_unsafe_default_impl.txt | |||
@@ -5,9 +5,13 @@ FILE@[0; 27) | |||
5 | DEFAULT_KW@[7; 14) | 5 | DEFAULT_KW@[7; 14) |
6 | WHITESPACE@[14; 15) | 6 | WHITESPACE@[14; 15) |
7 | IMPL_KW@[15; 19) | 7 | IMPL_KW@[15; 19) |
8 | WHITESPACE@[19; 20) | 8 | PATH_TYPE@[19; 24) |
9 | IDENT@[20; 23) "Foo" | 9 | PATH@[19; 24) |
10 | WHITESPACE@[23; 24) | 10 | PATH_SEGMENT@[19; 24) |
11 | NAME_REF@[19; 24) | ||
12 | WHITESPACE@[19; 20) | ||
13 | IDENT@[20; 23) "Foo" | ||
14 | WHITESPACE@[23; 24) | ||
11 | L_CURLY@[24; 25) | 15 | L_CURLY@[24; 25) |
12 | R_CURLY@[25; 26) | 16 | R_CURLY@[25; 26) |
13 | WHITESPACE@[26; 27) | 17 | WHITESPACE@[26; 27) |
diff --git a/tests/data/parser/inline/0046_default_impl.txt b/tests/data/parser/inline/0046_default_impl.txt index bc17bcaff..3718aea3b 100644 --- a/tests/data/parser/inline/0046_default_impl.txt +++ b/tests/data/parser/inline/0046_default_impl.txt | |||
@@ -3,9 +3,13 @@ FILE@[0; 20) | |||
3 | DEFAULT_KW@[0; 7) | 3 | DEFAULT_KW@[0; 7) |
4 | WHITESPACE@[7; 8) | 4 | WHITESPACE@[7; 8) |
5 | IMPL_KW@[8; 12) | 5 | IMPL_KW@[8; 12) |
6 | WHITESPACE@[12; 13) | 6 | PATH_TYPE@[12; 17) |
7 | IDENT@[13; 16) "Foo" | 7 | PATH@[12; 17) |
8 | WHITESPACE@[16; 17) | 8 | PATH_SEGMENT@[12; 17) |
9 | NAME_REF@[12; 17) | ||
10 | WHITESPACE@[12; 13) | ||
11 | IDENT@[13; 16) "Foo" | ||
12 | WHITESPACE@[16; 17) | ||
9 | L_CURLY@[17; 18) | 13 | L_CURLY@[17; 18) |
10 | R_CURLY@[18; 19) | 14 | R_CURLY@[18; 19) |
11 | WHITESPACE@[19; 20) | 15 | WHITESPACE@[19; 20) |
diff --git a/tests/data/parser/inline/0047_impl_item.txt b/tests/data/parser/inline/0047_impl_item.txt index a7f3155e1..90f11e8a2 100644 --- a/tests/data/parser/inline/0047_impl_item.txt +++ b/tests/data/parser/inline/0047_impl_item.txt | |||
@@ -1,9 +1,13 @@ | |||
1 | FILE@[0; 12) | 1 | FILE@[0; 12) |
2 | IMPL_ITEM@[0; 12) | 2 | IMPL_ITEM@[0; 12) |
3 | IMPL_KW@[0; 4) | 3 | IMPL_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | PATH_TYPE@[4; 9) |
5 | IDENT@[5; 8) "Foo" | 5 | PATH@[4; 9) |
6 | WHITESPACE@[8; 9) | 6 | PATH_SEGMENT@[4; 9) |
7 | NAME_REF@[4; 9) | ||
8 | WHITESPACE@[4; 5) | ||
9 | IDENT@[5; 8) "Foo" | ||
10 | WHITESPACE@[8; 9) | ||
7 | L_CURLY@[9; 10) | 11 | L_CURLY@[9; 10) |
8 | R_CURLY@[10; 11) | 12 | R_CURLY@[10; 11) |
9 | WHITESPACE@[11; 12) | 13 | WHITESPACE@[11; 12) |
diff --git a/tests/data/parser/inline/0048_impl_item_neg.rs b/tests/data/parser/inline/0048_impl_item_neg.rs new file mode 100644 index 000000000..b7527c870 --- /dev/null +++ b/tests/data/parser/inline/0048_impl_item_neg.rs | |||
@@ -0,0 +1 @@ | |||
impl !Send for X {} | |||
diff --git a/tests/data/parser/inline/0048_impl_item_neg.txt b/tests/data/parser/inline/0048_impl_item_neg.txt new file mode 100644 index 000000000..1b7581434 --- /dev/null +++ b/tests/data/parser/inline/0048_impl_item_neg.txt | |||
@@ -0,0 +1,22 @@ | |||
1 | FILE@[0; 20) | ||
2 | IMPL_ITEM@[0; 20) | ||
3 | IMPL_KW@[0; 4) | ||
4 | WHITESPACE@[4; 5) | ||
5 | EXCL@[5; 6) | ||
6 | PATH_TYPE@[6; 11) | ||
7 | PATH@[6; 11) | ||
8 | PATH_SEGMENT@[6; 11) | ||
9 | NAME_REF@[6; 11) | ||
10 | IDENT@[6; 10) "Send" | ||
11 | WHITESPACE@[10; 11) | ||
12 | FOR_KW@[11; 14) | ||
13 | PATH_TYPE@[14; 17) | ||
14 | PATH@[14; 17) | ||
15 | PATH_SEGMENT@[14; 17) | ||
16 | NAME_REF@[14; 17) | ||
17 | WHITESPACE@[14; 15) | ||
18 | IDENT@[15; 16) "X" | ||
19 | WHITESPACE@[16; 17) | ||
20 | L_CURLY@[17; 18) | ||
21 | R_CURLY@[18; 19) | ||
22 | WHITESPACE@[19; 20) | ||