mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 04:15:08 +00:00
refactor: Rename const_arg_content to const_arg_expr
This commit is contained in:
parent
972f50da2d
commit
e84453c47f
2 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ fn lifetime_arg(p: &mut Parser) {
|
||||||
m.complete(p, LIFETIME_ARG);
|
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
|
// The tests in here are really for `const_arg`, which wraps the content
|
||||||
// CONST_ARG.
|
// CONST_ARG.
|
||||||
match p.current() {
|
match p.current() {
|
||||||
|
@ -113,7 +113,7 @@ pub(super) fn const_arg_content(p: &mut Parser) {
|
||||||
// type T = S<92>;
|
// type T = S<92>;
|
||||||
pub(super) fn const_arg(p: &mut Parser) {
|
pub(super) fn const_arg(p: &mut Parser) {
|
||||||
let m = p.start();
|
let m = p.start();
|
||||||
const_arg_content(p);
|
const_arg_expr(p);
|
||||||
m.complete(p, CONST_ARG);
|
m.complete(p, CONST_ARG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ fn const_param(p: &mut Parser, m: Marker) {
|
||||||
|
|
||||||
// test const_param_default_expression
|
// test const_param_default_expression
|
||||||
// struct A<const N: i32 = { 1 }>;
|
// struct A<const N: i32 = { 1 }>;
|
||||||
generic_args::const_arg_content(p);
|
generic_args::const_arg_expr(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
m.complete(p, CONST_PARAM);
|
m.complete(p, CONST_PARAM);
|
||||||
|
|
Loading…
Reference in a new issue