diff options
| author | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-09-17 16:34:24 +0800 |
|---|---|---|
| committer | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-09-17 16:34:24 +0800 |
| commit | ac61a9ce21546414547025c8bb49a85f1cf821e8 (patch) | |
| tree | c3558ada5b5b5041853efeda59e40c017df5ffb9 | |
| parent | f451580a91953391b60c408adc9be384690d3e91 (diff) | |
| download | rust-ac61a9ce21546414547025c8bb49a85f1cf821e8.tar.gz rust-ac61a9ce21546414547025c8bb49a85f1cf821e8.zip | |
introduce from_nonzero feature
| -rw-r--r-- | src/libcore/num/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 82a30864fd2..c4b59738478 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -93,7 +93,7 @@ assert_eq!(size_of::<Option<std::num::", stringify!($Ty), ">>(), size_of::<", st } - #[stable(feature = "nonzero", since = "1.28.0")] + #[stable(feature = "from_nonzero", since = "1.31.0")] impl From<$Ty> for $Int { fn from(nonzero: $Ty) -> Self { nonzero.0 .0 |
