Skip to content

Commit

Permalink
Remove unneeded attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus authored Oct 28, 2022
1 parent 36dbb07 commit b3f9277
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/core/src/ffi/c_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3f9277

Please sign in to comment.