File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -814,7 +814,7 @@ trait EvalContextPrivExt<'tcx, 'ecx>: crate::MiriInterpCxExt<'tcx> {
814
814
info : RetagInfo , // diagnostics info about this retag
815
815
) -> InterpResult < ' tcx , MPlaceTy < ' tcx > > {
816
816
let this = self . eval_context_mut ( ) ;
817
- let size = this. size_and_align_of_mplace ( place) ?. map ( |( size, _) | size) ;
817
+ let size = this. size_and_align_of_val ( place) ?. map ( |( size, _) | size) ;
818
818
// FIXME: If we cannot determine the size (because the unsized tail is an `extern type`),
819
819
// bail out -- we cannot reasonably figure out which memory range to reborrow.
820
820
// See https://github.com/rust-lang/unsafe-code-guidelines/issues/276.
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ trait EvalContextPrivExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
469
469
// - if the pointer is not reborrowed (raw pointer) then we override the size
470
470
// to do a zero-length reborrow.
471
471
let reborrow_size = this
472
- . size_and_align_of_mplace ( place) ?
472
+ . size_and_align_of_val ( place) ?
473
473
. map ( |( size, _) | size)
474
474
. unwrap_or ( place. layout . size ) ;
475
475
trace ! ( "Creating new permission: {:?} with size {:?}" , new_perm, reborrow_size) ;
Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
489
489
trace ! ( "visit_frozen(place={:?}, size={:?})" , * place, size) ;
490
490
debug_assert_eq ! (
491
491
size,
492
- this. size_and_align_of_mplace ( place) ?
492
+ this. size_and_align_of_val ( place) ?
493
493
. map( |( size, _) | size)
494
494
. unwrap_or_else( || place. layout. size)
495
495
) ;
@@ -530,7 +530,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
530
530
trace ! ( "unsafe_cell_action on {:?}" , place. ptr( ) ) ;
531
531
// We need a size to go on.
532
532
let unsafe_cell_size = this
533
- . size_and_align_of_mplace ( place) ?
533
+ . size_and_align_of_val ( place) ?
534
534
. map ( |( size, _) | size)
535
535
// for extern types, just cover what we can
536
536
. unwrap_or_else ( || place. layout . size ) ;
You can’t perform that action at this time.
0 commit comments