Skip to content

Commit 0b5a305

Browse files
committed
small corrections
1 parent 91cf68f commit 0b5a305

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/shims/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
337337
let this = self.eval_context_mut();
338338

339339
if this.tcx.sess.target.target.target_os.to_lowercase() != "macos" {
340-
throw_unsup_format!("The `stat` shim is only available for `macos` targets.")
340+
throw_unsup_format!("The `stat` and `lstat` shims are only available for `macos` targets.")
341341
}
342342

343343
let path_scalar = this.read_scalar(path_op)?.not_undef()?;

tests/run-pass/fs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ fn main() {
2222
let symlink_path = tmp.join("miri_test_fs_symlink.txt");
2323
let bytes = b"Hello, World!\n";
2424
// Clean the paths for robustness.
25-
remove_file(&path).unwrap_or(());
26-
remove_file(&symlink_path).unwrap_or(());
25+
remove_file(&path).ok();
26+
remove_file(&symlink_path).ok();
2727

2828
// Test creating, writing and closing a file (closing is tested when `file` is dropped).
2929
let mut file = File::create(&path).unwrap();

0 commit comments

Comments
 (0)