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 8 pull requests #98292

Merged
merged 27 commits into from
Jun 20, 2022
Merged

Rollup of 8 pull requests #98292

merged 27 commits into from
Jun 20, 2022

Commits on Jan 19, 2022

  1. Configuration menu
    Copy the full SHA
    967c0ad View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2022

  1. Configuration menu
    Copy the full SHA
    a23e751 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4d7daa0 View commit details
    Browse the repository at this point in the history
  3. Update tests.

    m-ou-se committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    1890372 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2022

  1. Configuration menu
    Copy the full SHA
    1ac5440 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2022

  1. Configuration menu
    Copy the full SHA
    6d523e9 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2022

  1. Document Rust's stance on /proc/self/mem

    Add documentation to `std::os::unix::io` describing Rust's stance on
    `/proc/self/mem`, treating it as an external entity which is outside
    the scope of Rust's safety guarantees.
    sunfishcode committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    5ae95fa View commit details
    Browse the repository at this point in the history
  2. Update library/std/src/os/unix/io/mod.rs

    Co-authored-by: Sean Stangl <sean.stangl@gmail.com>
    sunfishcode and sstangl authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    fbb59e7 View commit details
    Browse the repository at this point in the history
  3. Update library/std/src/os/unix/io/mod.rs

    Co-authored-by: Sean Stangl <sean.stangl@gmail.com>
    sunfishcode and sstangl authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    52cb18b View commit details
    Browse the repository at this point in the history
  4. Update library/std/src/os/unix/io/mod.rs

    Co-authored-by: Josh Triplett <josh@joshtriplett.org>
    sunfishcode and joshtriplett authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    27d9ab4 View commit details
    Browse the repository at this point in the history
  5. Update library/std/src/os/unix/io/mod.rs

    Co-authored-by: Josh Triplett <josh@joshtriplett.org>
    sunfishcode and joshtriplett authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    f9662f2 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2022

  1. Configuration menu
    Copy the full SHA
    7656e08 View commit details
    Browse the repository at this point in the history
  2. Update library/std/src/os/unix/io/mod.rs

    Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
    sunfishcode and m-ou-se authored Jun 8, 2022
    Configuration menu
    Copy the full SHA
    e89ec68 View commit details
    Browse the repository at this point in the history
  3. Reword the question in the section header too.

    This adopts the wording suggested in
    rust-lang#97837 (comment).
    sunfishcode committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    158ff5c View commit details
    Browse the repository at this point in the history
  4. Fix trailing whitespace.

    sunfishcode committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    6959441 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2022

  1. Include ForeignItem when visiting types for WF check

    Addresses Issue 95665 by including `hir::Node::ForeignItem` as a valid
    type to visit in `diagnostic_hir_wf_check`.
    
    Fixes rust-lang#95665
    PrestonFrom committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    f725b97 View commit details
    Browse the repository at this point in the history
  2. Show #![feature] in example.

    m-ou-se authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    c867529 View commit details
    Browse the repository at this point in the history
  3. Stdio::make_pipe

    ChrisDenton committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    8b93147 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    740a54c View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#93080 - SkiFire13:itermut-as_mut_slice, r=m…

    …-ou-se
    
    Implement `core::slice::IterMut::as_mut_slice` and `impl<T> AsMut<[T]> for IterMut<'_, T>`
    
    As per [the zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/.60std.3A.3Aslice.3A.3AIterMut.3A.3Aas_mut_slice.60), the `AsMut` impl has been commented out, with a comment near the `#[unstable(...)]` to uncomment it when `as_mut_slice` gets stabilized.
    Dylan-DPC authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    fd9ca0c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#94855 - m-ou-se:advance-slice-panic-docs, r…

    …=kennytm
    
    Panic when advance_slices()'ing too far and update docs.
    
    This updates advance_slices() to panic when advancing too far, like advance() already does. And updates the docs to say so.
    
    See rust-lang#62726 (comment)
    Dylan-DPC authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    99620ad View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#96609 - ibraheemdev:arc-downcast-unchecked,…

    … r=m-ou-se
    
    Add `{Arc, Rc}::downcast_unchecked`
    
    Part of rust-lang#90850.
    Dylan-DPC authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    7372bf8 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#96719 - mbartlett21:patch-4, r=Dylan-DPC

    Fix the generator example for `pin!()`
    
    The previous generator example is not actually self-referential, since the reference is created after the yield.
    
    CC rust-lang#93178 (tracking issue)
    Dylan-DPC authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    625c929 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#97149 - ChrisDenton:win_async_pipes, r=m-ou-se

    Windows: `CommandExt::async_pipes`
    
    Discussed in tokio-rs/tokio#4670 was the need for third party crates to be able to force `process::Command::spawn` to create pipes as async.
    
    This implements the suggestion for a `async_pipes` method that gives third party crates that option.
    
    # Example:
    
    ```rust
    use std::process::{Command, Stdio};
    
    Command::new("cmd")
        .async_pipes(true)
        .stdin(Stdio::piped())
        .stdout(Stdio::piped())
        .stderr(Stdio::piped())
        .spawn()
        .unwrap();
    ```
    Dylan-DPC authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    85f1de2 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#97150 - ChrisDenton:stdio-create_pipe, r=m-…

    …ou-se
    
    `Stdio::makes_pipe`
    
    Wrappers around `std::process::Command` may want to be able to override pipe creation. However, [`std::process::Stdio`](https://doc.rust-lang.org/std/process/struct.Stdio.html) is opaque so there's no way to tell if `Command` was told to create new pipes or not.
    
    This is in some ways a more generic (and cross-platform) alternative to rust-lang#97149. However, unlike that feature, this comes with the price of the user needing to actually create their own pipes rather than reusing the std one. So I think it stands (or not) on its own.
    
    # Example
    
    ```rust
    #![feature(stdio_makes_pipe)]
    use std::process::Stdio;
    
    let io = Stdio::piped();
    assert_eq!(io.makes_pipe(), true);
    ```
    Dylan-DPC authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    2807f28 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#97837 - sunfishcode:sunfishcode/proc-self-m…

    …em, r=m-ou-se
    
    Document Rust's stance on `/proc/self/mem`
    
    Add documentation to `std::os::unix::io` describing Rust's stance on
    `/proc/self/mem`, treating it as an external entity which is outside
    the scope of Rust's safety guarantees.
    Dylan-DPC authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    ce1151c View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#98159 - PrestonFrom:issue_95665, r=petroche…

    …nkov
    
    Include ForeignItem when visiting types for WF check
    
    Addresses Issue 95665 by including `hir::Node::ForeignItem` as a valid
    type to visit in `diagnostic_hir_wf_check`.
    
    Fixes rust-lang#95665
    Dylan-DPC authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    7bde23b View commit details
    Browse the repository at this point in the history