@@ -15,7 +15,6 @@ use shims::unix::mem::EvalContextExt as _;
1515use shims:: unix:: sync:: EvalContextExt as _;
1616use shims:: unix:: thread:: EvalContextExt as _;
1717
18- use shims:: unix:: android:: foreign_items as android;
1918use shims:: unix:: freebsd:: foreign_items as freebsd;
2019use shims:: unix:: linux:: foreign_items as linux;
2120use shims:: unix:: macos:: foreign_items as macos;
@@ -32,11 +31,10 @@ fn is_dyn_sym(name: &str, target_os: &str) -> bool {
3231 // Give specific OSes a chance to allow their symbols.
3332 _ =>
3433 match target_os {
35- "android" => android:: is_dyn_sym ( name) ,
3634 "freebsd" => freebsd:: is_dyn_sym ( name) ,
3735 "linux" => linux:: is_dyn_sym ( name) ,
3836 "macos" => macos:: is_dyn_sym ( name) ,
39- target_os => panic ! ( "unsupported Unix OS {target_os}" ) ,
37+ _ => false ,
4038 } ,
4139 }
4240}
@@ -706,7 +704,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
706704 _ => {
707705 let target_os = & * this. tcx . sess . target . os ;
708706 return match target_os {
709- "android" => android:: EvalContextExt :: emulate_foreign_item_inner ( this, link_name, abi, args, dest) ,
710707 "freebsd" => freebsd:: EvalContextExt :: emulate_foreign_item_inner ( this, link_name, abi, args, dest) ,
711708 "linux" => linux:: EvalContextExt :: emulate_foreign_item_inner ( this, link_name, abi, args, dest) ,
712709 "macos" => macos:: EvalContextExt :: emulate_foreign_item_inner ( this, link_name, abi, args, dest) ,
0 commit comments