We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cstr_is_empty
1 parent 9ecda8d commit 5a04193Copy full SHA for 5a04193
library/core/src/ffi/c_str.rs
@@ -517,8 +517,6 @@ impl CStr {
517
/// # Examples
518
///
519
/// ```
520
- /// #![feature(cstr_is_empty)]
521
- ///
522
/// use std::ffi::CStr;
523
/// # use std::ffi::FromBytesWithNulError;
524
@@ -533,7 +531,8 @@ impl CStr {
533
531
/// # }
534
532
535
#[inline]
536
- #[unstable(feature = "cstr_is_empty", issue = "102444")]
+ #[stable(feature = "cstr_is_empty", since = "CURRENT_RUSTC_VERSION")]
+ #[rustc_const_stable(feature = "cstr_is_empty", since = "CURRENT_RUSTC_VERSION")]
537
pub const fn is_empty(&self) -> bool {
538
// SAFETY: We know there is at least one byte; for empty strings it
539
// is the NUL terminator.
0 commit comments