@@ -530,7 +530,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
530530 ) -> InterpResult < ' tcx , Scalar > {
531531 let this = self . eval_context_mut ( ) ;
532532
533- if !matches ! ( & this. tcx. sess. target. os, Os :: MacOs | Os :: FreeBsd | Os :: Solaris | Os :: Illumos ) {
533+ if !matches ! ( & this. tcx. sess. target. os, Os :: MacOs | Os :: FreeBsd | Os :: Solaris | Os :: Illumos )
534+ {
534535 panic ! ( "`macos_fbsd_solaris_stat` should not be called on {}" , this. tcx. sess. target. os) ;
535536 }
536537
@@ -560,7 +561,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
560561 ) -> InterpResult < ' tcx , Scalar > {
561562 let this = self . eval_context_mut ( ) ;
562563
563- if !matches ! ( & this. tcx. sess. target. os, Os :: MacOs | Os :: FreeBsd | Os :: Solaris | Os :: Illumos ) {
564+ if !matches ! ( & this. tcx. sess. target. os, Os :: MacOs | Os :: FreeBsd | Os :: Solaris | Os :: Illumos )
565+ {
564566 panic ! (
565567 "`macos_fbsd_solaris_lstat` should not be called on {}" ,
566568 this. tcx. sess. target. os
@@ -591,7 +593,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
591593 ) -> InterpResult < ' tcx , Scalar > {
592594 let this = self . eval_context_mut ( ) ;
593595
594- if !matches ! ( & this. tcx. sess. target. os, Os :: MacOs | Os :: FreeBsd | Os :: Solaris | Os :: Illumos ) {
596+ if !matches ! ( & this. tcx. sess. target. os, Os :: MacOs | Os :: FreeBsd | Os :: Solaris | Os :: Illumos )
597+ {
595598 panic ! (
596599 "`macos_fbsd_solaris_fstat` should not be called on {}" ,
597600 this. tcx. sess. target. os
@@ -904,7 +907,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
904907 fn readdir64 ( & mut self , dirent_type : & str , dirp_op : & OpTy < ' tcx > ) -> InterpResult < ' tcx , Scalar > {
905908 let this = self . eval_context_mut ( ) ;
906909
907- if !matches ! ( & this. tcx. sess. target. os, Os :: Linux | Os :: Solaris | Os :: Illumos | Os :: FreeBsd ) {
910+ if !matches ! ( & this. tcx. sess. target. os, Os :: Linux | Os :: Solaris | Os :: Illumos | Os :: FreeBsd )
911+ {
908912 panic ! ( "`linux_solaris_readdir64` should not be called on {}" , this. tcx. sess. target. os) ;
909913 }
910914
0 commit comments