fixed a merge-caused error

This commit is contained in:
ponyii 2023-08-08 22:16:28 +04:00
parent e4c45427dc
commit 68e8379ec3
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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 {