Remove unneeded attribute.

This commit is contained in:
Markus Reiter 2022-10-28 14:17:34 +02:00 committed by GitHub
parent 36dbb07daf
commit b3f9277a17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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