@@ -33,7 +33,7 @@ fn new_empty_allocation(align: Align) -> Allocation {
3333#[ allow( rustc:: usage_of_qualified_ty) ]
3434pub ( crate ) fn new_allocation < ' tcx > (
3535 ty : rustc_middle:: ty:: Ty < ' tcx > ,
36- const_value : ConstValue < ' tcx > ,
36+ const_value : ConstValue ,
3737 tables : & mut Tables < ' tcx , BridgeTys > ,
3838 cx : & CompilerCtxt < ' tcx , BridgeTys > ,
3939) -> Allocation {
@@ -44,7 +44,7 @@ pub(crate) fn new_allocation<'tcx>(
4444#[ allow( rustc:: usage_of_qualified_ty) ]
4545pub ( crate ) fn try_new_allocation < ' tcx > (
4646 ty : rustc_middle:: ty:: Ty < ' tcx > ,
47- const_value : ConstValue < ' tcx > ,
47+ const_value : ConstValue ,
4848 tables : & mut Tables < ' tcx , BridgeTys > ,
4949 cx : & CompilerCtxt < ' tcx , BridgeTys > ,
5050) -> Result < Allocation , Error > {
@@ -54,8 +54,8 @@ pub(crate) fn try_new_allocation<'tcx>(
5454 alloc:: try_new_scalar ( layout, scalar, cx) . map ( |alloc| alloc. stable ( tables, cx) )
5555 }
5656 ConstValue :: ZeroSized => Ok ( new_empty_allocation ( layout. align . abi ) ) ,
57- ConstValue :: Slice { data , meta } => {
58- alloc:: try_new_slice ( layout, data , meta, cx) . map ( |alloc| alloc. stable ( tables, cx) )
57+ ConstValue :: Slice { alloc_id , meta } => {
58+ alloc:: try_new_slice ( layout, alloc_id , meta, cx) . map ( |alloc| alloc. stable ( tables, cx) )
5959 }
6060 ConstValue :: Indirect { alloc_id, offset } => {
6161 let alloc = alloc:: try_new_indirect ( alloc_id, cx) ;
0 commit comments