Skip to content

Commit e009ee2

Browse files
committed
fix: missed add Os::Linux for supported OSs in fstat
1 parent abefc0b commit e009ee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shims/unix/fs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,10 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
593593
) -> InterpResult<'tcx, Scalar> {
594594
let this = self.eval_context_mut();
595595

596-
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 | Os::Linux)
597597
{
598598
panic!(
599-
"`macos_fbsd_solaris_fstat` should not be called on {}",
599+
"`fstat` should not be called on {}",
600600
this.tcx.sess.target.os
601601
);
602602
}

0 commit comments

Comments
 (0)