diff options
| author | Martin Habovstiak <martin.habovstiak@gmail.com> | 2021-02-06 13:16:37 +0100 |
|---|---|---|
| committer | Martin Habovstiak <martin.habovstiak@gmail.com> | 2021-02-06 22:16:54 +0100 |
| commit | 66f7f7d8a9e6e524468f5d84e73b438274c20dbb (patch) | |
| tree | 5a40ced7d98859d21e752101f44284c102a0c162 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 399b6452b5d9982438be208668bc758479f13725 (diff) | |
| download | rust-66f7f7d8a9e6e524468f5d84e73b438274c20dbb.tar.gz rust-66f7f7d8a9e6e524468f5d84e73b438274c20dbb.zip | |
Added `try_exists()` method to `std::path::Path`
This method is similar to the existing `exists()` method, except it doesn't silently ignore the errors, leading to less error-prone code. This change intentionally does NOT touch the documentation of `exists()` nor recommend people to use this method while it's unstable. Such changes are reserved for stabilization to prevent confusing people. Apart from that it avoids conflicts with #80979.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
