diff options
Diffstat (limited to 'crates/ra_syntax/src/grammar/types.rs')
-rw-r--r-- | crates/ra_syntax/src/grammar/types.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/grammar/types.rs b/crates/ra_syntax/src/grammar/types.rs index 811d399d4..a933b986b 100644 --- a/crates/ra_syntax/src/grammar/types.rs +++ b/crates/ra_syntax/src/grammar/types.rs | |||
@@ -97,7 +97,7 @@ fn pointer_type(p: &mut Parser) { | |||
97 | // type C = *mut (); | 97 | // type C = *mut (); |
98 | MUT_KW | CONST_KW => p.bump(), | 98 | MUT_KW | CONST_KW => p.bump(), |
99 | _ => { | 99 | _ => { |
100 | // test pointer_type_no_mutability | 100 | // test_err pointer_type_no_mutability |
101 | // type T = *(); | 101 | // type T = *(); |
102 | p.error( | 102 | p.error( |
103 | "expected mut or const in raw pointer type \ | 103 | "expected mut or const in raw pointer type \ |
@@ -132,7 +132,7 @@ fn array_or_slice_type(p: &mut Parser) { | |||
132 | p.expect(R_BRACK); | 132 | p.expect(R_BRACK); |
133 | ARRAY_TYPE | 133 | ARRAY_TYPE |
134 | } | 134 | } |
135 | // test array_type_missing_semi | 135 | // test_err array_type_missing_semi |
136 | // type T = [() 92]; | 136 | // type T = [() 92]; |
137 | _ => { | 137 | _ => { |
138 | p.error("expected `;` or `]`"); | 138 | p.error("expected `;` or `]`"); |
@@ -175,7 +175,7 @@ fn fn_pointer_type(p: &mut Parser) { | |||
175 | if p.at(EXTERN_KW) { | 175 | if p.at(EXTERN_KW) { |
176 | abi(p); | 176 | abi(p); |
177 | } | 177 | } |
178 | // test fn_pointer_type_missing_fn | 178 | // test_err fn_pointer_type_missing_fn |
179 | // type F = unsafe (); | 179 | // type F = unsafe (); |
180 | if !p.eat(FN_KW) { | 180 | if !p.eat(FN_KW) { |
181 | m.abandon(p); | 181 | m.abandon(p); |