We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
const_cstr_from_ptr
1 parent 6162f6f commit 5ed429fCopy full SHA for 5ed429f
library/core/src/ffi/c_str.rs
@@ -256,7 +256,7 @@ impl CStr {
256
#[inline]
257
#[must_use]
258
#[stable(feature = "rust1", since = "1.0.0")]
259
- #[rustc_const_unstable(feature = "const_cstr_from_ptr", issue = "101719")]
+ #[rustc_const_unstable(feature = "const_cstr_from_ptr", issue = "113219")]
260
pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr {
261
// SAFETY: The caller has provided a pointer that points to a valid C
262
// string with a NUL terminator of size less than `isize::MAX`, whose
0 commit comments