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 3 pull requests #97926

Closed

Commits on May 3, 2022

  1. std::io: Modify some ReadBuf method signatures to return &mut Self

    This allows using `ReadBuf` in a builder-like style and to setup a `ReadBuf` and
    pass it to `read_buf` in a single expression, e.g.,
    
    ```
    // With this PR:
    reader.read_buf(ReadBuf::uninit(buf).assume_init(init_len))?;
    
    // Previously:
    let mut buf = ReadBuf::uninit(buf);
    buf.assume_init(init_len);
    reader.read_buf(&mut buf)?;
    ```
    
    Signed-off-by: Nick Cameron <nrc@ncameron.org>
    nrc committed May 3, 2022
    Configuration menu
    Copy the full SHA
    a3c30e4 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2022

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

Commits on Jun 9, 2022

  1. Configuration menu
    Copy the full SHA
    c71e73e View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#95770 - nrc:read-buf-builder, r=joshtriplett

    std::io: Modify some ReadBuf method signatures to return `&mut Self`
    
    This allows using `ReadBuf` in a builder-like style and to setup a `ReadBuf` and
    pass it to `read_buf` in a single expression, e.g.,
    
    ```
    // With this PR:
    reader.read_buf(ReadBuf::uninit(buf).assume_init(init_len))?;
    
    // Previously:
    let mut buf = ReadBuf::uninit(buf);
    buf.assume_init(init_len);
    reader.read_buf(&mut buf)?;
    ```
    
    r? `@sfackler`
    
    cc rust-lang#78485, rust-lang#94741
    compiler-errors committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    a27ad62 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#97876 - yoshuawuyts:into-future-docs, r=Joh…

    …nTitor,yaahc
    
    update docs for `std::future::IntoFuture`
    
    Ref rust-lang#67644.
    
    This updates the docs for `IntoFuture` providing a bit more guidance on how to use it. Thanks!
    compiler-errors committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    45e9688 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#97922 - paolobarbolini:no-vecdeque-extra-re…

    …serve, r=the8472
    
    Remove redundant calls to reserve in impl Write for VecDeque
    
    Removes the reserve calls made redundant by rust-lang#95904 (as discussed in rust-lang#95632 (comment))
    compiler-errors committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    09d72f5 View commit details
    Browse the repository at this point in the history