]> git.lizzy.rs Git - rust.git/commitdiff
CStr impl stability
authorarcnmx <arcnmx@users.noreply.github.com>
Thu, 31 Dec 2015 19:21:40 +0000 (14:21 -0500)
committerarcnmx <arcnmx@users.noreply.github.com>
Thu, 31 Dec 2015 19:21:40 +0000 (14:21 -0500)
src/libstd/ffi/c_str.rs

index c8d43bfcef014de5de3207436fd5543d1bc19de1..9a41272299e94a10e91ed875e69ca017ccd43bbd 100644 (file)
@@ -522,14 +522,14 @@ fn to_owned(&self) -> CString {
     }
 }
 
-#[unstable(feature = "cstring_asref", reason = "recently added", issue = "0")]
+#[stable(feature = "cstring_asref", since = "1.7.0")]
 impl<'a> From<&'a CStr> for CString {
     fn from(s: &'a CStr) -> CString {
         s.to_owned()
     }
 }
 
-#[unstable(feature = "cstring_asref", reason = "recently added", issue = "0")]
+#[stable(feature = "cstring_asref", since = "1.7.0")]
 impl ops::Index<ops::RangeFull> for CString {
     type Output = CStr;
 
@@ -539,14 +539,14 @@ fn index(&self, _index: ops::RangeFull) -> &CStr {
     }
 }
 
-#[unstable(feature = "cstring_asref", reason = "recently added", issue = "0")]
+#[stable(feature = "cstring_asref", since = "1.7.0")]
 impl AsRef<CStr> for CStr {
     fn as_ref(&self) -> &CStr {
         self
     }
 }
 
-#[unstable(feature = "cstring_asref", reason = "recently added", issue = "0")]
+#[stable(feature = "cstring_asref", since = "1.7.0")]
 impl AsRef<CStr> for CString {
     fn as_ref(&self) -> &CStr {
         self