Add instability attribute on private const_strlen function · rust-lang/rust@7f1518b

Original file line numberDiff line numberDiff line change

@@ -740,6 +740,7 @@ impl AsRef<CStr> for CStr {

740740

/// The pointer must point to a valid buffer that contains a NUL terminator. The NUL must be

741741

/// located within `isize::MAX` from `ptr`.

742742

#[inline]

743+

#[unstable(feature = "cstr_internals", issue = "none")]

743744

#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "CURRENT_RUSTC_VERSION")]

744745

#[rustc_allow_const_fn_unstable(const_eval_select)]

745746

const unsafe fn const_strlen(ptr: *const c_char) -> usize {