rust/compiler/rustc_error_messages
Martin Habovstiak 56087074c6 Stabilize Path::try_exists() and improve doc
This stabilizes the `Path::try_exists()` method which returns
`Result<bool, io::Error>` instead of `bool` allowing handling of errors
unrelated to the file not existing. (e.g permission errors)

Along with the stabilization it also:

* Warns that the `exists()` method is error-prone and suggests to use
  the newly stabilized one.
* Suggests it instead of `metadata()` to handle errors.
* Mentions TOCTOU bugs to avoid false assumption that `try_exists()` is
  completely safe fixed version of `exists()`.
* Renames the feature of still-unstable `std::fs::try_exists()` to
  `fs_try_exists` to avoid name conflict.

The tracking issue #83186 remains open to track `fs_try_exists`.
2022-06-14 17:48:55 +02:00
..
locales/en-US Deactivate feature gate explicit_generic_args_with_impl_trait 2022-06-06 12:21:49 +01:00
src Stabilize Path::try_exists() and improve doc 2022-06-14 17:48:55 +02:00
Cargo.toml errors: support fluent + parallel compiler 2022-04-05 07:01:03 +01:00