We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b229f1 commit 5800becCopy full SHA for 5800bec
src/librustc_mir/interpret/place.rs
@@ -277,6 +277,10 @@ where
277
{
278
/// Take a value, which represents a (thin or fat) reference, and make it a place.
279
/// Alignment is just based on the type. This is the inverse of `MemPlace::to_ref()`.
280
+ ///
281
+ /// Only call this if you are sure the place is "valid" (aligned and inbounds), or do not
282
+ /// want to ever use the place for memory access!
283
+ /// Generally prefer `deref_operand`.
284
pub fn ref_to_mplace(
285
&self,
286
val: ImmTy<'tcx, M::PointerTag>,
0 commit comments