diff options
Diffstat (limited to 'tests/data/parser/inline')
-rw-r--r-- | tests/data/parser/inline/0001_const_unsafe_fn.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0002_const_fn.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0004_extern_fn.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0005_extern_crate.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0006_extern_struct.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0007_unsafe_trait.txt | 7 | ||||
-rw-r--r-- | tests/data/parser/inline/0009_unsafe_auto_trait.txt | 7 | ||||
-rw-r--r-- | tests/data/parser/inline/0011_unsafe_fn.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0012_unsafe_extern_fn.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0013_unsafe_block_in_mod.txt | 10 | ||||
-rw-r--r-- | tests/data/parser/inline/0014_type_item_type_params.txt | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0015_type_item.txt | 7 | ||||
-rw-r--r-- | tests/data/parser/inline/0016_type_item_where_clause.txt | 7 |
13 files changed, 46 insertions, 32 deletions
diff --git a/tests/data/parser/inline/0001_const_unsafe_fn.txt b/tests/data/parser/inline/0001_const_unsafe_fn.txt index 1f0865cb0..59bf89ddb 100644 --- a/tests/data/parser/inline/0001_const_unsafe_fn.txt +++ b/tests/data/parser/inline/0001_const_unsafe_fn.txt | |||
@@ -5,8 +5,9 @@ FILE@[0; 25) | |||
5 | UNSAFE_KW@[6; 12) | 5 | UNSAFE_KW@[6; 12) |
6 | WHITESPACE@[12; 13) | 6 | WHITESPACE@[12; 13) |
7 | FN_KW@[13; 15) | 7 | FN_KW@[13; 15) |
8 | WHITESPACE@[15; 16) | 8 | NAME@[15; 19) |
9 | IDENT@[16; 19) "foo" | 9 | WHITESPACE@[15; 16) |
10 | IDENT@[16; 19) "foo" | ||
10 | L_PAREN@[19; 20) | 11 | L_PAREN@[19; 20) |
11 | R_PAREN@[20; 21) | 12 | R_PAREN@[20; 21) |
12 | WHITESPACE@[21; 22) | 13 | WHITESPACE@[21; 22) |
diff --git a/tests/data/parser/inline/0002_const_fn.txt b/tests/data/parser/inline/0002_const_fn.txt index 2d360d78b..2e9d18f7f 100644 --- a/tests/data/parser/inline/0002_const_fn.txt +++ b/tests/data/parser/inline/0002_const_fn.txt | |||
@@ -3,8 +3,9 @@ FILE@[0; 18) | |||
3 | CONST_KW@[0; 5) | 3 | CONST_KW@[0; 5) |
4 | WHITESPACE@[5; 6) | 4 | WHITESPACE@[5; 6) |
5 | FN_KW@[6; 8) | 5 | FN_KW@[6; 8) |
6 | WHITESPACE@[8; 9) | 6 | NAME@[8; 12) |
7 | IDENT@[9; 12) "foo" | 7 | WHITESPACE@[8; 9) |
8 | IDENT@[9; 12) "foo" | ||
8 | L_PAREN@[12; 13) | 9 | L_PAREN@[12; 13) |
9 | R_PAREN@[13; 14) | 10 | R_PAREN@[13; 14) |
10 | WHITESPACE@[14; 15) | 11 | WHITESPACE@[14; 15) |
diff --git a/tests/data/parser/inline/0004_extern_fn.txt b/tests/data/parser/inline/0004_extern_fn.txt index 096c3bf4f..70a909ccf 100644 --- a/tests/data/parser/inline/0004_extern_fn.txt +++ b/tests/data/parser/inline/0004_extern_fn.txt | |||
@@ -4,8 +4,9 @@ FILE@[0; 19) | |||
4 | EXTERN_KW@[0; 6) | 4 | EXTERN_KW@[0; 6) |
5 | WHITESPACE@[6; 7) | 5 | WHITESPACE@[6; 7) |
6 | FN_KW@[7; 9) | 6 | FN_KW@[7; 9) |
7 | WHITESPACE@[9; 10) | 7 | NAME@[9; 13) |
8 | IDENT@[10; 13) "foo" | 8 | WHITESPACE@[9; 10) |
9 | IDENT@[10; 13) "foo" | ||
9 | L_PAREN@[13; 14) | 10 | L_PAREN@[13; 14) |
10 | R_PAREN@[14; 15) | 11 | R_PAREN@[14; 15) |
11 | WHITESPACE@[15; 16) | 12 | WHITESPACE@[15; 16) |
diff --git a/tests/data/parser/inline/0005_extern_crate.txt b/tests/data/parser/inline/0005_extern_crate.txt index 07cc47875..cbdf5aba1 100644 --- a/tests/data/parser/inline/0005_extern_crate.txt +++ b/tests/data/parser/inline/0005_extern_crate.txt | |||
@@ -3,7 +3,8 @@ FILE@[0; 18) | |||
3 | EXTERN_KW@[0; 6) | 3 | EXTERN_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
5 | CRATE_KW@[7; 12) | 5 | CRATE_KW@[7; 12) |
6 | WHITESPACE@[12; 13) | 6 | NAME@[12; 16) |
7 | IDENT@[13; 16) "foo" | 7 | WHITESPACE@[12; 13) |
8 | IDENT@[13; 16) "foo" | ||
8 | SEMI@[16; 17) | 9 | SEMI@[16; 17) |
9 | WHITESPACE@[17; 18) | 10 | WHITESPACE@[17; 18) |
diff --git a/tests/data/parser/inline/0006_extern_struct.txt b/tests/data/parser/inline/0006_extern_struct.txt index 13917d7f3..93a5b0477 100644 --- a/tests/data/parser/inline/0006_extern_struct.txt +++ b/tests/data/parser/inline/0006_extern_struct.txt | |||
@@ -5,7 +5,8 @@ FILE@[0; 19) | |||
5 | err: `expected `fn` or `{`` | 5 | err: `expected `fn` or `{`` |
6 | STRUCT_ITEM@[7; 19) | 6 | STRUCT_ITEM@[7; 19) |
7 | STRUCT_KW@[7; 13) | 7 | STRUCT_KW@[7; 13) |
8 | WHITESPACE@[13; 14) | 8 | NAME@[13; 17) |
9 | IDENT@[14; 17) "Foo" | 9 | WHITESPACE@[13; 14) |
10 | IDENT@[14; 17) "Foo" | ||
10 | SEMI@[17; 18) | 11 | SEMI@[17; 18) |
11 | WHITESPACE@[18; 19) | 12 | WHITESPACE@[18; 19) |
diff --git a/tests/data/parser/inline/0007_unsafe_trait.txt b/tests/data/parser/inline/0007_unsafe_trait.txt index d6f6a4cfa..9e2f82587 100644 --- a/tests/data/parser/inline/0007_unsafe_trait.txt +++ b/tests/data/parser/inline/0007_unsafe_trait.txt | |||
@@ -3,9 +3,10 @@ FILE@[0; 18) | |||
3 | UNSAFE_KW@[0; 6) | 3 | UNSAFE_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
5 | TRAIT_KW@[7; 12) | 5 | TRAIT_KW@[7; 12) |
6 | WHITESPACE@[12; 13) | 6 | NAME@[12; 15) |
7 | IDENT@[13; 14) "T" | 7 | WHITESPACE@[12; 13) |
8 | WHITESPACE@[14; 15) | 8 | IDENT@[13; 14) "T" |
9 | WHITESPACE@[14; 15) | ||
9 | L_CURLY@[15; 16) | 10 | L_CURLY@[15; 16) |
10 | R_CURLY@[16; 17) | 11 | R_CURLY@[16; 17) |
11 | WHITESPACE@[17; 18) | 12 | WHITESPACE@[17; 18) |
diff --git a/tests/data/parser/inline/0009_unsafe_auto_trait.txt b/tests/data/parser/inline/0009_unsafe_auto_trait.txt index 0a9a1e117..aa1c99168 100644 --- a/tests/data/parser/inline/0009_unsafe_auto_trait.txt +++ b/tests/data/parser/inline/0009_unsafe_auto_trait.txt | |||
@@ -5,9 +5,10 @@ FILE@[0; 23) | |||
5 | AUTO_KW@[7; 11) | 5 | AUTO_KW@[7; 11) |
6 | WHITESPACE@[11; 12) | 6 | WHITESPACE@[11; 12) |
7 | TRAIT_KW@[12; 17) | 7 | TRAIT_KW@[12; 17) |
8 | WHITESPACE@[17; 18) | 8 | NAME@[17; 20) |
9 | IDENT@[18; 19) "T" | 9 | WHITESPACE@[17; 18) |
10 | WHITESPACE@[19; 20) | 10 | IDENT@[18; 19) "T" |
11 | WHITESPACE@[19; 20) | ||
11 | L_CURLY@[20; 21) | 12 | L_CURLY@[20; 21) |
12 | R_CURLY@[21; 22) | 13 | R_CURLY@[21; 22) |
13 | WHITESPACE@[22; 23) | 14 | WHITESPACE@[22; 23) |
diff --git a/tests/data/parser/inline/0011_unsafe_fn.txt b/tests/data/parser/inline/0011_unsafe_fn.txt index 23eca1d65..ed790fe22 100644 --- a/tests/data/parser/inline/0011_unsafe_fn.txt +++ b/tests/data/parser/inline/0011_unsafe_fn.txt | |||
@@ -3,8 +3,9 @@ FILE@[0; 19) | |||
3 | UNSAFE_KW@[0; 6) | 3 | UNSAFE_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
5 | FN_KW@[7; 9) | 5 | FN_KW@[7; 9) |
6 | WHITESPACE@[9; 10) | 6 | NAME@[9; 13) |
7 | IDENT@[10; 13) "foo" | 7 | WHITESPACE@[9; 10) |
8 | IDENT@[10; 13) "foo" | ||
8 | L_PAREN@[13; 14) | 9 | L_PAREN@[13; 14) |
9 | R_PAREN@[14; 15) | 10 | R_PAREN@[14; 15) |
10 | WHITESPACE@[15; 16) | 11 | WHITESPACE@[15; 16) |
diff --git a/tests/data/parser/inline/0012_unsafe_extern_fn.txt b/tests/data/parser/inline/0012_unsafe_extern_fn.txt index 547cb499d..3c8a15d12 100644 --- a/tests/data/parser/inline/0012_unsafe_extern_fn.txt +++ b/tests/data/parser/inline/0012_unsafe_extern_fn.txt | |||
@@ -8,8 +8,9 @@ FILE@[0; 30) | |||
8 | STRING@[14; 17) | 8 | STRING@[14; 17) |
9 | WHITESPACE@[17; 18) | 9 | WHITESPACE@[17; 18) |
10 | FN_KW@[18; 20) | 10 | FN_KW@[18; 20) |
11 | WHITESPACE@[20; 21) | 11 | NAME@[20; 24) |
12 | IDENT@[21; 24) "foo" | 12 | WHITESPACE@[20; 21) |
13 | IDENT@[21; 24) "foo" | ||
13 | L_PAREN@[24; 25) | 14 | L_PAREN@[24; 25) |
14 | R_PAREN@[25; 26) | 15 | R_PAREN@[25; 26) |
15 | WHITESPACE@[26; 27) | 16 | WHITESPACE@[26; 27) |
diff --git a/tests/data/parser/inline/0013_unsafe_block_in_mod.txt b/tests/data/parser/inline/0013_unsafe_block_in_mod.txt index 2e319be73..305e3058d 100644 --- a/tests/data/parser/inline/0013_unsafe_block_in_mod.txt +++ b/tests/data/parser/inline/0013_unsafe_block_in_mod.txt | |||
@@ -1,8 +1,9 @@ | |||
1 | FILE@[0; 33) | 1 | FILE@[0; 33) |
2 | FN_ITEM@[0; 11) | 2 | FN_ITEM@[0; 11) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | NAME@[2; 6) |
5 | IDENT@[3; 6) "foo" | 5 | WHITESPACE@[2; 3) |
6 | IDENT@[3; 6) "foo" | ||
6 | L_PAREN@[6; 7) | 7 | L_PAREN@[6; 7) |
7 | R_PAREN@[7; 8) | 8 | R_PAREN@[7; 8) |
8 | L_CURLY@[8; 9) | 9 | L_CURLY@[8; 9) |
@@ -18,8 +19,9 @@ FILE@[0; 33) | |||
18 | WHITESPACE@[21; 22) | 19 | WHITESPACE@[21; 22) |
19 | FN_ITEM@[22; 33) | 20 | FN_ITEM@[22; 33) |
20 | FN_KW@[22; 24) | 21 | FN_KW@[22; 24) |
21 | WHITESPACE@[24; 25) | 22 | NAME@[24; 28) |
22 | IDENT@[25; 28) "bar" | 23 | WHITESPACE@[24; 25) |
24 | IDENT@[25; 28) "bar" | ||
23 | L_PAREN@[28; 29) | 25 | L_PAREN@[28; 29) |
24 | R_PAREN@[29; 30) | 26 | R_PAREN@[29; 30) |
25 | L_CURLY@[30; 31) | 27 | L_CURLY@[30; 31) |
diff --git a/tests/data/parser/inline/0014_type_item_type_params.txt b/tests/data/parser/inline/0014_type_item_type_params.txt index b0f0f8337..ca32faa42 100644 --- a/tests/data/parser/inline/0014_type_item_type_params.txt +++ b/tests/data/parser/inline/0014_type_item_type_params.txt | |||
@@ -1,8 +1,9 @@ | |||
1 | FILE@[0; 21) | 1 | FILE@[0; 21) |
2 | TYPE_ITEM@[0; 21) | 2 | TYPE_ITEM@[0; 21) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | NAME@[4; 11) |
5 | IDENT@[5; 11) "Result" | 5 | WHITESPACE@[4; 5) |
6 | IDENT@[5; 11) "Result" | ||
6 | TYPE_PARAM_LIST@[11; 15) | 7 | TYPE_PARAM_LIST@[11; 15) |
7 | L_ANGLE@[11; 12) | 8 | L_ANGLE@[11; 12) |
8 | TYPE_PARAM@[12; 13) | 9 | TYPE_PARAM@[12; 13) |
diff --git a/tests/data/parser/inline/0015_type_item.txt b/tests/data/parser/inline/0015_type_item.txt index 382d7ece0..3818fe25d 100644 --- a/tests/data/parser/inline/0015_type_item.txt +++ b/tests/data/parser/inline/0015_type_item.txt | |||
@@ -1,9 +1,10 @@ | |||
1 | FILE@[0; 16) | 1 | FILE@[0; 16) |
2 | TYPE_ITEM@[0; 16) | 2 | TYPE_ITEM@[0; 16) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | NAME@[4; 9) |
5 | IDENT@[5; 8) "Foo" | 5 | WHITESPACE@[4; 5) |
6 | WHITESPACE@[8; 9) | 6 | IDENT@[5; 8) "Foo" |
7 | WHITESPACE@[8; 9) | ||
7 | EQ@[9; 10) | 8 | EQ@[9; 10) |
8 | WHITESPACE@[10; 11) | 9 | WHITESPACE@[10; 11) |
9 | IDENT@[11; 14) "Bar" | 10 | IDENT@[11; 14) "Bar" |
diff --git a/tests/data/parser/inline/0016_type_item_where_clause.txt b/tests/data/parser/inline/0016_type_item_where_clause.txt index ddd335870..12bbc752a 100644 --- a/tests/data/parser/inline/0016_type_item_where_clause.txt +++ b/tests/data/parser/inline/0016_type_item_where_clause.txt | |||
@@ -1,10 +1,11 @@ | |||
1 | FILE@[0; 31) | 1 | FILE@[0; 31) |
2 | TYPE_ITEM@[0; 31) | 2 | TYPE_ITEM@[0; 31) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | NAME@[4; 9) |
5 | IDENT@[5; 8) "Foo" | 5 | WHITESPACE@[4; 5) |
6 | WHERE_CLAUSE@[8; 25) | 6 | IDENT@[5; 8) "Foo" |
7 | WHITESPACE@[8; 9) | 7 | WHITESPACE@[8; 9) |
8 | WHERE_CLAUSE@[9; 25) | ||
8 | WHERE_KW@[9; 14) | 9 | WHERE_KW@[9; 14) |
9 | WHITESPACE@[14; 15) | 10 | WHITESPACE@[14; 15) |
10 | IDENT@[15; 18) "Foo" | 11 | IDENT@[15; 18) "Foo" |