From 02d25ab60d2701ce71fe2dfaca36627ad902e229 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Thu, 17 Jun 2021 18:09:44 +0200 Subject: Fix parser tests for 1.53 --- .../parser/ok/0018_struct_type_params.rast | 34 +++++++++++----------- .../parser/ok/0020_type_param_bounds.rast | 28 +++++++++--------- .../test_data/parser/ok/0030_string_suffixes.rast | 4 +-- .../syntax/test_data/parser/ok/0032_where_for.rast | 4 +-- .../test_data/parser/ok/0033_label_break.rast | 14 ++++----- .../test_data/parser/ok/0035_weird_exprs.rast | 18 ++++++------ .../test_data/parser/ok/0051_parameter_attrs.rast | 12 ++++---- .../test_data/parser/ok/0067_where_for_pred.rast | 30 +++++++++---------- .../parser/ok/0069_multi_trait_object.rast | 6 ++-- 9 files changed, 75 insertions(+), 75 deletions(-) (limited to 'crates/syntax/test_data/parser/ok') diff --git a/crates/syntax/test_data/parser/ok/0018_struct_type_params.rast b/crates/syntax/test_data/parser/ok/0018_struct_type_params.rast index 83e17757b..f845d5cff 100644 --- a/crates/syntax/test_data/parser/ok/0018_struct_type_params.rast +++ b/crates/syntax/test_data/parser/ok/0018_struct_type_params.rast @@ -81,7 +81,7 @@ SOURCE_FILE@0..290 L_ANGLE@80..81 "<" LIFETIME_PARAM@81..83 LIFETIME@81..83 - LIFETIME_IDENT@81..83 "\'a" + LIFETIME_IDENT@81..83 "'a" R_ANGLE@83..84 ">" SEMICOLON@84..85 ";" WHITESPACE@85..86 "\n" @@ -94,7 +94,7 @@ SOURCE_FILE@0..290 L_ANGLE@95..96 "<" LIFETIME_PARAM@96..99 LIFETIME@96..98 - LIFETIME_IDENT@96..98 "\'a" + LIFETIME_IDENT@96..98 "'a" COLON@98..99 ":" R_ANGLE@99..100 ">" SEMICOLON@100..101 ";" @@ -108,11 +108,11 @@ SOURCE_FILE@0..290 L_ANGLE@111..112 "<" LIFETIME_PARAM@112..118 LIFETIME@112..114 - LIFETIME_IDENT@112..114 "\'a" + LIFETIME_IDENT@112..114 "'a" COLON@114..115 ":" WHITESPACE@115..116 " " LIFETIME@116..118 - LIFETIME_IDENT@116..118 "\'b" + LIFETIME_IDENT@116..118 "'b" R_ANGLE@118..119 ">" SEMICOLON@119..120 ";" WHITESPACE@120..121 "\n" @@ -125,11 +125,11 @@ SOURCE_FILE@0..290 L_ANGLE@130..131 "<" LIFETIME_PARAM@131..139 LIFETIME@131..133 - LIFETIME_IDENT@131..133 "\'a" + LIFETIME_IDENT@131..133 "'a" COLON@133..134 ":" WHITESPACE@134..135 " " LIFETIME@135..137 - LIFETIME_IDENT@135..137 "\'b" + LIFETIME_IDENT@135..137 "'b" WHITESPACE@137..138 " " PLUS@138..139 "+" WHITESPACE@139..140 " " @@ -145,16 +145,16 @@ SOURCE_FILE@0..290 L_ANGLE@152..153 "<" LIFETIME_PARAM@153..164 LIFETIME@153..155 - LIFETIME_IDENT@153..155 "\'a" + LIFETIME_IDENT@153..155 "'a" COLON@155..156 ":" WHITESPACE@156..157 " " LIFETIME@157..159 - LIFETIME_IDENT@157..159 "\'b" + LIFETIME_IDENT@157..159 "'b" WHITESPACE@159..160 " " PLUS@160..161 "+" WHITESPACE@161..162 " " LIFETIME@162..164 - LIFETIME_IDENT@162..164 "\'c" + LIFETIME_IDENT@162..164 "'c" R_ANGLE@164..165 ">" SEMICOLON@165..166 ";" WHITESPACE@166..167 "\n" @@ -167,7 +167,7 @@ SOURCE_FILE@0..290 L_ANGLE@177..178 "<" LIFETIME_PARAM@178..180 LIFETIME@178..180 - LIFETIME_IDENT@178..180 "\'a" + LIFETIME_IDENT@178..180 "'a" COMMA@180..181 "," R_ANGLE@181..182 ">" SEMICOLON@182..183 ";" @@ -181,12 +181,12 @@ SOURCE_FILE@0..290 L_ANGLE@194..195 "<" LIFETIME_PARAM@195..197 LIFETIME@195..197 - LIFETIME_IDENT@195..197 "\'a" + LIFETIME_IDENT@195..197 "'a" COMMA@197..198 "," WHITESPACE@198..199 " " LIFETIME_PARAM@199..201 LIFETIME@199..201 - LIFETIME_IDENT@199..201 "\'b" + LIFETIME_IDENT@199..201 "'b" R_ANGLE@201..202 ">" SEMICOLON@202..203 ";" WHITESPACE@203..204 "\n" @@ -199,21 +199,21 @@ SOURCE_FILE@0..290 L_ANGLE@214..215 "<" LIFETIME_PARAM@215..222 LIFETIME@215..217 - LIFETIME_IDENT@215..217 "\'a" + LIFETIME_IDENT@215..217 "'a" COLON@217..218 ":" WHITESPACE@218..219 " " LIFETIME@219..221 - LIFETIME_IDENT@219..221 "\'b" + LIFETIME_IDENT@219..221 "'b" PLUS@221..222 "+" COMMA@222..223 "," WHITESPACE@223..224 " " LIFETIME_PARAM@224..230 LIFETIME@224..226 - LIFETIME_IDENT@224..226 "\'b" + LIFETIME_IDENT@224..226 "'b" COLON@226..227 ":" WHITESPACE@227..228 " " LIFETIME@228..230 - LIFETIME_IDENT@228..230 "\'c" + LIFETIME_IDENT@228..230 "'c" COMMA@230..231 "," R_ANGLE@231..232 ">" SEMICOLON@232..233 ";" @@ -258,7 +258,7 @@ SOURCE_FILE@0..290 L_ANGLE@278..279 "<" LIFETIME_PARAM@279..281 LIFETIME@279..281 - LIFETIME_IDENT@279..281 "\'a" + LIFETIME_IDENT@279..281 "'a" COMMA@281..282 "," WHITESPACE@282..283 " " TYPE_PARAM@283..284 diff --git a/crates/syntax/test_data/parser/ok/0020_type_param_bounds.rast b/crates/syntax/test_data/parser/ok/0020_type_param_bounds.rast index 21c564a20..9d4b001ae 100644 --- a/crates/syntax/test_data/parser/ok/0020_type_param_bounds.rast +++ b/crates/syntax/test_data/parser/ok/0020_type_param_bounds.rast @@ -42,7 +42,7 @@ SOURCE_FILE@0..250 TYPE_BOUND_LIST@39..41 TYPE_BOUND@39..41 LIFETIME@39..41 - LIFETIME_IDENT@39..41 "\'a" + LIFETIME_IDENT@39..41 "'a" R_ANGLE@41..42 ">" SEMICOLON@42..43 ";" WHITESPACE@43..44 "\n" @@ -61,7 +61,7 @@ SOURCE_FILE@0..250 TYPE_BOUND_LIST@56..60 TYPE_BOUND@56..58 LIFETIME@56..58 - LIFETIME_IDENT@56..58 "\'a" + LIFETIME_IDENT@56..58 "'a" WHITESPACE@58..59 " " PLUS@59..60 "+" WHITESPACE@60..61 " " @@ -83,13 +83,13 @@ SOURCE_FILE@0..250 TYPE_BOUND_LIST@76..83 TYPE_BOUND@76..78 LIFETIME@76..78 - LIFETIME_IDENT@76..78 "\'a" + LIFETIME_IDENT@76..78 "'a" WHITESPACE@78..79 " " PLUS@79..80 "+" WHITESPACE@80..81 " " TYPE_BOUND@81..83 LIFETIME@81..83 - LIFETIME_IDENT@81..83 "\'d" + LIFETIME_IDENT@81..83 "'d" WHITESPACE@83..84 " " R_ANGLE@84..85 ">" SEMICOLON@85..86 ";" @@ -109,13 +109,13 @@ SOURCE_FILE@0..250 TYPE_BOUND_LIST@99..114 TYPE_BOUND@99..101 LIFETIME@99..101 - LIFETIME_IDENT@99..101 "\'a" + LIFETIME_IDENT@99..101 "'a" WHITESPACE@101..102 " " PLUS@102..103 "+" WHITESPACE@103..104 " " TYPE_BOUND@104..106 LIFETIME@104..106 - LIFETIME_IDENT@104..106 "\'d" + LIFETIME_IDENT@104..106 "'d" WHITESPACE@106..107 " " PLUS@107..108 "+" WHITESPACE@108..109 " " @@ -198,7 +198,7 @@ SOURCE_FILE@0..250 WHITESPACE@175..176 " " TYPE_BOUND@176..178 LIFETIME@176..178 - LIFETIME_IDENT@176..178 "\'a" + LIFETIME_IDENT@176..178 "'a" R_ANGLE@178..179 ">" SEMICOLON@179..180 ";" WHITESPACE@180..181 "\n" @@ -234,25 +234,25 @@ SOURCE_FILE@0..250 L_ANGLE@208..209 "<" LIFETIME_PARAM@209..215 LIFETIME@209..211 - LIFETIME_IDENT@209..211 "\'a" + LIFETIME_IDENT@209..211 "'a" COLON@211..212 ":" WHITESPACE@212..213 " " LIFETIME@213..215 - LIFETIME_IDENT@213..215 "\'d" + LIFETIME_IDENT@213..215 "'d" COMMA@215..216 "," WHITESPACE@216..217 " " LIFETIME_PARAM@217..228 LIFETIME@217..219 - LIFETIME_IDENT@217..219 "\'d" + LIFETIME_IDENT@217..219 "'d" COLON@219..220 ":" WHITESPACE@220..221 " " LIFETIME@221..223 - LIFETIME_IDENT@221..223 "\'a" + LIFETIME_IDENT@221..223 "'a" WHITESPACE@223..224 " " PLUS@224..225 "+" WHITESPACE@225..226 " " LIFETIME@226..228 - LIFETIME_IDENT@226..228 "\'b" + LIFETIME_IDENT@226..228 "'b" COMMA@228..229 "," WHITESPACE@229..230 " " TYPE_PARAM@230..248 @@ -263,13 +263,13 @@ SOURCE_FILE@0..250 TYPE_BOUND_LIST@233..248 TYPE_BOUND@233..235 LIFETIME@233..235 - LIFETIME_IDENT@233..235 "\'a" + LIFETIME_IDENT@233..235 "'a" WHITESPACE@235..236 " " PLUS@236..237 "+" WHITESPACE@237..238 " " TYPE_BOUND@238..240 LIFETIME@238..240 - LIFETIME_IDENT@238..240 "\'d" + LIFETIME_IDENT@238..240 "'d" WHITESPACE@240..241 " " PLUS@241..242 "+" WHITESPACE@242..243 " " diff --git a/crates/syntax/test_data/parser/ok/0030_string_suffixes.rast b/crates/syntax/test_data/parser/ok/0030_string_suffixes.rast index 80f7f5942..115861585 100644 --- a/crates/syntax/test_data/parser/ok/0030_string_suffixes.rast +++ b/crates/syntax/test_data/parser/ok/0030_string_suffixes.rast @@ -20,7 +20,7 @@ SOURCE_FILE@0..112 EQ@22..23 "=" WHITESPACE@23..24 " " LITERAL@24..30 - CHAR@24..30 "\'c\'u32" + CHAR@24..30 "'c'u32" SEMICOLON@30..31 ";" WHITESPACE@31..36 "\n " LET_STMT@36..60 @@ -44,7 +44,7 @@ SOURCE_FILE@0..112 EQ@71..72 "=" WHITESPACE@72..73 " " LITERAL@73..82 - BYTE@73..82 "b\'b\'_suff" + BYTE@73..82 "b'b'_suff" SEMICOLON@82..83 ";" WHITESPACE@83..88 "\n " LET_STMT@88..109 diff --git a/crates/syntax/test_data/parser/ok/0032_where_for.rast b/crates/syntax/test_data/parser/ok/0032_where_for.rast index 0cb2eca33..b527cc3ac 100644 --- a/crates/syntax/test_data/parser/ok/0032_where_for.rast +++ b/crates/syntax/test_data/parser/ok/0032_where_for.rast @@ -42,7 +42,7 @@ SOURCE_FILE@0..116 L_ANGLE@59..60 "<" LIFETIME_PARAM@60..63 LIFETIME@60..63 - LIFETIME_IDENT@60..63 "\'de" + LIFETIME_IDENT@60..63 "'de" R_ANGLE@63..64 ">" WHITESPACE@64..65 " " PATH_TYPE@65..81 @@ -54,7 +54,7 @@ SOURCE_FILE@0..116 L_ANGLE@76..77 "<" LIFETIME_ARG@77..80 LIFETIME@77..80 - LIFETIME_IDENT@77..80 "\'de" + LIFETIME_IDENT@77..80 "'de" R_ANGLE@80..81 ">" WHITESPACE@81..82 " " PLUS@82..83 "+" diff --git a/crates/syntax/test_data/parser/ok/0033_label_break.rast b/crates/syntax/test_data/parser/ok/0033_label_break.rast index 487e073ba..4b0f0997e 100644 --- a/crates/syntax/test_data/parser/ok/0033_label_break.rast +++ b/crates/syntax/test_data/parser/ok/0033_label_break.rast @@ -17,7 +17,7 @@ SOURCE_FILE@0..506 EFFECT_EXPR@50..66 LABEL@50..63 LIFETIME@50..62 - LIFETIME_IDENT@50..62 "\'empty_block" + LIFETIME_IDENT@50..62 "'empty_block" COLON@62..63 ":" WHITESPACE@63..64 " " BLOCK_EXPR@64..66 @@ -28,7 +28,7 @@ SOURCE_FILE@0..506 EFFECT_EXPR@72..295 LABEL@72..79 LIFETIME@72..78 - LIFETIME_IDENT@72..78 "\'block" + LIFETIME_IDENT@72..78 "'block" COLON@78..79 ":" WHITESPACE@79..80 " " BLOCK_EXPR@80..295 @@ -69,7 +69,7 @@ SOURCE_FILE@0..506 BREAK_KW@147..152 "break" WHITESPACE@152..153 " " LIFETIME@153..159 - LIFETIME_IDENT@153..159 "\'block" + LIFETIME_IDENT@153..159 "'block" SEMICOLON@159..160 ";" WHITESPACE@160..169 "\n " R_CURLY@169..170 "}" @@ -109,7 +109,7 @@ SOURCE_FILE@0..506 BREAK_KW@241..246 "break" WHITESPACE@246..247 " " LIFETIME@247..253 - LIFETIME_IDENT@247..253 "\'block" + LIFETIME_IDENT@247..253 "'block" SEMICOLON@253..254 ";" WHITESPACE@254..263 "\n " R_CURLY@263..264 "}" @@ -140,7 +140,7 @@ SOURCE_FILE@0..506 EFFECT_EXPR@314..502 LABEL@314..321 LIFETIME@314..320 - LIFETIME_IDENT@314..320 "\'block" + LIFETIME_IDENT@314..320 "'block" COLON@320..321 ":" WHITESPACE@321..322 " " BLOCK_EXPR@322..502 @@ -171,7 +171,7 @@ SOURCE_FILE@0..506 BREAK_KW@378..383 "break" WHITESPACE@383..384 " " LIFETIME@384..390 - LIFETIME_IDENT@384..390 "\'block" + LIFETIME_IDENT@384..390 "'block" WHITESPACE@390..391 " " LITERAL@391..392 INT_NUMBER@391..392 "1" @@ -204,7 +204,7 @@ SOURCE_FILE@0..506 BREAK_KW@461..466 "break" WHITESPACE@466..467 " " LIFETIME@467..473 - LIFETIME_IDENT@467..473 "\'block" + LIFETIME_IDENT@467..473 "'block" WHITESPACE@473..474 " " LITERAL@474..475 INT_NUMBER@474..475 "2" diff --git a/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast b/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast index 20675dbf5..2fa46ad2d 100644 --- a/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast +++ b/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast @@ -1378,14 +1378,14 @@ SOURCE_FILE@0..3813 WHITESPACE@2376..2377 " " IDENT@2377..2379 "u8" L_ANGLE@2379..2380 "<" - LIFETIME_IDENT@2380..2383 "\'u8" + LIFETIME_IDENT@2380..2383 "'u8" COLON@2383..2384 ":" WHITESPACE@2384..2385 " " - LIFETIME_IDENT@2385..2388 "\'u8" + LIFETIME_IDENT@2385..2388 "'u8" WHITESPACE@2388..2389 " " PLUS@2389..2390 "+" WHITESPACE@2390..2391 " " - LIFETIME_IDENT@2391..2394 "\'u8" + LIFETIME_IDENT@2391..2394 "'u8" R_ANGLE@2394..2395 ">" TOKEN_TREE@2395..2408 L_PAREN@2395..2396 "(" @@ -1393,7 +1393,7 @@ SOURCE_FILE@0..3813 COLON@2398..2399 ":" WHITESPACE@2399..2400 " " AMP@2400..2401 "&" - LIFETIME_IDENT@2401..2404 "\'u8" + LIFETIME_IDENT@2401..2404 "'u8" WHITESPACE@2404..2405 " " IDENT@2405..2407 "u8" R_PAREN@2407..2408 ")" @@ -1402,7 +1402,7 @@ SOURCE_FILE@0..3813 R_ANGLE@2410..2411 ">" WHITESPACE@2411..2412 " " AMP@2412..2413 "&" - LIFETIME_IDENT@2413..2416 "\'u8" + LIFETIME_IDENT@2413..2416 "'u8" WHITESPACE@2416..2417 " " IDENT@2417..2419 "u8" WHITESPACE@2419..2420 " " @@ -1574,7 +1574,7 @@ SOURCE_FILE@0..3813 L_ANGLE@2862..2863 "<" LIFETIME_PARAM@2863..2869 LIFETIME@2863..2869 - LIFETIME_IDENT@2863..2869 "\'union" + LIFETIME_IDENT@2863..2869 "'union" R_ANGLE@2869..2870 ">" WHITESPACE@2870..2871 " " RECORD_FIELD_LIST@2871..2904 @@ -1588,7 +1588,7 @@ SOURCE_FILE@0..3813 REF_TYPE@2880..2901 AMP@2880..2881 "&" LIFETIME@2881..2887 - LIFETIME_IDENT@2881..2887 "\'union" + LIFETIME_IDENT@2881..2887 "'union" WHITESPACE@2887..2888 " " PATH_TYPE@2888..2901 PATH@2888..2901 @@ -1599,7 +1599,7 @@ SOURCE_FILE@0..3813 L_ANGLE@2893..2894 "<" LIFETIME_ARG@2894..2900 LIFETIME@2894..2900 - LIFETIME_IDENT@2894..2900 "\'union" + LIFETIME_IDENT@2894..2900 "'union" R_ANGLE@2900..2901 ">" COMMA@2901..2902 "," WHITESPACE@2902..2903 " " @@ -1681,7 +1681,7 @@ SOURCE_FILE@0..3813 STRING@2975..2979 "\"\\\\\"" COMMA@2979..2980 "," LITERAL@2980..2986 - CHAR@2980..2986 "\'🤔\'" + CHAR@2980..2986 "'🤔'" R_PAREN@2986..2987 ")" COMMENT@2987..2991 "/**/" COMMA@2991..2992 "," diff --git a/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast b/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast index f935a0df5..a7f0f7bc6 100644 --- a/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast +++ b/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast @@ -181,7 +181,7 @@ SOURCE_FILE@0..519 L_ANGLE@162..163 "<" LIFETIME_ARG@163..165 LIFETIME@163..165 - LIFETIME_IDENT@163..165 "\'a" + LIFETIME_IDENT@163..165 "'a" R_ANGLE@165..166 ">" R_PAREN@166..167 ")" R_ANGLE@167..168 ">" @@ -359,7 +359,7 @@ SOURCE_FILE@0..519 L_ANGLE@345..346 "<" LIFETIME_PARAM@346..348 LIFETIME@346..348 - LIFETIME_IDENT@346..348 "\'a" + LIFETIME_IDENT@346..348 "'a" R_ANGLE@348..349 ">" PARAM_LIST@349..368 L_PAREN@349..350 "(" @@ -394,7 +394,7 @@ SOURCE_FILE@0..519 L_ANGLE@382..383 "<" LIFETIME_PARAM@383..385 LIFETIME@383..385 - LIFETIME_IDENT@383..385 "\'a" + LIFETIME_IDENT@383..385 "'a" R_ANGLE@385..386 ">" PARAM_LIST@386..404 L_PAREN@386..387 "(" @@ -411,7 +411,7 @@ SOURCE_FILE@0..519 WHITESPACE@394..395 " " AMP@395..396 "&" LIFETIME@396..398 - LIFETIME_IDENT@396..398 "\'a" + LIFETIME_IDENT@396..398 "'a" WHITESPACE@398..399 " " NAME@399..403 SELF_KW@399..403 "self" @@ -430,7 +430,7 @@ SOURCE_FILE@0..519 L_ANGLE@418..419 "<" LIFETIME_PARAM@419..421 LIFETIME@419..421 - LIFETIME_IDENT@419..421 "\'a" + LIFETIME_IDENT@419..421 "'a" R_ANGLE@421..422 ">" PARAM_LIST@422..444 L_PAREN@422..423 "(" @@ -447,7 +447,7 @@ SOURCE_FILE@0..519 WHITESPACE@430..431 " " AMP@431..432 "&" LIFETIME@432..434 - LIFETIME_IDENT@432..434 "\'a" + LIFETIME_IDENT@432..434 "'a" WHITESPACE@434..435 " " MUT_KW@435..438 "mut" WHITESPACE@438..439 " " diff --git a/crates/syntax/test_data/parser/ok/0067_where_for_pred.rast b/crates/syntax/test_data/parser/ok/0067_where_for_pred.rast index 325e9e655..79e2b2867 100644 --- a/crates/syntax/test_data/parser/ok/0067_where_for_pred.rast +++ b/crates/syntax/test_data/parser/ok/0067_where_for_pred.rast @@ -23,7 +23,7 @@ SOURCE_FILE@0..374 L_ANGLE@31..32 "<" LIFETIME_PARAM@32..34 LIFETIME@32..34 - LIFETIME_IDENT@32..34 "\'a" + LIFETIME_IDENT@32..34 "'a" R_ANGLE@34..35 ">" WHITESPACE@35..36 " " PATH_TYPE@36..37 @@ -46,7 +46,7 @@ SOURCE_FILE@0..374 REF_TYPE@42..49 AMP@42..43 "&" LIFETIME@43..45 - LIFETIME_IDENT@43..45 "\'a" + LIFETIME_IDENT@43..45 "'a" WHITESPACE@45..46 " " PATH_TYPE@46..49 PATH@46..49 @@ -85,13 +85,13 @@ SOURCE_FILE@0..374 L_ANGLE@85..86 "<" LIFETIME_PARAM@86..88 LIFETIME@86..88 - LIFETIME_IDENT@86..88 "\'a" + LIFETIME_IDENT@86..88 "'a" R_ANGLE@88..89 ">" WHITESPACE@89..90 " " REF_TYPE@90..95 AMP@90..91 "&" LIFETIME@91..93 - LIFETIME_IDENT@91..93 "\'a" + LIFETIME_IDENT@91..93 "'a" WHITESPACE@93..94 " " PATH_TYPE@94..95 PATH@94..95 @@ -138,7 +138,7 @@ SOURCE_FILE@0..374 L_ANGLE@140..141 "<" LIFETIME_PARAM@141..143 LIFETIME@141..143 - LIFETIME_IDENT@141..143 "\'a" + LIFETIME_IDENT@141..143 "'a" R_ANGLE@143..144 ">" WHITESPACE@144..145 " " PAREN_TYPE@145..152 @@ -146,7 +146,7 @@ SOURCE_FILE@0..374 REF_TYPE@146..151 AMP@146..147 "&" LIFETIME@147..149 - LIFETIME_IDENT@147..149 "\'a" + LIFETIME_IDENT@147..149 "'a" WHITESPACE@149..150 " " PATH_TYPE@150..151 PATH@150..151 @@ -169,7 +169,7 @@ SOURCE_FILE@0..374 REF_TYPE@157..164 AMP@157..158 "&" LIFETIME@158..160 - LIFETIME_IDENT@158..160 "\'a" + LIFETIME_IDENT@158..160 "'a" WHITESPACE@160..161 " " PATH_TYPE@161..164 PATH@161..164 @@ -208,7 +208,7 @@ SOURCE_FILE@0..374 L_ANGLE@202..203 "<" LIFETIME_PARAM@203..205 LIFETIME@203..205 - LIFETIME_IDENT@203..205 "\'a" + LIFETIME_IDENT@203..205 "'a" R_ANGLE@205..206 ">" WHITESPACE@206..207 " " SLICE_TYPE@207..214 @@ -216,7 +216,7 @@ SOURCE_FILE@0..374 REF_TYPE@208..213 AMP@208..209 "&" LIFETIME@209..211 - LIFETIME_IDENT@209..211 "\'a" + LIFETIME_IDENT@209..211 "'a" WHITESPACE@211..212 " " PATH_TYPE@212..213 PATH@212..213 @@ -277,7 +277,7 @@ SOURCE_FILE@0..374 L_ANGLE@261..262 "<" LIFETIME_PARAM@262..264 LIFETIME@262..264 - LIFETIME_IDENT@262..264 "\'a" + LIFETIME_IDENT@262..264 "'a" R_ANGLE@264..265 ">" WHITESPACE@265..266 " " PATH_TYPE@266..285 @@ -288,7 +288,7 @@ SOURCE_FILE@0..374 REF_TYPE@267..272 AMP@267..268 "&" LIFETIME@268..270 - LIFETIME_IDENT@268..270 "\'a" + LIFETIME_IDENT@268..270 "'a" WHITESPACE@270..271 " " PATH_TYPE@271..272 PATH@271..272 @@ -348,7 +348,7 @@ SOURCE_FILE@0..374 L_ANGLE@333..334 "<" LIFETIME_PARAM@334..336 LIFETIME@334..336 - LIFETIME_IDENT@334..336 "\'a" + LIFETIME_IDENT@334..336 "'a" R_ANGLE@336..337 ">" WHITESPACE@337..338 " " FOR_TYPE@338..362 @@ -357,7 +357,7 @@ SOURCE_FILE@0..374 L_ANGLE@341..342 "<" LIFETIME_PARAM@342..344 LIFETIME@342..344 - LIFETIME_IDENT@342..344 "\'b" + LIFETIME_IDENT@342..344 "'b" R_ANGLE@344..345 ">" WHITESPACE@345..346 " " FN_PTR_TYPE@346..362 @@ -368,7 +368,7 @@ SOURCE_FILE@0..374 REF_TYPE@349..354 AMP@349..350 "&" LIFETIME@350..352 - LIFETIME_IDENT@350..352 "\'a" + LIFETIME_IDENT@350..352 "'a" WHITESPACE@352..353 " " PATH_TYPE@353..354 PATH@353..354 @@ -381,7 +381,7 @@ SOURCE_FILE@0..374 REF_TYPE@356..361 AMP@356..357 "&" LIFETIME@357..359 - LIFETIME_IDENT@357..359 "\'b" + LIFETIME_IDENT@357..359 "'b" WHITESPACE@359..360 " " PATH_TYPE@360..361 PATH@360..361 diff --git a/crates/syntax/test_data/parser/ok/0069_multi_trait_object.rast b/crates/syntax/test_data/parser/ok/0069_multi_trait_object.rast index 8d3e187ae..026c776e2 100644 --- a/crates/syntax/test_data/parser/ok/0069_multi_trait_object.rast +++ b/crates/syntax/test_data/parser/ok/0069_multi_trait_object.rast @@ -8,7 +8,7 @@ SOURCE_FILE@0..195 L_ANGLE@8..9 "<" LIFETIME_PARAM@9..11 LIFETIME@9..11 - LIFETIME_IDENT@9..11 "\'a" + LIFETIME_IDENT@9..11 "'a" R_ANGLE@11..12 ">" WHITESPACE@12..13 " " EQ@13..14 "=" @@ -16,7 +16,7 @@ SOURCE_FILE@0..195 REF_TYPE@15..36 AMP@15..16 "&" LIFETIME@16..18 - LIFETIME_IDENT@16..18 "\'a" + LIFETIME_IDENT@16..18 "'a" WHITESPACE@18..19 " " PAREN_TYPE@19..36 L_PAREN@19..20 "(" @@ -112,7 +112,7 @@ SOURCE_FILE@0..195 WHITESPACE@105..106 " " TYPE_BOUND@106..113 LIFETIME@106..113 - LIFETIME_IDENT@106..113 "\'static" + LIFETIME_IDENT@106..113 "'static" R_PAREN@113..114 ")" SEMICOLON@114..115 ";" WHITESPACE@115..116 "\n" -- cgit v1.2.3