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 6 pull requests #91788

Closed
wants to merge 15 commits into from

Commits on Dec 7, 2021

  1. Configuration menu
    Copy the full SHA
    6e7ec0c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    72b6f70 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8576ab4 View commit details
    Browse the repository at this point in the history
  4. Simplify match.

    cjgillot committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    54ff721 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2021

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

Commits on Dec 9, 2021

  1. rustdoc: Show type layout for type aliases

    At first, you might think, "Why not just click through to the aliased
    type?" But, if a type alias instantiates all of the generic parameters
    of the aliased type, then it can show layout info even though the
    aliased type cannot (because we can't compute layout for generic types).
    So, I think it's useful to show layout info for type aliases.
    
    This is a followup of 78d4b453ad2e19d44011b26fc55c949bff5dba3d
    (originally part of rust-lang#83501).
    camelid committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    e36da67 View commit details
    Browse the repository at this point in the history
  2. Improve the readability of List<T>.

    This commit does the following.
    - Expands on some of the things already mentioned in comments.
    - Describes the uniqueness assumption, which is critical but wasn't
      mentioned at all.
    - Rewrites `empty()` into a clearer form, as provided by Daniel
      Henry-Mantilla on Zulip.
    - Reorders things slightly so that more important things
      are higher up, and incidental things are lower down, which makes
      reading the code easier.
    nnethercote committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    769a707 View commit details
    Browse the repository at this point in the history
  3. Improve std::iter::zip example.

    Update library/core/src/iter/adapters/zip.rs
    
    Co-authored-by: r00ster <r00ster91@protonmail.com>
    
    Update library/core/src/iter/adapters/zip.rs
    
    Co-authored-by: r00ster <r00ster91@protonmail.com>
    Andrew Banchich and wooster0 committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    c78fb62 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2021

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

Commits on Dec 11, 2021

  1. Rollup merge of rust-lang#91617 - nnethercote:improve-List-readabilit…

    …y, r=lcnr
    
    Improve the readability of `List<T>`.
    
    This commit does the following.
    - Expands on some of the things already mentioned in comments.
    - Describes the uniqueness assumption, which is critical but wasn't
      mentioned at all.
    - Rewrites `empty()` into a clearer form, as provided by Daniel
      Henry-Mantilla on Zulip.
    - Reorders things slightly so that more important things
      are higher up, and incidental things are lower down, which makes
      reading the code easier.
    
    r? ```@lcnr```
    matthiaskrgr committed Dec 11, 2021
    Configuration menu
    Copy the full SHA
    7dea631 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#91640 - cjgillot:in-band-collect, r=oli-obk

    Simplify collection of in-band lifetimes
    
    Split from rust-lang#91403
    
    r? ```@oli-obk```
    matthiaskrgr committed Dec 11, 2021
    Configuration menu
    Copy the full SHA
    7e535b0 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#91643 - Amanieu:r9x18, r=joshtriplett

    asm: Allow using r9 (ARM) and x18 (AArch64) if they are not reserved by the current target
    
    This supersedes rust-lang#88879.
    
    cc `@Skirmisher`
    
    r? `@joshtriplett`
    matthiaskrgr committed Dec 11, 2021
    Configuration menu
    Copy the full SHA
    e300851 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#91680 - saethlin:spare_capacity_mut-in-join…

    …, r=dtolnay
    
    Use spare_capacity_mut instead of invalid unchecked indexing when joining str
    
    This is a fix for rust-lang#91574
    
    I think in general I'd prefer to see this code implemented with raw pointers or `MaybeUninit::write_slice`, but there's existing code in here based on copying from slice to slice, so converting everything from `&[T]` to `&[MaybeUninit<T>]` is less disruptive.
    matthiaskrgr committed Dec 11, 2021
    Configuration menu
    Copy the full SHA
    f33ca93 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#91682 - camelid:alias-layout, r=jyn514

    rustdoc: Show type layout for type aliases
    
    Fixes rust-lang#91265.
    
    At first, you might think, "Why not just click through to the aliased
    type?" But, if a type alias instantiates all of the generic parameters
    of the aliased type, then it can show layout info even though the
    aliased type cannot (because we can't compute layout for generic types).
    So, I think it's useful to show layout info for type aliases.
    
    This is a followup of 78d4b453ad2e19d44011b26fc55c949bff5dba3d
    (originally part of rust-lang#83501).
    matthiaskrgr committed Dec 11, 2021
    Configuration menu
    Copy the full SHA
    74f225b View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#91711 - andrewbanchich:improve-zip-example,…

    … r=Mark-Simulacrum
    
    Improve `std::iter::zip` example
    
    `println!` isn't great for doc comments / tests.
    matthiaskrgr committed Dec 11, 2021
    Configuration menu
    Copy the full SHA
    89fa7c7 View commit details
    Browse the repository at this point in the history