mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Use ConstArg
instead of Expr
for AstId
of InTypeConstId
This commit is contained in:
parent
d9136df9e5
commit
f8594f78bb
13 changed files with 29 additions and 28 deletions
|
@ -153,7 +153,9 @@ fn array_or_slice_type(p: &mut Parser<'_>) {
|
|||
// type T = [(); 92];
|
||||
T![;] => {
|
||||
p.bump(T![;]);
|
||||
let m = p.start();
|
||||
expressions::expr(p);
|
||||
m.complete(p, CONST_ARG);
|
||||
p.expect(T![']']);
|
||||
ARRAY_TYPE
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue