Skip to content

Commit e9398bc

Browse files
authored
Rollup merge of #80193 - zseri:stabilize-osstring-ascii, r=m-ou-se
stabilize `feature(osstring_ascii)` This PR stabilizes `feature(osstring_ascii)`. Fixes #70516.
2 parents 97663b6 + 0acdada commit e9398bc

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

library/std/src/ffi/os_str.rs

+6-12
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,6 @@ impl OsStr {
716716
/// # Examples
717717
///
718718
/// ```
719-
/// #![feature(osstring_ascii)]
720719
/// use std::ffi::OsString;
721720
///
722721
/// let mut s = OsString::from("GRÜßE, JÜRGEN ❤");
@@ -725,7 +724,7 @@ impl OsStr {
725724
///
726725
/// assert_eq!("grÜße, jÜrgen ❤", s);
727726
/// ```
728-
#[unstable(feature = "osstring_ascii", issue = "70516")]
727+
#[stable(feature = "osstring_ascii", since = "1.53.0")]
729728
#[inline]
730729
pub fn make_ascii_lowercase(&mut self) {
731730
self.inner.make_ascii_lowercase()
@@ -742,7 +741,6 @@ impl OsStr {
742741
/// # Examples
743742
///
744743
/// ```
745-
/// #![feature(osstring_ascii)]
746744
/// use std::ffi::OsString;
747745
///
748746
/// let mut s = OsString::from("Grüße, Jürgen ❤");
@@ -751,7 +749,7 @@ impl OsStr {
751749
///
752750
/// assert_eq!("GRüßE, JüRGEN ❤", s);
753751
/// ```
754-
#[unstable(feature = "osstring_ascii", issue = "70516")]
752+
#[stable(feature = "osstring_ascii", since = "1.53.0")]
755753
#[inline]
756754
pub fn make_ascii_uppercase(&mut self) {
757755
self.inner.make_ascii_uppercase()
@@ -768,13 +766,12 @@ impl OsStr {
768766
/// # Examples
769767
///
770768
/// ```
771-
/// #![feature(osstring_ascii)]
772769
/// use std::ffi::OsString;
773770
/// let s = OsString::from("Grüße, Jürgen ❤");
774771
///
775772
/// assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
776773
/// ```
777-
#[unstable(feature = "osstring_ascii", issue = "70516")]
774+
#[stable(feature = "osstring_ascii", since = "1.53.0")]
778775
pub fn to_ascii_lowercase(&self) -> OsString {
779776
OsString::from_inner(self.inner.to_ascii_lowercase())
780777
}
@@ -790,13 +787,12 @@ impl OsStr {
790787
/// # Examples
791788
///
792789
/// ```
793-
/// #![feature(osstring_ascii)]
794790
/// use std::ffi::OsString;
795791
/// let s = OsString::from("Grüße, Jürgen ❤");
796792
///
797793
/// assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
798794
/// ```
799-
#[unstable(feature = "osstring_ascii", issue = "70516")]
795+
#[stable(feature = "osstring_ascii", since = "1.53.0")]
800796
pub fn to_ascii_uppercase(&self) -> OsString {
801797
OsString::from_inner(self.inner.to_ascii_uppercase())
802798
}
@@ -806,7 +802,6 @@ impl OsStr {
806802
/// # Examples
807803
///
808804
/// ```
809-
/// #![feature(osstring_ascii)]
810805
/// use std::ffi::OsString;
811806
///
812807
/// let ascii = OsString::from("hello!\n");
@@ -815,7 +810,7 @@ impl OsStr {
815810
/// assert!(ascii.is_ascii());
816811
/// assert!(!non_ascii.is_ascii());
817812
/// ```
818-
#[unstable(feature = "osstring_ascii", issue = "70516")]
813+
#[stable(feature = "osstring_ascii", since = "1.53.0")]
819814
#[inline]
820815
pub fn is_ascii(&self) -> bool {
821816
self.inner.is_ascii()
@@ -829,14 +824,13 @@ impl OsStr {
829824
/// # Examples
830825
///
831826
/// ```
832-
/// #![feature(osstring_ascii)]
833827
/// use std::ffi::OsString;
834828
///
835829
/// assert!(OsString::from("Ferris").eq_ignore_ascii_case("FERRIS"));
836830
/// assert!(OsString::from("Ferrös").eq_ignore_ascii_case("FERRöS"));
837831
/// assert!(!OsString::from("Ferrös").eq_ignore_ascii_case("FERRÖS"));
838832
/// ```
839-
#[unstable(feature = "osstring_ascii", issue = "70516")]
833+
#[stable(feature = "osstring_ascii", since = "1.53.0")]
840834
pub fn eq_ignore_ascii_case<S: AsRef<OsStr>>(&self, other: S) -> bool {
841835
self.inner.eq_ignore_ascii_case(&other.as_ref().inner)
842836
}

0 commit comments

Comments
 (0)