mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
syntax update: the default value of ConstParam
turned from Expr
into ConstArg
This commit is contained in:
parent
52b4392724
commit
4ebdc6f052
14 changed files with 48 additions and 37 deletions
|
@ -307,7 +307,7 @@ impl GenericParams {
|
|||
let param = ConstParamData {
|
||||
name,
|
||||
ty: Interned::new(ty),
|
||||
default: ConstRef::from_default_param_value(lower_ctx, const_param),
|
||||
default: ConstRef::from_const_param(lower_ctx, const_param),
|
||||
};
|
||||
let idx = self.type_or_consts.alloc(param.into());
|
||||
add_param_attrs(idx.into(), ast::GenericParam::ConstParam(const_param));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue