@@ -14,7 +14,6 @@ use rustc_index::IndexVec;
1414use rustc_middle:: middle:: codegen_fn_attrs:: CodegenFnAttrFlags ;
1515use rustc_middle:: middle:: dependency_format:: Linkage ;
1616use rustc_middle:: middle:: exported_symbols:: ExportedSymbol ;
17- use rustc_middle:: mir;
1817use rustc_middle:: ty:: layout:: { FnAbiOf , LayoutOf , MaybeResult , TyAndLayout } ;
1918use rustc_middle:: ty:: { self , FloatTy , IntTy , Ty , TyCtxt , UintTy } ;
2019use rustc_session:: config:: CrateType ;
@@ -949,21 +948,6 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
949948 crate_name == "std" || crate_name == "std_miri_test"
950949 }
951950
952- /// Handler that should be called when an unsupported foreign item is encountered.
953- /// This function will either panic within the context of the emulated application
954- /// or return an error in the Miri process context
955- fn handle_unsupported_foreign_item ( & mut self , error_msg : String ) -> InterpResult < ' tcx , ( ) > {
956- let this = self . eval_context_mut ( ) ;
957- if this. machine . panic_on_unsupported {
958- // message is slightly different here to make automated analysis easier
959- let error_msg = format ! ( "unsupported Miri functionality: {error_msg}" ) ;
960- this. start_panic ( error_msg. as_ref ( ) , mir:: UnwindAction :: Continue ) ?;
961- interp_ok ( ( ) )
962- } else {
963- throw_machine_stop ! ( TerminationInfo :: UnsupportedForeignItem ( error_msg) ) ;
964- }
965- }
966-
967951 fn check_abi_and_shim_symbol_clash (
968952 & mut self ,
969953 abi : Abi ,
0 commit comments