Skip to content

Commit e84453c

Browse files
committed
refactor: Rename const_arg_content to const_arg_expr
1 parent 972f50d commit e84453c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/parser/src/grammar/generic_args.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn lifetime_arg(p: &mut Parser) {
7272
m.complete(p, LIFETIME_ARG);
7373
}
7474

75-
pub(super) fn const_arg_content(p: &mut Parser) {
75+
pub(super) fn const_arg_expr(p: &mut Parser) {
7676
// The tests in here are really for `const_arg`, which wraps the content
7777
// CONST_ARG.
7878
match p.current() {
@@ -113,7 +113,7 @@ pub(super) fn const_arg_content(p: &mut Parser) {
113113
// type T = S<92>;
114114
pub(super) fn const_arg(p: &mut Parser) {
115115
let m = p.start();
116-
const_arg_content(p);
116+
const_arg_expr(p);
117117
m.complete(p, CONST_ARG);
118118
}
119119

crates/parser/src/grammar/generic_params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn const_param(p: &mut Parser, m: Marker) {
8585

8686
// test const_param_default_expression
8787
// struct A<const N: i32 = { 1 }>;
88-
generic_args::const_arg_content(p);
88+
generic_args::const_arg_expr(p);
8989
}
9090

9191
m.complete(p, CONST_PARAM);

0 commit comments

Comments
 (0)