From 53878e7546e3e6f3665dea572fbfa48f005ecad2 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Thu, 31 Dec 2015 14:21:40 -0500 Subject: [PATCH 1/1] CStr impl stability --- src/libstd/ffi/c_str.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs index c8d43bfcef0..9a41272299e 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -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 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 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 for CString { fn as_ref(&self) -> &CStr { self -- 2.44.0