Skip to content

Commit 6da4383

Browse files
committed
Add a layout argument to enforce_validity.
This is in preparation of checking the validity only of certain types.
1 parent 0671314 commit 6da4383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
812812
}
813813

814814
#[inline(always)]
815-
fn enforce_validity(ecx: &MiriInterpCx<'mir, 'tcx>) -> bool {
815+
fn enforce_validity(ecx: &MiriInterpCx<'mir, 'tcx>, _layout: TyAndLayout<'tcx>) -> bool {
816816
ecx.machine.validate
817817
}
818818

0 commit comments

Comments
 (0)