Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: try-perf
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jul 1, 2025

  1. Unrolled build for #136801

    Rollup merge of #136801 - sorairolake:add-random-for-tuple, r=joshtriplett
    
    Implement `Random` for tuple
    
    Implement `Random` for tuples of arity 12 or less. Each element is expected to implement `Random`.
    
    I think it's OK to implement this trait for the following types:
    
    - Primitive integer types and `bool`
    - Arrays and tuples of the above values
    - ~~`NonZero<T>`~~, `Saturating<T>` and `Wrapping<T>`
    
    The necessity of this trait is debated (<#130703 (comment)>), but if we decide to keep it in the future when the `random` module is stabilized, I think it would be useful to have this trait implemented for tuples.
    
    Tracking issue: #130703
    
    r? `@joboet`
    rust-timer authored Jul 1, 2025
    Configuration menu
    Copy the full SHA
    cada1d7 View commit details
    Browse the repository at this point in the history
Loading