@@ -74,7 +74,7 @@ pub(crate) fn codegen_tls_ref<'tcx>(
7474pub ( 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
9494pub ( 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