Skip to content

Commit 5a04193

Browse files
committed
Stabilize feature cstr_is_empty
1 parent 9ecda8d commit 5a04193

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/core/src/ffi/c_str.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,6 @@ impl CStr {
517517
/// # Examples
518518
///
519519
/// ```
520-
/// #![feature(cstr_is_empty)]
521-
///
522520
/// use std::ffi::CStr;
523521
/// # use std::ffi::FromBytesWithNulError;
524522
///
@@ -533,7 +531,8 @@ impl CStr {
533531
/// # }
534532
/// ```
535533
#[inline]
536-
#[unstable(feature = "cstr_is_empty", issue = "102444")]
534+
#[stable(feature = "cstr_is_empty", since = "CURRENT_RUSTC_VERSION")]
535+
#[rustc_const_stable(feature = "cstr_is_empty", since = "CURRENT_RUSTC_VERSION")]
537536
pub const fn is_empty(&self) -> bool {
538537
// SAFETY: We know there is at least one byte; for empty strings it
539538
// is the NUL terminator.

0 commit comments

Comments
 (0)