rust/library/core
Matthias Krüger ac3108f208
Rollup merge of #119990 - reitermarkus:nonzero-type-alias, r=dtolnay
Add private `NonZero<T>` type alias.

According to step 2 suggested in https://github.com/rust-lang/rust/pull/100428#pullrequestreview-1767139731.

This adds a private type alias for `NonZero<T>` so that some parts of the code can already start using `NonZero<T>` syntax.

Using `NonZero<T>` for `convert` and other parts which implement `From` doesn't work while it is a type alias, since this results in conflicting implementations.
2024-01-16 17:55:24 +01:00
..
benches Reduced amount of int_pow benches 2024-01-11 14:00:01 -05:00
src Rollup merge of #119990 - reitermarkus:nonzero-type-alias, r=dtolnay 2024-01-16 17:55:24 +01:00
tests apply fmt 2024-01-11 15:04:48 +03:00
Cargo.toml Update rand in the stdlib tests, and remove the getrandom feature from it 2023-01-04 14:52:41 -08:00