diff options
Diffstat (limited to 'crates/libsyntax2/src/grammar')
-rw-r--r-- | crates/libsyntax2/src/grammar/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/grammar/mod.rs b/crates/libsyntax2/src/grammar/mod.rs index 496d28349..1acecac41 100644 --- a/crates/libsyntax2/src/grammar/mod.rs +++ b/crates/libsyntax2/src/grammar/mod.rs | |||
@@ -119,8 +119,10 @@ fn abi(p: &mut Parser) { | |||
119 | 119 | ||
120 | fn opt_fn_ret_type(p: &mut Parser) -> bool { | 120 | fn opt_fn_ret_type(p: &mut Parser) -> bool { |
121 | if p.at(THIN_ARROW) { | 121 | if p.at(THIN_ARROW) { |
122 | let m = p.start(); | ||
122 | p.bump(); | 123 | p.bump(); |
123 | types::type_(p); | 124 | types::type_(p); |
125 | m.complete(p, RET_TYPE); | ||
124 | true | 126 | true |
125 | } else { | 127 | } else { |
126 | false | 128 | false |