diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-04-21 23:06:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-21 23:06:15 +0200 |
| commit | 47886ead1f2e373591b21c35747627df7f1d1401 (patch) | |
| tree | 867567ca0bfe9bc8ee081397881b653f0566fc42 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 31b83802a409dd06bd0fac1d343960b8d788de40 (diff) | |
| parent | 9aa6c1e0c9ec1b24862ac061118a539706fbd7dc (diff) | |
| download | rust-47886ead1f2e373591b21c35747627df7f1d1401.tar.gz rust-47886ead1f2e373591b21c35747627df7f1d1401.zip | |
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...^^
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
