@@ -502,15 +502,9 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
502502 let default = |ecx : & mut MiriInterpCx < ' tcx > | {
503503 // Only call `check_shim` when `#[global_allocator]` isn't used. When that
504504 // 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) ?;
507506 let size = ecx. read_target_usize ( size) ?;
508507 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)
514508
515509 ecx. check_rustc_alloc_request ( size, align) ?;
516510
@@ -568,17 +562,10 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
568562 // See the comment for `__rust_alloc` why `check_shim` is only called in the
569563 // default case.
570564 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) ?;
573566 let ptr = ecx. read_pointer ( ptr) ?;
574567 let old_size = ecx. read_target_usize ( old_size) ?;
575568 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)
582569
583570 let memory_kind = match link_name. as_str ( ) {
584571 "__rust_dealloc" => MiriMemoryKind :: Rust ,
0 commit comments