Skip to content

Commit 5449e0f

Browse files
committed
comment explaining force_align usage
1 parent 41d5a77 commit 5449e0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_mir/interpret/place.rs

+3
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ where
358358

359359
/// Return the "access-checked" version of this `MPlace`, where for non-ZST
360360
/// this is definitely a `Pointer`.
361+
///
362+
/// `force_align` must only be used when correct alignment does not matter,
363+
/// like in Stacked Borrows.
361364
pub fn mplace_access_checked(
362365
&self,
363366
mut place: MPlaceTy<'tcx, M::PointerTag>,

0 commit comments

Comments
 (0)