fixed a merge-caused error
This commit is contained in:
parent
e4c45427dc
commit
68e8379ec3
@ -307,7 +307,7 @@ impl GenericParams {
|
||||
let param = ConstParamData {
|
||||
name,
|
||||
ty: Interned::new(ty),
|
||||
default: ConstRef::from_const_param(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));
|
||||
|
@ -395,7 +395,7 @@ impl ConstRef {
|
||||
|
||||
pub(crate) fn from_const_param(
|
||||
lower_ctx: &LowerCtx<'_>,
|
||||
param: ast::ConstParam,
|
||||
param: &ast::ConstParam,
|
||||
) -> Option<Self> {
|
||||
let default = param.default_val();
|
||||
match default {
|
||||
|
Loading…
x
Reference in New Issue
Block a user