diff options
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r-- | crates/ra_parser/src/grammar.rs | 2 | ||||
-rw-r--r-- | crates/ra_parser/src/syntax_kind/generated.rs | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar.rs b/crates/ra_parser/src/grammar.rs index 58098e810..d0530955e 100644 --- a/crates/ra_parser/src/grammar.rs +++ b/crates/ra_parser/src/grammar.rs | |||
@@ -245,7 +245,7 @@ fn opt_fn_ret_type(p: &mut Parser) -> bool { | |||
245 | if p.at(T![->]) { | 245 | if p.at(T![->]) { |
246 | let m = p.start(); | 246 | let m = p.start(); |
247 | p.bump(T![->]); | 247 | p.bump(T![->]); |
248 | types::type_(p); | 248 | types::type_no_bounds(p); |
249 | m.complete(p, RET_TYPE); | 249 | m.complete(p, RET_TYPE); |
250 | true | 250 | true |
251 | } else { | 251 | } else { |
diff --git a/crates/ra_parser/src/syntax_kind/generated.rs b/crates/ra_parser/src/syntax_kind/generated.rs index 4c16cf1cd..004f4e564 100644 --- a/crates/ra_parser/src/syntax_kind/generated.rs +++ b/crates/ra_parser/src/syntax_kind/generated.rs | |||
@@ -105,6 +105,7 @@ pub enum SyntaxKind { | |||
105 | DEFAULT_KW, | 105 | DEFAULT_KW, |
106 | EXISTENTIAL_KW, | 106 | EXISTENTIAL_KW, |
107 | UNION_KW, | 107 | UNION_KW, |
108 | RAW_KW, | ||
108 | INT_NUMBER, | 109 | INT_NUMBER, |
109 | FLOAT_NUMBER, | 110 | FLOAT_NUMBER, |
110 | CHAR, | 111 | CHAR, |
@@ -258,7 +259,7 @@ impl SyntaxKind { | |||
258 | | IMPL_KW | IN_KW | LET_KW | LOOP_KW | MACRO_KW | MATCH_KW | MOD_KW | MOVE_KW | 259 | | IMPL_KW | IN_KW | LET_KW | LOOP_KW | MACRO_KW | MATCH_KW | MOD_KW | MOVE_KW |
259 | | MUT_KW | PUB_KW | REF_KW | RETURN_KW | SELF_KW | STATIC_KW | STRUCT_KW | SUPER_KW | 260 | | MUT_KW | PUB_KW | REF_KW | RETURN_KW | SELF_KW | STATIC_KW | STRUCT_KW | SUPER_KW |
260 | | TRAIT_KW | TRUE_KW | TRY_KW | TYPE_KW | UNSAFE_KW | USE_KW | WHERE_KW | WHILE_KW | 261 | | TRAIT_KW | TRUE_KW | TRY_KW | TYPE_KW | UNSAFE_KW | USE_KW | WHERE_KW | WHILE_KW |
261 | | AUTO_KW | DEFAULT_KW | EXISTENTIAL_KW | UNION_KW => true, | 262 | | AUTO_KW | DEFAULT_KW | EXISTENTIAL_KW | UNION_KW | RAW_KW => true, |
262 | _ => false, | 263 | _ => false, |
263 | } | 264 | } |
264 | } | 265 | } |
@@ -651,4 +652,7 @@ macro_rules! T { | |||
651 | ( union ) => { | 652 | ( union ) => { |
652 | $crate::SyntaxKind::UNION_KW | 653 | $crate::SyntaxKind::UNION_KW |
653 | }; | 654 | }; |
655 | ( raw ) => { | ||
656 | $crate::SyntaxKind::RAW_KW | ||
657 | }; | ||
654 | } | 658 | } |