about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-04-21 23:06:15 +0200
committerGitHub <noreply@github.com>2021-04-21 23:06:15 +0200
commit47886ead1f2e373591b21c35747627df7f1d1401 (patch)
tree867567ca0bfe9bc8ee081397881b653f0566fc42 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent31b83802a409dd06bd0fac1d343960b8d788de40 (diff)
parent9aa6c1e0c9ec1b24862ac061118a539706fbd7dc (diff)
downloadrust-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