@@ -33,7 +33,7 @@ fn new_empty_allocation(align: Align) -> Allocation {
33
33
#[ allow( rustc:: usage_of_qualified_ty) ]
34
34
pub ( crate ) fn new_allocation < ' tcx > (
35
35
ty : rustc_middle:: ty:: Ty < ' tcx > ,
36
- const_value : ConstValue < ' tcx > ,
36
+ const_value : ConstValue ,
37
37
tables : & mut Tables < ' tcx , BridgeTys > ,
38
38
cx : & CompilerCtxt < ' tcx , BridgeTys > ,
39
39
) -> Allocation {
@@ -44,7 +44,7 @@ pub(crate) fn new_allocation<'tcx>(
44
44
#[ allow( rustc:: usage_of_qualified_ty) ]
45
45
pub ( crate ) fn try_new_allocation < ' tcx > (
46
46
ty : rustc_middle:: ty:: Ty < ' tcx > ,
47
- const_value : ConstValue < ' tcx > ,
47
+ const_value : ConstValue ,
48
48
tables : & mut Tables < ' tcx , BridgeTys > ,
49
49
cx : & CompilerCtxt < ' tcx , BridgeTys > ,
50
50
) -> Result < Allocation , Error > {
@@ -54,7 +54,7 @@ pub(crate) fn try_new_allocation<'tcx>(
54
54
alloc:: try_new_scalar ( layout, scalar, cx) . map ( |alloc| alloc. stable ( tables, cx) )
55
55
}
56
56
ConstValue :: ZeroSized => Ok ( new_empty_allocation ( layout. align . abi ) ) ,
57
- ConstValue :: Slice { alloc_id, meta, phantom : _ } => {
57
+ ConstValue :: Slice { alloc_id, meta } => {
58
58
alloc:: try_new_slice ( layout, alloc_id, meta, cx) . map ( |alloc| alloc. stable ( tables, cx) )
59
59
}
60
60
ConstValue :: Indirect { alloc_id, offset } => {
0 commit comments