@@ -122,21 +122,6 @@ impl<Tag> MemPlace<Tag> {
122
122
Self :: from_scalar_ptr ( ptr. into ( ) , align)
123
123
}
124
124
125
- #[ inline( always) ]
126
- pub fn to_scalar_ptr_align ( self ) -> ( Scalar < Tag > , Align ) {
127
- assert ! ( self . meta. is_none( ) ) ;
128
- ( self . ptr , self . align )
129
- }
130
-
131
- /// metact the ptr part of the mplace
132
- #[ inline( always) ]
133
- pub fn to_ptr ( self ) -> InterpResult < ' tcx , Pointer < Tag > > {
134
- // At this point, we forget about the alignment information --
135
- // the place has been turned into a reference, and no matter where it came from,
136
- // it now must be aligned.
137
- self . to_scalar_ptr_align ( ) . 0 . to_ptr ( )
138
- }
139
-
140
125
/// Turn a mplace into a (thin or fat) pointer, as a reference, pointing to the same space.
141
126
/// This is the inverse of `ref_to_mplace`.
142
127
#[ inline( always) ]
@@ -246,7 +231,7 @@ impl<'tcx, Tag: ::std::fmt::Debug + Copy> OpTy<'tcx, Tag> {
246
231
}
247
232
}
248
233
249
- impl < ' tcx , Tag : :: std:: fmt:: Debug > Place < Tag > {
234
+ impl < Tag : :: std:: fmt:: Debug > Place < Tag > {
250
235
/// Produces a Place that will error if attempted to be read from or written to
251
236
#[ inline( always) ]
252
237
pub fn null ( cx : & impl HasDataLayout ) -> Self {
@@ -271,16 +256,6 @@ impl<'tcx, Tag: ::std::fmt::Debug> Place<Tag> {
271
256
272
257
}
273
258
}
274
-
275
- #[ inline]
276
- pub fn to_scalar_ptr_align ( self ) -> ( Scalar < Tag > , Align ) {
277
- self . assert_mem_place ( ) . to_scalar_ptr_align ( )
278
- }
279
-
280
- #[ inline]
281
- pub fn to_ptr ( self ) -> InterpResult < ' tcx , Pointer < Tag > > {
282
- self . assert_mem_place ( ) . to_ptr ( )
283
- }
284
259
}
285
260
286
261
impl < ' tcx , Tag : :: std:: fmt:: Debug > PlaceTy < ' tcx , Tag > {
0 commit comments