]> git.lizzy.rs Git - rust.git/commitdiff
Update the stable attributes to use the current nightly version number
authorGeorge Burton <burtonageo@gmail.com>
Fri, 27 Apr 2018 19:46:06 +0000 (20:46 +0100)
committerGeorge Burton <burtonageo@gmail.com>
Fri, 27 Apr 2018 19:46:06 +0000 (20:46 +0100)
src/liballoc/string.rs
src/liballoc/vec.rs
src/libstd/ffi/c_str.rs
src/libstd/ffi/os_str.rs
src/libstd/path.rs

index 5f684361fdc23f6dc2a7f6c4e6e8a9770bdbe4ca..61a207fc5b35c4575a621eb0c2b70098e84b024d 100644 (file)
@@ -2239,7 +2239,7 @@ fn from(s: String) -> Cow<'a, str> {
     }
 }
 
-#[stable(feature = "cow_from_string_ref", since = "1.28.0")]
+#[stable(feature = "cow_from_string_ref", since = "1.27.0")]
 impl<'a> From<&'a String> for Cow<'a, str> {
     #[inline]
     fn from(s: &'a String) -> Cow<'a, str> {
index be4c80c85d997b0340122db793c291ed9ca47f33..315a8a0aad07f0a8fdcb32f9e7b617fde9e3002e 100644 (file)
@@ -2285,7 +2285,7 @@ fn from(v: Vec<T>) -> Cow<'a, [T]> {
     }
 }
 
-#[stable(feature = "cow_from_vec_ref", since = "1.28.0")]
+#[stable(feature = "cow_from_vec_ref", since = "1.27.0")]
 impl<'a, T: Clone> From<&'a Vec<T>> for Cow<'a, [T]> {
     fn from(v: &'a Vec<T>) -> Cow<'a, [T]> {
         Cow::Borrowed(v.as_slice())
index 7f38cadfb22adcf0006e36dd48660e5635400e8e..10f59b0a3cc2c323c099eee4a1890c7072aaa1c2 100644 (file)
@@ -682,7 +682,7 @@ impl Borrow<CStr> for CString {
     fn borrow(&self) -> &CStr { self }
 }
 
-#[stable(feature = "cstring_from_cow_cstr", since = "1.28.0")]
+#[stable(feature = "cstring_from_cow_cstr", since = "1.27.0")]
 impl<'a> From<Cow<'a, CStr>> for CString {
     #[inline]
     fn from(s: Cow<'a, CStr>) -> Self {
@@ -714,7 +714,7 @@ fn from(s: CString) -> Box<CStr> {
     }
 }
 
-#[stable(feature = "cow_from_cstr", since = "1.28.0")]
+#[stable(feature = "cow_from_cstr", since = "1.27.0")]
 impl<'a> From<CString> for Cow<'a, CStr> {
     #[inline]
     fn from(s: CString) -> Cow<'a, CStr> {
@@ -722,7 +722,7 @@ fn from(s: CString) -> Cow<'a, CStr> {
     }
 }
 
-#[stable(feature = "cow_from_cstr", since = "1.28.0")]
+#[stable(feature = "cow_from_cstr", since = "1.27.0")]
 impl<'a> From<&'a CStr> for Cow<'a, CStr> {
     #[inline]
     fn from(s: &'a CStr) -> Cow<'a, CStr> {
@@ -730,7 +730,7 @@ fn from(s: &'a CStr) -> Cow<'a, CStr> {
     }
 }
 
-#[stable(feature = "cow_from_cstr", since = "1.28.0")]
+#[stable(feature = "cow_from_cstr", since = "1.27.0")]
 impl<'a> From<&'a CString> for Cow<'a, CStr> {
     #[inline]
     fn from(s: &'a CString) -> Cow<'a, CStr> {
index 0a3148029d053ce1fbac909bf77dd0d77fcf3053..d865ffa8e2f815c251811c081f52dc748b99d3c0 100644 (file)
@@ -664,7 +664,7 @@ fn from(s: &OsStr) -> Rc<OsStr> {
     }
 }
 
-#[stable(feature = "cow_from_osstr", since = "1.28.0")]
+#[stable(feature = "cow_from_osstr", since = "1.27.0")]
 impl<'a> From<OsString> for Cow<'a, OsStr> {
     #[inline]
     fn from(s: OsString) -> Cow<'a, OsStr> {
@@ -672,7 +672,7 @@ fn from(s: OsString) -> Cow<'a, OsStr> {
     }
 }
 
-#[stable(feature = "cow_from_osstr", since = "1.28.0")]
+#[stable(feature = "cow_from_osstr", since = "1.27.0")]
 impl<'a> From<&'a OsStr> for Cow<'a, OsStr> {
     #[inline]
     fn from(s: &'a OsStr) -> Cow<'a, OsStr> {
@@ -680,7 +680,7 @@ fn from(s: &'a OsStr) -> Cow<'a, OsStr> {
     }
 }
 
-#[stable(feature = "cow_from_osstr", since = "1.28.0")]
+#[stable(feature = "cow_from_osstr", since = "1.27.0")]
 impl<'a> From<&'a OsString> for Cow<'a, OsStr> {
     #[inline]
     fn from(s: &'a OsString) -> Cow<'a, OsStr> {
@@ -688,7 +688,7 @@ fn from(s: &'a OsString) -> Cow<'a, OsStr> {
     }
 }
 
-#[stable(feature = "osstring_from_cow_osstr", since = "1.28.0")]
+#[stable(feature = "osstring_from_cow_osstr", since = "1.27.0")]
 impl<'a> From<Cow<'a, OsStr>> for OsString {
     #[inline]
     fn from(s: Cow<'a, OsStr>) -> Self {
index b7ab14b29ca37f79d63a81b414909636e1caeebb..83633210ff2cb13977d4573c1d97658359158b85 100644 (file)
@@ -1532,7 +1532,7 @@ fn from(s: PathBuf) -> Cow<'a, Path> {
     }
 }
 
-#[stable(feature = "cow_from_pathbuf_ref", since = "1.28.0")]
+#[stable(feature = "cow_from_pathbuf_ref", since = "1.27.0")]
 impl<'a> From<&'a PathBuf> for Cow<'a, Path> {
     #[inline]
     fn from(p: &'a PathBuf) -> Cow<'a, Path> {
@@ -1540,7 +1540,7 @@ fn from(p: &'a PathBuf) -> Cow<'a, Path> {
     }
 }
 
-#[stable(feature = "pathbuf_from_cow_path", since = "1.28.0")]
+#[stable(feature = "pathbuf_from_cow_path", since = "1.27.0")]
 impl<'a> From<Cow<'a, Path>> for PathBuf {
     #[inline]
     fn from(p: Cow<'a, Path>) -> Self {