@@ -502,15 +502,9 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
502
502
let default = |ecx : & mut MiriInterpCx < ' tcx > | {
503
503
// Only call `check_shim` when `#[global_allocator]` isn't used. When that
504
504
// macro is used, we act like no shim exists, so that the exported function can run.
505
- <<<<<<< HEAD
506
- let [ size , align ] = ecx. check_shim ( abi , ExternAbi :: Rust , link_name , args ) ?;
505
+ let [ size, align] = ecx. check_shim ( abi, Conv :: Rust , link_name, args) ?;
507
506
let size = ecx. read_target_usize ( size) ?;
508
507
let align = ecx. read_target_usize ( align) ?;
509
- =======
510
- let [ size , align ] = this. check_shim ( abi , Conv :: Rust , link_name , args ) ?;
511
- let size = this. read_target_usize ( size ) ?;
512
- let align = this. read_target_usize ( align ) ?;
513
- >>>>>>> d568d46c7e3 ( Pass FnAbi to find_mir_or_eval_fn)
514
508
515
509
ecx. check_rustc_alloc_request ( size, align) ?;
516
510
@@ -568,17 +562,10 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
568
562
// See the comment for `__rust_alloc` why `check_shim` is only called in the
569
563
// default case.
570
564
let [ ptr, old_size, align] =
571
- <<<<<<< HEAD
572
- ecx. check_shim( abi , ExternAbi :: Rust , link_name , args ) ?;
565
+ ecx. check_shim ( abi, Conv :: Rust , link_name, args) ?;
573
566
let ptr = ecx. read_pointer ( ptr) ?;
574
567
let old_size = ecx. read_target_usize ( old_size) ?;
575
568
let align = ecx. read_target_usize ( align) ?;
576
- =======
577
- this. check_shim ( abi , Conv :: Rust , link_name , args ) ?;
578
- let ptr = this. read_pointer ( ptr ) ?;
579
- let old_size = this. read_target_usize ( old_size ) ?;
580
- let align = this. read_target_usize ( align ) ?;
581
- >>>>>>> d568d46c7e3 ( Pass FnAbi to find_mir_or_eval_fn)
582
569
583
570
let memory_kind = match link_name. as_str ( ) {
584
571
"__rust_dealloc" => MiriMemoryKind :: Rust ,
0 commit comments