From e84453c47f847f92a038eceb5071a308d2515fa7 Mon Sep 17 00:00:00 2001 From: Steven Joruk Date: Fri, 11 Mar 2022 20:38:03 +0000 Subject: [PATCH] refactor: Rename const_arg_content to const_arg_expr --- crates/parser/src/grammar/generic_args.rs | 4 ++-- crates/parser/src/grammar/generic_params.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/parser/src/grammar/generic_args.rs b/crates/parser/src/grammar/generic_args.rs index bba312009b..762d0218c1 100644 --- a/crates/parser/src/grammar/generic_args.rs +++ b/crates/parser/src/grammar/generic_args.rs @@ -72,7 +72,7 @@ fn lifetime_arg(p: &mut Parser) { m.complete(p, LIFETIME_ARG); } -pub(super) fn const_arg_content(p: &mut Parser) { +pub(super) fn const_arg_expr(p: &mut Parser) { // The tests in here are really for `const_arg`, which wraps the content // CONST_ARG. match p.current() { @@ -113,7 +113,7 @@ pub(super) fn const_arg_content(p: &mut Parser) { // type T = S<92>; pub(super) fn const_arg(p: &mut Parser) { let m = p.start(); - const_arg_content(p); + const_arg_expr(p); m.complete(p, CONST_ARG); } diff --git a/crates/parser/src/grammar/generic_params.rs b/crates/parser/src/grammar/generic_params.rs index 1c5af92b87..9797de1ff0 100644 --- a/crates/parser/src/grammar/generic_params.rs +++ b/crates/parser/src/grammar/generic_params.rs @@ -85,7 +85,7 @@ fn const_param(p: &mut Parser, m: Marker) { // test const_param_default_expression // struct A; - generic_args::const_arg_content(p); + generic_args::const_arg_expr(p); } m.complete(p, CONST_PARAM);