about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorltdk <usr@ltdk.xyz>2025-02-22 15:10:03 -0500
committerltdk <usr@ltdk.xyz>2025-02-22 15:10:03 -0500
commit6be84b1f3863c93f87946a1efd86120966d703dc (patch)
tree5c7829bcc1814e411e75ac3f6724b70923749a0b /library/alloc/src
parent12dd4a190866a94b1802b3b5d9b60055308e15bb (diff)
downloadrust-6be84b1f3863c93f87946a1efd86120966d703dc.tar.gz
rust-6be84b1f3863c93f87946a1efd86120966d703dc.zip
Somehow these stability attributes were able to be omitted before?
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/ffi/c_str.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/alloc/src/ffi/c_str.rs b/library/alloc/src/ffi/c_str.rs
index fd93045a5ac..87625193b02 100644
--- a/library/alloc/src/ffi/c_str.rs
+++ b/library/alloc/src/ffi/c_str.rs
@@ -821,6 +821,7 @@ impl From<Vec<NonZero<u8>>> for CString {
     }
 }
 
+#[stable(feature = "c_string_from_str", since = "1.85.0")]
 impl FromStr for CString {
     type Err = NulError;
 
@@ -833,6 +834,7 @@ impl FromStr for CString {
     }
 }
 
+#[stable(feature = "c_string_from_str", since = "1.85.0")]
 impl TryFrom<CString> for String {
     type Error = IntoStringError;