From 2257c08cb159a30492bf2aec172539b1dd504700 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 28 Aug 2018 21:11:17 +0300 Subject: Add ret type --- crates/libsyntax2/src/grammar/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/libsyntax2/src/grammar/mod.rs') 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) { fn opt_fn_ret_type(p: &mut Parser) -> bool { if p.at(THIN_ARROW) { + let m = p.start(); p.bump(); types::type_(p); + m.complete(p, RET_TYPE); true } else { false -- cgit v1.2.3