mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
refactor: Rename const_arg_content to const_arg_expr
This commit is contained in:
parent
972f50da2d
commit
e84453c47f
@ -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);
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ fn const_param(p: &mut Parser, m: Marker) {
|
||||
|
||||
// test const_param_default_expression
|
||||
// struct A<const N: i32 = { 1 }>;
|
||||
generic_args::const_arg_content(p);
|
||||
generic_args::const_arg_expr(p);
|
||||
}
|
||||
|
||||
m.complete(p, CONST_PARAM);
|
||||
|
Loading…
Reference in New Issue
Block a user