Skip to content

Commit 0168d52

Browse files
committed
try_exists was stabilized as ::exists
1 parent 307c945 commit 0168d52

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

crates/0-std-tests/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(fs_try_exists)]
2-
31
mod tests_fs;
42
mod tests_pthread;
53
mod tests_tcp;

crates/0-std-tests/src/tests_fs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mod tests {
66

77
impl Drop for FsScope {
88
fn drop(&mut self) {
9-
if fs::try_exists("ux0:/data/.rust_test").unwrap_or(false) {
9+
if fs::exists("ux0:/data/.rust_test").unwrap_or(false) {
1010
fs::remove_dir_all("ux0:/data/.rust_test").expect("unable to cleanup");
1111
}
1212
}
@@ -54,7 +54,7 @@ mod tests {
5454
assert!(&data == "contents", "invalid file contents");
5555

5656
assert!(
57-
fs::try_exists("ux0:/data/.rust_test/file").unwrap(),
57+
fs::exists("ux0:/data/.rust_test/file").unwrap(),
5858
"file does not exist",
5959
);
6060

@@ -69,7 +69,7 @@ mod tests {
6969

7070
fs::remove_file("ux0:/data/.rust_test/file").expect("unable to delete file");
7171
assert!(
72-
!fs::try_exists("ux0:/data/.rust_test/file").unwrap(),
72+
!fs::exists("ux0:/data/.rust_test/file").unwrap(),
7373
"file exists, but should not",
7474
);
7575

0 commit comments

Comments
 (0)