-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 4 pull requests #98265
Rollup of 4 pull requests #98265
Commits on Jun 14, 2022
-
Stabilize
Path::try_exists()
and improve docThis 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 rust-lang#83186 remains open to track `fs_try_exists`.
Configuration menu - View commit details
-
Copy full SHA for 5608707 - Browse repository at this point
Copy the full SHA 5608707View commit details
Commits on Jun 18, 2022
-
Make debug_triple depend on target json file content rather than file…
… path This ensures that changes to target json files will force a recompilation. And more importantly that moving the files doesn't force a recompilation.
Configuration menu - View commit details
-
Copy full SHA for 072b7db - Browse repository at this point
Copy the full SHA 072b7dbView commit details
Commits on Jun 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f0144ae - Browse repository at this point
Copy the full SHA f0144aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4b536d - Browse repository at this point
Copy the full SHA b4b536dView commit details -
Add
core::mem::copy
to complementcore::mem::drop
.This is useful for combinators. I didn't add `clone` since you can already use `Clone::clone` in its place; copy has no such corresponding function.
Configuration menu - View commit details
-
Copy full SHA for 9ac6277 - Browse repository at this point
Copy the full SHA 9ac6277View commit details -
Rollup merge of rust-lang#95534 - jyn514:std-mem-copy, r=joshtriplett
Add `core::mem::copy` to complement `core::mem::drop`. This is useful for combinators. I didn't add `clone` since you can already use `Clone::clone` in its place; copy has no such corresponding function.
Configuration menu - View commit details
-
Copy full SHA for 9d4e08e - Browse repository at this point
Copy the full SHA 9d4e08eView commit details -
Rollup merge of rust-lang#97912 - Kixunil:stabilize_path_try_exists, …
…r=dtolnay 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 rust-lang#83186 remains open to track `fs_try_exists`.
Configuration menu - View commit details
-
Copy full SHA for 77316a4 - Browse repository at this point
Copy the full SHA 77316a4View commit details -
Rollup merge of rust-lang#98225 - bjorn3:stable_target_json_hash, r=n…
…agisa Make debug_triple depend on target json file content rather than file path This ensures that changes to target json files will force a recompilation. And more importantly that moving the files doesn't force a recompilation. This should fix Rust-for-Linux/linux#792 (cc ``@ojeda)``
Configuration menu - View commit details
-
Copy full SHA for bfa6cd9 - Browse repository at this point
Copy the full SHA bfa6cd9View commit details -
Rollup merge of rust-lang#98257 - kadiwa4:into_future_doc_typos, r=Dy…
…lan-DPC Fix typos in `IntoFuture` docs
Configuration menu - View commit details
-
Copy full SHA for 761f83f - Browse repository at this point
Copy the full SHA 761f83fView commit details