]> git.lizzy.rs Git - rust.git/commit
Make `From` impls of NonZero integer const.
authorwoppopo <woppopo@protonmail.com>
Wed, 20 Oct 2021 03:04:58 +0000 (12:04 +0900)
committerwoppopo <woppopo@protonmail.com>
Wed, 20 Oct 2021 03:04:58 +0000 (12:04 +0900)
commit2fc780638e069155c87555da10ff234d1018fcaa
tree6d8edf420149984a0fa7120ec69c2baaced01e06
parent42983a28ab3c70728da7a9b932b667c978dd898d
Make `From` impls of NonZero integer const.
I also changed the feature gate added to `From` impls of Atomic integer to `const_num_from_num` from `const_convert`.
library/core/src/convert/num.rs
library/core/src/lib.rs
library/core/src/num/nonzero.rs
library/core/src/sync/atomic.rs
library/core/tests/nonzero.rs