Skip to content

Commit 8390745

Browse files
committed
Remove useless lifetime parameter.
1 parent ae8c473 commit 8390745

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/constant.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub(crate) fn codegen_tls_ref<'tcx>(
7474
pub(crate) fn eval_mir_constant<'tcx>(
7575
fx: &FunctionCx<'_, '_, 'tcx>,
7676
constant: &ConstOperand<'tcx>,
77-
) -> (ConstValue<'tcx>, Ty<'tcx>) {
77+
) -> (ConstValue, Ty<'tcx>) {
7878
let cv = fx.monomorphize(constant.const_);
7979
// This cannot fail because we checked all required_consts in advance.
8080
let val = cv
@@ -93,7 +93,7 @@ pub(crate) fn codegen_constant_operand<'tcx>(
9393

9494
pub(crate) fn codegen_const_value<'tcx>(
9595
fx: &mut FunctionCx<'_, '_, 'tcx>,
96-
const_val: ConstValue<'tcx>,
96+
const_val: ConstValue,
9797
ty: Ty<'tcx>,
9898
) -> CValue<'tcx> {
9999
let layout = fx.layout_of(ty);
@@ -210,7 +210,7 @@ pub(crate) fn codegen_const_value<'tcx>(
210210
.offset_i64(fx, i64::try_from(offset.bytes()).unwrap()),
211211
layout,
212212
),
213-
ConstValue::Slice { alloc_id, meta, phantom: _ } => {
213+
ConstValue::Slice { alloc_id, meta } => {
214214
let ptr = pointer_for_allocation(fx, alloc_id).get_addr(fx);
215215
let len = fx.bcx.ins().iconst(fx.pointer_type, meta as i64);
216216
CValue::by_val_pair(ptr, len, layout)

0 commit comments

Comments
 (0)