Skip to content

Commit f76c608

Browse files
committed
Auto merge of #2758 - RalfJung:rustup, r=RalfJung
Rustup
2 parents 73452b3 + f65bfb6 commit f76c608

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
279f1c9d8c26a8d227ae8ab806d262bb784b251b
1+
9e75dddf609c0201d03f9792e850f95d6a283d11

tests/pass-dep/shims/libc-fs-with-isolation.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ fn main() {
2222
}
2323

2424
// test `stat`
25-
assert_eq!(fs::metadata("foo.txt").unwrap_err().kind(), ErrorKind::PermissionDenied);
25+
let err = fs::metadata("foo.txt").unwrap_err();
26+
assert_eq!(err.kind(), ErrorKind::PermissionDenied);
2627
// check that it is the right kind of `PermissionDenied`
27-
assert_eq!(Error::last_os_error().raw_os_error(), Some(libc::EACCES));
28+
assert_eq!(err.raw_os_error(), Some(libc::EACCES));
2829
}

0 commit comments

Comments
 (0)