Skip to content

Commit 1071390

Browse files
committed
Remove useless lifetime parameter.
1 parent 9d4fa00 commit 1071390

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/alloc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn new_empty_allocation(align: Align) -> Allocation {
3333
#[allow(rustc::usage_of_qualified_ty)]
3434
pub(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)]
4545
pub(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,7 +54,7 @@ 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 { alloc_id, meta, phantom: _ } => {
57+
ConstValue::Slice { alloc_id, meta } => {
5858
alloc::try_new_slice(layout, alloc_id, meta, cx).map(|alloc| alloc.stable(tables, cx))
5959
}
6060
ConstValue::Indirect { alloc_id, offset } => {

0 commit comments

Comments
 (0)