From dd4978d207229687338379bf7946bbc6fe8b2e04 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Thu, 3 Oct 2019 11:08:53 -0700 Subject: rust grammar: lifetime goes between & and mut in type ref --- grammar/rust.lm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'grammar') diff --git a/grammar/rust.lm b/grammar/rust.lm index f6e33a0a..089c5c7f 100644 --- a/grammar/rust.lm +++ b/grammar/rust.lm @@ -166,7 +166,8 @@ def opt_lifetime def type [type_path] | [`& opt_lifetime type_path] -| [`&mut opt_lifetime type_path] +| [`&mut type_path] +| [`& lifetime `mut type_path] | [`( `)] def type_list @@ -513,7 +514,7 @@ if P { } for CL: cons_list in FN { - print " construct list: [CL] + print " construct list: [^CL] } } } -- cgit v1.2.1