We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36dbb07 commit b3f9277Copy full SHA for b3f9277
library/core/src/ffi/c_str.rs
@@ -250,7 +250,6 @@ impl CStr {
250
#[must_use]
251
#[stable(feature = "rust1", since = "1.0.0")]
252
#[rustc_const_unstable(feature = "const_cstr_methods", issue = "101719")]
253
- #[rustc_allow_const_fn_unstable(const_eval_select)]
254
pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr {
255
// SAFETY: The caller has provided a pointer that points to a valid C
256
// string with a NUL terminator of size less than `isize::MAX`, whose
0 commit comments