11
11
extern crate tracing;
12
12
13
13
// The rustc crates we need
14
+ extern crate rustc_abi;
14
15
extern crate rustc_data_structures;
15
16
extern crate rustc_driver;
16
17
extern crate rustc_hir;
@@ -21,14 +22,14 @@ extern crate rustc_metadata;
21
22
extern crate rustc_middle;
22
23
extern crate rustc_session;
23
24
extern crate rustc_span;
24
- extern crate rustc_target;
25
25
26
26
use std:: env:: { self , VarError } ;
27
27
use std:: num:: NonZero ;
28
28
use std:: path:: PathBuf ;
29
29
use std:: str:: FromStr ;
30
30
31
31
use miri:: { BacktraceStyle , BorrowTrackerMethod , ProvenanceMode , RetagFields , ValidationMode } ;
32
+ use rustc_abi:: ExternAbi ;
32
33
use rustc_data_structures:: sync:: Lrc ;
33
34
use rustc_driver:: Compilation ;
34
35
use rustc_hir:: def_id:: LOCAL_CRATE ;
@@ -47,7 +48,6 @@ use rustc_session::config::{CrateType, EntryFnType, ErrorOutputType, OptLevel};
47
48
use rustc_session:: search_paths:: PathKind ;
48
49
use rustc_session:: { CtfeBacktrace , EarlyDiagCtxt } ;
49
50
use rustc_span:: def_id:: DefId ;
50
- use rustc_target:: spec:: abi:: Abi ;
51
51
use tracing:: debug;
52
52
53
53
struct MiriCompilerCalls {
@@ -368,7 +368,7 @@ fn entry_fn(tcx: TyCtxt<'_>) -> (DefId, EntryFnType) {
368
368
tcx. types . isize ,
369
369
false ,
370
370
hir:: Safety :: Safe ,
371
- Abi :: Rust ,
371
+ ExternAbi :: Rust ,
372
372
) ) ;
373
373
374
374
let correct_func_sig = check_function_signature (
0 commit comments