about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-07-01 17:46:59 +0200
committerGitHub <noreply@github.com>2025-07-01 17:46:59 +0200
commitad6503983d307217351946575246cde7e26db062 (patch)
tree29e21f3fa37e604cc1707560fe50b92a946f0403 /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent076a0a26fd6f4c445647a33d6daaac56f732ac05 (diff)
parent07e8b2866d31fcc9c603146bfd98f6a0d0137a97 (diff)
downloadrust-ad6503983d307217351946575246cde7e26db062.tar.gz
rust-ad6503983d307217351946575246cde7e26db062.zip
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 (<https://github.com/rust-lang/rust/issues/130703#issuecomment-2508889577>), 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`
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions