about summary refs log tree commit diff
path: root/library/std/src/ffi
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-04-27 11:54:56 +0200
committerGitHub <noreply@github.com>2025-04-27 11:54:56 +0200
commit9630242e5ee6b0c7eaaee7b9d9a1a5b567b66761 (patch)
treefc3bf18a623e274a2527463f02c2c79f4db30051 /library/std/src/ffi
parent496145b9cc023aef4bb1f16c0964a53d0da36c88 (diff)
parent6be84b1f3863c93f87946a1efd86120966d703dc (diff)
downloadrust-9630242e5ee6b0c7eaaee7b9d9a1a5b567b66761.tar.gz
rust-9630242e5ee6b0c7eaaee7b9d9a1a5b567b66761.zip
Rollup merge of #137439 - clarfonthey:c-str-module, r=tgross35
Stabilise `std::ffi::c_str`

This finished FCP in #112134 but never actually got a stabilisation PR. Since the FCP in #120048 recently passed to add the `os_str` module, it would be nice to also merge this too, to ensure that both get added in the next version.

Note: The added stability attributes which *somehow* were able to be omitted before (rustc bug?) were added based on the fact that they were added in 302551388b1942bb4216bb5a15d9d55cee3643a8, which ended up in 1.85.0.

Closes: https://github.com/rust-lang/rust/issues/112134

r? libs-api
Diffstat (limited to 'library/std/src/ffi')
-rw-r--r--library/std/src/ffi/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/ffi/mod.rs b/library/std/src/ffi/mod.rs
index d34e3ca00b9..bd9446f5aba 100644
--- a/library/std/src/ffi/mod.rs
+++ b/library/std/src/ffi/mod.rs
@@ -161,7 +161,7 @@
 
 #![stable(feature = "rust1", since = "1.0.0")]
 
-#[unstable(feature = "c_str_module", issue = "112134")]
+#[stable(feature = "c_str_module", since = "CURRENT_RUSTC_VERSION")]
 pub mod c_str;
 
 #[stable(feature = "core_c_void", since = "1.30.0")]