Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 68e8379

Browse files
committed
fixed a merge-caused error
1 parent e4c4542 commit 68e8379

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/hir-def/src/generics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ impl GenericParams {
307307
let param = ConstParamData {
308308
name,
309309
ty: Interned::new(ty),
310-
default: ConstRef::from_const_param(lower_ctx, const_param),
310+
default: ConstRef::from_const_param(lower_ctx, &const_param),
311311
};
312312
let idx = self.type_or_consts.alloc(param.into());
313313
add_param_attrs(idx.into(), ast::GenericParam::ConstParam(const_param));

crates/hir-def/src/hir/type_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ impl ConstRef {
395395

396396
pub(crate) fn from_const_param(
397397
lower_ctx: &LowerCtx<'_>,
398-
param: ast::ConstParam,
398+
param: &ast::ConstParam,
399399
) -> Option<Self> {
400400
let default = param.default_val();
401401
match default {

0 commit comments

Comments
 (0)