mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 23:25:03 +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
|
@ -217,7 +217,7 @@ pub(super) fn lower_generic_args(
|
|||
}
|
||||
}
|
||||
ast::GenericArg::ConstArg(arg) => {
|
||||
let arg = ConstRef::from_expr_opt(lower_ctx, arg.expr());
|
||||
let arg = ConstRef::from_const_arg(lower_ctx, Some(arg));
|
||||
args.push(GenericArg::Const(arg))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue