about summary refs log tree commit diff
path: root/library/std/src/sys_common
diff options
context:
space:
mode:
authorEduardo Sánchez Muñoz <eduardosm-dev@e64.io>2024-06-11 18:33:40 +0200
committerEduardo Sánchez Muñoz <eduardosm-dev@e64.io>2024-06-11 18:33:40 +0200
commit6a04dfe78c2bf6a4331e8da02959e821b68dbf22 (patch)
tree09b9fe8a6d9d9bab1bd6fb20dfffef0dfde05f7e /library/std/src/sys_common
parente3c3ce62d7a8328120aa2abf60a34576f3862fde (diff)
downloadrust-6a04dfe78c2bf6a4331e8da02959e821b68dbf22.tar.gz
rust-6a04dfe78c2bf6a4331e8da02959e821b68dbf22.zip
Rename `std::fs::try_exists` to `std::fs::exists` and stabilize fs_try_exists
Diffstat (limited to 'library/std/src/sys_common')
-rw-r--r--library/std/src/sys_common/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys_common/fs.rs b/library/std/src/sys_common/fs.rs
index 617ac52e51c..acb6713cf1b 100644
--- a/library/std/src/sys_common/fs.rs
+++ b/library/std/src/sys_common/fs.rs
@@ -42,7 +42,7 @@ fn remove_dir_all_recursive(path: &Path) -> io::Result<()> {
     fs::remove_dir(path)
 }
 
-pub fn try_exists(path: &Path) -> io::Result<bool> {
+pub fn exists(path: &Path) -> io::Result<bool> {
     match fs::metadata(path) {
         Ok(_) => Ok(true),
         Err(error) if error.kind() == io::ErrorKind::NotFound => Ok(false),