Unnamed repository; edit this file 'description' to name the repository.
Rename tuple_expr_leading_comma to tuple_expr_empty_expr
A4-Tacks 3 weeks ago
parent 4854f38 · commit c4064f8
-rw-r--r--crates/parser/src/grammar/expressions/atom.rs2
-rw-r--r--crates/parser/test_data/generated/runner.rs4
-rw-r--r--crates/parser/test_data/parser/inline/err/tuple_expr_empty_expr.rast (renamed from crates/parser/test_data/parser/inline/err/tuple_expr_leading_comma.rast)0
-rw-r--r--crates/parser/test_data/parser/inline/err/tuple_expr_empty_expr.rs (renamed from crates/parser/test_data/parser/inline/err/tuple_expr_leading_comma.rs)0
4 files changed, 3 insertions, 3 deletions
diff --git a/crates/parser/src/grammar/expressions/atom.rs b/crates/parser/src/grammar/expressions/atom.rs
index 52dfb049aa..cabdd74b09 100644
--- a/crates/parser/src/grammar/expressions/atom.rs
+++ b/crates/parser/src/grammar/expressions/atom.rs
@@ -217,7 +217,7 @@ fn tuple_expr(p: &mut Parser<'_>) -> CompletedMarker {
let mut saw_expr = false;
while !p.at(EOF) && !p.at(T![')']) {
- // test_err tuple_expr_leading_comma
+ // test_err tuple_expr_empty_expr
// fn foo() {
// (,);
// (a, , b);
diff --git a/crates/parser/test_data/generated/runner.rs b/crates/parser/test_data/generated/runner.rs
index ecb9ece67a..845119d922 100644
--- a/crates/parser/test_data/generated/runner.rs
+++ b/crates/parser/test_data/generated/runner.rs
@@ -958,8 +958,8 @@ mod err {
#[test]
fn top_level_let() { run_and_expect_errors("test_data/parser/inline/err/top_level_let.rs"); }
#[test]
- fn tuple_expr_leading_comma() {
- run_and_expect_errors("test_data/parser/inline/err/tuple_expr_leading_comma.rs");
+ fn tuple_expr_empty_expr() {
+ run_and_expect_errors("test_data/parser/inline/err/tuple_expr_empty_expr.rs");
}
#[test]
fn tuple_field_list_recovery() {
diff --git a/crates/parser/test_data/parser/inline/err/tuple_expr_leading_comma.rast b/crates/parser/test_data/parser/inline/err/tuple_expr_empty_expr.rast
index 2ccd04c321..2ccd04c321 100644
--- a/crates/parser/test_data/parser/inline/err/tuple_expr_leading_comma.rast
+++ b/crates/parser/test_data/parser/inline/err/tuple_expr_empty_expr.rast
diff --git a/crates/parser/test_data/parser/inline/err/tuple_expr_leading_comma.rs b/crates/parser/test_data/parser/inline/err/tuple_expr_empty_expr.rs
index 37f756ffa6..37f756ffa6 100644
--- a/crates/parser/test_data/parser/inline/err/tuple_expr_leading_comma.rs
+++ b/crates/parser/test_data/parser/inline/err/tuple_expr_empty_expr.rs