about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-03-16 23:53:52 +0900
committerGitHub <noreply@github.com>2021-03-16 23:53:52 +0900
commit62d38da9fab089520b0e10e71a54be0d30b0490a (patch)
treeba3cc8360b17d7ae546fc31d410bcbab9c691ca4 /library/std/src/sys/unix/stack_overflow.rs
parentf24ce9b0140d9be5a336954e878d0c1522966bb8 (diff)
parent4330268181c3de234457138f23bb821afd0c181e (diff)
downloadrust-62d38da9fab089520b0e10e71a54be0d30b0490a.tar.gz
rust-62d38da9fab089520b0e10e71a54be0d30b0490a.zip
Rollup merge of #81822 - Kixunil:path_try_exists, r=kennytm
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.

`@joshtriplett` requested this PR in [internals discussion](https://internals.rust-lang.org/t/the-api-of-path-exists-encourages-broken-code/13817/25?u=kixunil)
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions