]> git.lizzy.rs Git - rust.git/commitdiff
introduce from_nonzero feature
authorcsmoe <35686186+csmoe@users.noreply.github.com>
Mon, 17 Sep 2018 08:34:24 +0000 (16:34 +0800)
committercsmoe <35686186+csmoe@users.noreply.github.com>
Mon, 17 Sep 2018 08:34:24 +0000 (16:34 +0800)
src/libcore/num/mod.rs

index 82a30864fd250a024cd7a62740dd9553769ab2ce..c4b59738478dc0faa45e92b4a1d8d24b2ff5d691 100644 (file)
@@ -93,7 +93,7 @@ pub fn get(self) -> $Int {
 
             }
 
-            #[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