Skip to content
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

Merged
merged 9 commits into from
Jun 20, 2022
Merged

Rollup of 4 pull requests #98265

merged 9 commits into from
Jun 20, 2022

Commits on Jun 14, 2022

  1. 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`.
    Kixunil committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    5608707 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2022

  1. 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.
    bjorn3 committed Jun 18, 2022
    Configuration menu
    Copy the full SHA
    072b7db View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2022

  1. typos in IntoFuture docs

    kadiwa4 committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    f0144ae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b4b536d View commit details
    Browse the repository at this point in the history
  3. 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.
    jyn514 committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    9ac6277 View commit details
    Browse the repository at this point in the history
  4. 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.
    JohnTitor committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    9d4e08e View commit details
    Browse the repository at this point in the history
  5. 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`.
    JohnTitor committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    77316a4 View commit details
    Browse the repository at this point in the history
  6. 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)``
    JohnTitor committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    bfa6cd9 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#98257 - kadiwa4:into_future_doc_typos, r=Dy…

    …lan-DPC
    
    Fix typos in `IntoFuture` docs
    JohnTitor committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    761f83f View commit details
    Browse the repository at this point in the history