Skip to content

Commit 2aee388

Browse files
authored
Rollup merge of rust-lang#85725 - Smittyvb:rm-24159-workaround, r=RalfJung
Remove unneeded workaround This removes a workaround for rust-lang#24159, which has been fixed.
2 parents f47176b + ff8a387 commit 2aee388

File tree

1 file changed

+3
-5
lines changed
  • compiler/rustc_mir/src/interpret

1 file changed

+3
-5
lines changed

compiler/rustc_mir/src/interpret/place.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ use rustc_target::abi::{Abi, Align, FieldsShape, TagEncoding};
1515
use rustc_target::abi::{HasDataLayout, LayoutOf, Size, VariantIdx, Variants};
1616

1717
use super::{
18-
alloc_range, mir_assign_valid_types, AllocId, AllocMap, AllocRef, AllocRefMut, Allocation,
19-
ConstAlloc, ImmTy, Immediate, InterpCx, InterpResult, LocalValue, Machine, MemoryKind, OpTy,
20-
Operand, Pointer, PointerArithmetic, Scalar, ScalarMaybeUninit,
18+
alloc_range, mir_assign_valid_types, AllocRef, AllocRefMut, ConstAlloc, ImmTy, Immediate,
19+
InterpCx, InterpResult, LocalValue, Machine, MemoryKind, OpTy, Operand, Pointer,
20+
PointerArithmetic, Scalar, ScalarMaybeUninit,
2121
};
2222

2323
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq, HashStable)]
@@ -292,8 +292,6 @@ where
292292
// FIXME: Working around https://github.com/rust-lang/rust/issues/54385
293293
Tag: Debug + Copy + Eq + Hash + 'static,
294294
M: Machine<'mir, 'tcx, PointerTag = Tag>,
295-
// FIXME: Working around https://github.com/rust-lang/rust/issues/24159
296-
M::MemoryMap: AllocMap<AllocId, (MemoryKind<M::MemoryKind>, Allocation<Tag, M::AllocExtra>)>,
297295
{
298296
/// Take a value, which represents a (thin or wide) reference, and make it a place.
299297
/// Alignment is just based on the type. This is the inverse of `MemPlace::to_ref()`.

0 commit comments

Comments
 (0)