Skip to content

Commit b3f9277

Browse files
authored
Remove unneeded attribute.
1 parent 36dbb07 commit b3f9277

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/core/src/ffi/c_str.rs

-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ impl CStr {
250250
#[must_use]
251251
#[stable(feature = "rust1", since = "1.0.0")]
252252
#[rustc_const_unstable(feature = "const_cstr_methods", issue = "101719")]
253-
#[rustc_allow_const_fn_unstable(const_eval_select)]
254253
pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr {
255254
// SAFETY: The caller has provided a pointer that points to a valid C
256255
// string with a NUL terminator of size less than `isize::MAX`, whose

0 commit comments

Comments
 (0)