]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #101514 - nvzqz:nvzqz/stabilize-nonzero-bits, r=thomcc
authorbors <bors@rust-lang.org>
Sun, 4 Dec 2022 08:28:22 +0000 (08:28 +0000)
committerbors <bors@rust-lang.org>
Sun, 4 Dec 2022 08:28:22 +0000 (08:28 +0000)
Stabilize `nonzero_bits`

Closes #94881, implemented by #93292.

This change stabilizes the associated `BITS` constant for `NonZero{U,I}{8,16,32,64,128,size}` integers, e.g.:

```rs
impl NonZeroUsize {
    pub const BITS: u32 = usize::BITS;
}
```

1  2 
library/core/src/num/nonzero.rs

Simple merge