Skip to content

Commit 6be84b1

Browse files
committed
Somehow these stability attributes were able to be omitted before?
1 parent 12dd4a1 commit 6be84b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/alloc/src/ffi/c_str.rs

+2
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ impl From<Vec<NonZero<u8>>> for CString {
821821
}
822822
}
823823

824+
#[stable(feature = "c_string_from_str", since = "1.85.0")]
824825
impl FromStr for CString {
825826
type Err = NulError;
826827

@@ -833,6 +834,7 @@ impl FromStr for CString {
833834
}
834835
}
835836

837+
#[stable(feature = "c_string_from_str", since = "1.85.0")]
836838
impl TryFrom<CString> for String {
837839
type Error = IntoStringError;
838840

0 commit comments

Comments
 (0)