diff options
| author | arcnmx <arcnmx@users.noreply.github.com> | 2015-12-31 14:21:40 -0500 |
|---|---|---|
| committer | arcnmx <arcnmx@users.noreply.github.com> | 2015-12-31 14:21:40 -0500 |
| commit | 53878e7546e3e6f3665dea572fbfa48f005ecad2 (patch) | |
| tree | f580ddb6de32a44bcfdf67f095af8bfb01a4d57d /src/libstd | |
| parent | 965556d1626a1ca26db08b1d4193ae9cc026223a (diff) | |
| download | rust-53878e7546e3e6f3665dea572fbfa48f005ecad2.tar.gz rust-53878e7546e3e6f3665dea572fbfa48f005ecad2.zip | |
CStr impl stability
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/ffi/c_str.rs | 8 |
1 files 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 @@ impl ToOwned for CStr { } } -#[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 @@ impl ops::Index<ops::RangeFull> for CString { } } -#[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 |
