From bff8dd094958f1abe2fcfe8fe9f15dc7a7e6b53e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 1 Aug 2020 13:47:19 +0200 Subject: Update grammar --- .../test_data/parser/err/0012_broken_lambda.rast | 6 +++--- .../test_data/parser/err/0044_unexpected_for_type.rast | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'crates/ra_syntax/test_data/parser/err') diff --git a/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast b/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast index c131b79a7..f31c27633 100644 --- a/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast +++ b/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast @@ -39,7 +39,7 @@ SOURCE_FILE@0..389 IDENT@39..46 "builder" COLON@46..47 WHITESPACE@47..48 - REFERENCE_TYPE@48..54 + REF_TYPE@48..54 AMP@48..49 MUT_KW@49..52 WHITESPACE@52..53 @@ -56,7 +56,7 @@ SOURCE_FILE@0..389 IDENT@56..62 "tokens" COLON@62..63 WHITESPACE@63..64 - REFERENCE_TYPE@64..72 + REF_TYPE@64..72 AMP@64..65 SLICE_TYPE@65..72 L_BRACK@65..66 @@ -126,7 +126,7 @@ SOURCE_FILE@0..389 IDENT@144..147 "idx" COLON@147..148 WHITESPACE@148..149 - REFERENCE_TYPE@149..159 + REF_TYPE@149..159 AMP@149..150 MUT_KW@150..153 WHITESPACE@153..154 diff --git a/crates/ra_syntax/test_data/parser/err/0044_unexpected_for_type.rast b/crates/ra_syntax/test_data/parser/err/0044_unexpected_for_type.rast index 082625c13..71aa86494 100644 --- a/crates/ra_syntax/test_data/parser/err/0044_unexpected_for_type.rast +++ b/crates/ra_syntax/test_data/parser/err/0044_unexpected_for_type.rast @@ -15,7 +15,7 @@ SOURCE_FILE@0..239 LIFETIME@18..20 "\'a" R_ANGLE@20..21 ">" WHITESPACE@21..22 " " - REFERENCE_TYPE@22..29 + REF_TYPE@22..29 AMP@22..23 "&" LIFETIME@23..25 "\'a" WHITESPACE@25..26 " " @@ -44,7 +44,7 @@ SOURCE_FILE@0..239 WHITESPACE@52..53 " " TUPLE_TYPE@53..63 L_PAREN@53..54 "(" - REFERENCE_TYPE@54..61 + REF_TYPE@54..61 AMP@54..55 "&" LIFETIME@55..57 "\'a" WHITESPACE@57..58 " " @@ -107,12 +107,12 @@ SOURCE_FILE@0..239 LIFETIME@124..126 "\'b" R_ANGLE@126..127 ">" WHITESPACE@127..128 " " - FN_POINTER_TYPE@128..148 + FN_PTR_TYPE@128..148 FN_KW@128..130 "fn" PARAM_LIST@130..148 L_PAREN@130..131 "(" PARAM@131..138 - REFERENCE_TYPE@131..138 + REF_TYPE@131..138 AMP@131..132 "&" LIFETIME@132..134 "\'a" WHITESPACE@134..135 " " @@ -124,7 +124,7 @@ SOURCE_FILE@0..239 COMMA@138..139 "," WHITESPACE@139..140 " " PARAM@140..147 - REFERENCE_TYPE@140..147 + REF_TYPE@140..147 AMP@140..141 "&" LIFETIME@141..143 "\'b" WHITESPACE@143..144 " " @@ -178,12 +178,12 @@ SOURCE_FILE@0..239 LIFETIME@200..202 "\'c" R_ANGLE@202..203 ">" WHITESPACE@203..204 " " - FN_POINTER_TYPE@204..227 + FN_PTR_TYPE@204..227 FN_KW@204..206 "fn" PARAM_LIST@206..227 L_PAREN@206..207 "(" PARAM@207..212 - REFERENCE_TYPE@207..212 + REF_TYPE@207..212 AMP@207..208 "&" LIFETIME@208..210 "\'a" WHITESPACE@210..211 " " @@ -195,7 +195,7 @@ SOURCE_FILE@0..239 COMMA@212..213 "," WHITESPACE@213..214 " " PARAM@214..219 - REFERENCE_TYPE@214..219 + REF_TYPE@214..219 AMP@214..215 "&" LIFETIME@215..217 "\'b" WHITESPACE@217..218 " " @@ -207,7 +207,7 @@ SOURCE_FILE@0..239 COMMA@219..220 "," WHITESPACE@220..221 " " PARAM@221..226 - REFERENCE_TYPE@221..226 + REF_TYPE@221..226 AMP@221..222 "&" LIFETIME@222..224 "\'c" WHITESPACE@224..225 " " -- cgit v1.2.3