@@ -15,7 +15,6 @@ use shims::unix::mem::EvalContextExt as _;
15
15
use shims:: unix:: sync:: EvalContextExt as _;
16
16
use shims:: unix:: thread:: EvalContextExt as _;
17
17
18
- use shims:: unix:: android:: foreign_items as android;
19
18
use shims:: unix:: freebsd:: foreign_items as freebsd;
20
19
use shims:: unix:: linux:: foreign_items as linux;
21
20
use shims:: unix:: macos:: foreign_items as macos;
@@ -32,11 +31,10 @@ fn is_dyn_sym(name: &str, target_os: &str) -> bool {
32
31
// Give specific OSes a chance to allow their symbols.
33
32
_ =>
34
33
match target_os {
35
- "android" => android:: is_dyn_sym ( name) ,
36
34
"freebsd" => freebsd:: is_dyn_sym ( name) ,
37
35
"linux" => linux:: is_dyn_sym ( name) ,
38
36
"macos" => macos:: is_dyn_sym ( name) ,
39
- target_os => panic ! ( "unsupported Unix OS {target_os}" ) ,
37
+ _ => false ,
40
38
} ,
41
39
}
42
40
}
@@ -706,7 +704,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
706
704
_ => {
707
705
let target_os = & * this. tcx . sess . target . os ;
708
706
return match target_os {
709
- "android" => android:: EvalContextExt :: emulate_foreign_item_inner ( this, link_name, abi, args, dest) ,
710
707
"freebsd" => freebsd:: EvalContextExt :: emulate_foreign_item_inner ( this, link_name, abi, args, dest) ,
711
708
"linux" => linux:: EvalContextExt :: emulate_foreign_item_inner ( this, link_name, abi, args, dest) ,
712
709
"macos" => macos:: EvalContextExt :: emulate_foreign_item_inner ( this, link_name, abi, args, dest) ,
0 commit comments