@@ -74,7 +74,7 @@ pub(crate) fn codegen_tls_ref<'tcx>(
74
74
pub ( crate ) fn eval_mir_constant < ' tcx > (
75
75
fx : & FunctionCx < ' _ , ' _ , ' tcx > ,
76
76
constant : & ConstOperand < ' tcx > ,
77
- ) -> ( ConstValue < ' tcx > , Ty < ' tcx > ) {
77
+ ) -> ( ConstValue , Ty < ' tcx > ) {
78
78
let cv = fx. monomorphize ( constant. const_ ) ;
79
79
// This cannot fail because we checked all required_consts in advance.
80
80
let val = cv
@@ -93,7 +93,7 @@ pub(crate) fn codegen_constant_operand<'tcx>(
93
93
94
94
pub ( crate ) fn codegen_const_value < ' tcx > (
95
95
fx : & mut FunctionCx < ' _ , ' _ , ' tcx > ,
96
- const_val : ConstValue < ' tcx > ,
96
+ const_val : ConstValue ,
97
97
ty : Ty < ' tcx > ,
98
98
) -> CValue < ' tcx > {
99
99
let layout = fx. layout_of ( ty) ;
@@ -210,7 +210,7 @@ pub(crate) fn codegen_const_value<'tcx>(
210
210
. offset_i64 ( fx, i64:: try_from ( offset. bytes ( ) ) . unwrap ( ) ) ,
211
211
layout,
212
212
) ,
213
- ConstValue :: Slice { alloc_id, meta, phantom : _ } => {
213
+ ConstValue :: Slice { alloc_id, meta } => {
214
214
let ptr = pointer_for_allocation ( fx, alloc_id) . get_addr ( fx) ;
215
215
let len = fx. bcx . ins ( ) . iconst ( fx. pointer_type , meta as i64 ) ;
216
216
CValue :: by_val_pair ( ptr, len, layout)
0 commit comments