@@ -535,11 +535,11 @@ pub struct MiriMachine<'mir, 'tcx> {
535535 // The total number of blocks that have been executed.
536536 pub ( crate ) basic_block_count : u64 ,
537537
538- /// Handle of the optional shared object file for external functions.
538+ /// Handle of the optional shared object file for native functions.
539539 #[ cfg( target_os = "linux" ) ]
540- pub external_so_lib : Option < ( libloading:: Library , std:: path:: PathBuf ) > ,
540+ pub native_lib : Option < ( libloading:: Library , std:: path:: PathBuf ) > ,
541541 #[ cfg( not( target_os = "linux" ) ) ]
542- pub external_so_lib : Option < !> ,
542+ pub native_lib : Option < !> ,
543543
544544 /// Run a garbage collector for BorTags every N basic blocks.
545545 pub ( crate ) gc_interval : u32 ,
@@ -665,7 +665,7 @@ impl<'mir, 'tcx> MiriMachine<'mir, 'tcx> {
665665 basic_block_count : 0 ,
666666 clock : Clock :: new ( config. isolated_op == IsolatedOp :: Allow ) ,
667667 #[ cfg( target_os = "linux" ) ]
668- external_so_lib : config. external_so_file . as_ref ( ) . map ( |lib_file_path| {
668+ native_lib : config. native_lib . as_ref ( ) . map ( |lib_file_path| {
669669 let target_triple = layout_cx. tcx . sess . opts . target_triple . triple ( ) ;
670670 // Check if host target == the session target.
671671 if env ! ( "TARGET" ) != target_triple {
@@ -687,7 +687,7 @@ impl<'mir, 'tcx> MiriMachine<'mir, 'tcx> {
687687 )
688688 } ) ,
689689 #[ cfg( not( target_os = "linux" ) ) ]
690- external_so_lib : config. external_so_file . as_ref ( ) . map ( |_| {
690+ native_lib : config. native_lib . as_ref ( ) . map ( |_| {
691691 panic ! ( "loading external .so files is only supported on Linux" )
692692 } ) ,
693693 gc_interval : config. gc_interval ,
@@ -802,7 +802,7 @@ impl VisitProvenance for MiriMachine<'_, '_> {
802802 preemption_rate : _,
803803 report_progress : _,
804804 basic_block_count : _,
805- external_so_lib : _,
805+ native_lib : _,
806806 gc_interval : _,
807807 since_gc : _,
808808 num_cpus : _,
0 commit comments