rust/library/core/src/num
Mara Bos 47886ead1f
Rollup merge of #84251 - RalfJung:non-zero-const-since, r=kennytm
fix 'const-stable since' for NonZeroU*::new_unchecked

For the unsigned `NonZero` types, `new_unchecked` was const-stable from the start with https://github.com/rust-lang/rust/pull/50808. Fix the docs to accurately reflect that.

I think this `since` is also incorrect:
```rust
            #[stable(feature = "from_nonzero", since = "1.31.0")]
            impl From<$Ty> for $Int {
```
The signed nonzero types were only stabilized in 1.34, so that `From` impl certainly didn't exist before. But I had enough of digging through git histories after I figured out when `new_unchecked` became const-stable...^^
2021-04-21 23:06:15 +02:00
..
dec2flt Auto merge of #78618 - workingjubilee:ieee754-fmt, r=m-ou-se 2021-03-27 10:40:16 +00:00
flt2dec Preserve signed zero on roundtrip 2021-03-22 17:02:09 -07:00
shells Convert the rest of the standard library primitives to intra-doc links 2021-02-25 20:32:49 -05:00
bignum.rs Use iter::zip in library/ 2021-03-26 09:32:29 -07:00
diy_float.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
error.rs Fix link 2021-02-23 08:54:18 -05:00
f32.rs Stabilize is_subnormal. 2021-04-11 11:48:26 +02:00
f64.rs Stabilize is_subnormal. 2021-04-11 11:48:26 +02:00
int_macros.rs Add some #[inline(always)] to arithmetic methods of integers 2021-04-11 21:19:39 +03:00
mod.rs Add escape_default method to u8 and [u8] 2021-03-28 17:38:25 -04:00
nonzero.rs fix 'const-stable since' for NonZeroU*::new_unchecked 2021-04-16 20:35:14 +02:00
uint_macros.rs Add some #[inline(always)] to arithmetic methods of integers 2021-04-11 21:19:39 +03:00
wrapping.rs Remove all doc_comment!{} hacks by using #[doc = expr] where needed. 2020-12-30 22:49:08 +01:00