From 6033b66ce00f59ebc95a00db57099c9d898b5e00 Mon Sep 17 00:00:00 2001 From: Young-Flash Date: Fri, 12 Jan 2024 17:42:18 +0800 Subject: [PATCH] test: correct expected test result --- crates/parser/test_data/parser/err/0036_partial_use.rast | 8 ++------ .../inline/err/0026_use_tree_list_err_recovery.rast | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/crates/parser/test_data/parser/err/0036_partial_use.rast b/crates/parser/test_data/parser/err/0036_partial_use.rast index ad4bc89e83..e27c941793 100644 --- a/crates/parser/test_data/parser/err/0036_partial_use.rast +++ b/crates/parser/test_data/parser/err/0036_partial_use.rast @@ -20,8 +20,7 @@ SOURCE_FILE PATH_SEGMENT NAME_REF IDENT "Error" - ERROR - SEMICOLON ";" + SEMICOLON ";" WHITESPACE "\n" USE USE_KW "use" @@ -38,7 +37,4 @@ SOURCE_FILE IDENT "io" SEMICOLON ";" WHITESPACE "\n" -error 22: expected COMMA -error 22: expected one of `*`, `::`, `{`, `self`, `super` or an identifier -error 23: expected R_CURLY -error 23: expected SEMICOLON +error 22: expected R_CURLY diff --git a/crates/parser/test_data/parser/inline/err/0026_use_tree_list_err_recovery.rast b/crates/parser/test_data/parser/inline/err/0026_use_tree_list_err_recovery.rast index 7732bdf72f..cb90b093ba 100644 --- a/crates/parser/test_data/parser/inline/err/0026_use_tree_list_err_recovery.rast +++ b/crates/parser/test_data/parser/inline/err/0026_use_tree_list_err_recovery.rast @@ -10,8 +10,7 @@ SOURCE_FILE PATH_SEGMENT NAME_REF IDENT "a" - ERROR - SEMICOLON ";" + SEMICOLON ";" WHITESPACE "\n" USE USE_KW "use" @@ -44,7 +43,4 @@ SOURCE_FILE L_CURLY "{" R_CURLY "}" WHITESPACE "\n" -error 6: expected COMMA -error 6: expected one of `*`, `::`, `{`, `self`, `super` or an identifier -error 7: expected R_CURLY -error 7: expected SEMICOLON +error 6: expected R_CURLY