Skip to content

Commit 53878e7

Browse files
committed
CStr impl stability
1 parent 965556d commit 53878e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/ffi/c_str.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -522,14 +522,14 @@ impl ToOwned for CStr {
522522
}
523523
}
524524

525-
#[unstable(feature = "cstring_asref", reason = "recently added", issue = "0")]
525+
#[stable(feature = "cstring_asref", since = "1.7.0")]
526526
impl<'a> From<&'a CStr> for CString {
527527
fn from(s: &'a CStr) -> CString {
528528
s.to_owned()
529529
}
530530
}
531531

532-
#[unstable(feature = "cstring_asref", reason = "recently added", issue = "0")]
532+
#[stable(feature = "cstring_asref", since = "1.7.0")]
533533
impl ops::Index<ops::RangeFull> for CString {
534534
type Output = CStr;
535535

@@ -539,14 +539,14 @@ impl ops::Index<ops::RangeFull> for CString {
539539
}
540540
}
541541

542-
#[unstable(feature = "cstring_asref", reason = "recently added", issue = "0")]
542+
#[stable(feature = "cstring_asref", since = "1.7.0")]
543543
impl AsRef<CStr> for CStr {
544544
fn as_ref(&self) -> &CStr {
545545
self
546546
}
547547
}
548548

549-
#[unstable(feature = "cstring_asref", reason = "recently added", issue = "0")]
549+
#[stable(feature = "cstring_asref", since = "1.7.0")]
550550
impl AsRef<CStr> for CString {
551551
fn as_ref(&self) -> &CStr {
552552
self

0 commit comments

Comments
 (0)