@@ -715,7 +715,6 @@ impl OsStr {
715
715
/// # Examples
716
716
///
717
717
/// ```
718
- /// #![feature(osstring_ascii)]
719
718
/// use std::ffi::OsString;
720
719
///
721
720
/// let mut s = OsString::from("GRÜßE, JÜRGEN ❤");
@@ -724,7 +723,7 @@ impl OsStr {
724
723
///
725
724
/// assert_eq!("grÜße, jÜrgen ❤", s);
726
725
/// ```
727
- #[ unstable ( feature = "osstring_ascii" , issue = "70516 " ) ]
726
+ #[ stable ( feature = "osstring_ascii" , since = "1.52.0 " ) ]
728
727
#[ inline]
729
728
pub fn make_ascii_lowercase ( & mut self ) {
730
729
self . inner . make_ascii_lowercase ( )
@@ -741,7 +740,6 @@ impl OsStr {
741
740
/// # Examples
742
741
///
743
742
/// ```
744
- /// #![feature(osstring_ascii)]
745
743
/// use std::ffi::OsString;
746
744
///
747
745
/// let mut s = OsString::from("Grüße, Jürgen ❤");
@@ -750,7 +748,7 @@ impl OsStr {
750
748
///
751
749
/// assert_eq!("GRüßE, JüRGEN ❤", s);
752
750
/// ```
753
- #[ unstable ( feature = "osstring_ascii" , issue = "70516 " ) ]
751
+ #[ stable ( feature = "osstring_ascii" , since = "1.52.0 " ) ]
754
752
#[ inline]
755
753
pub fn make_ascii_uppercase ( & mut self ) {
756
754
self . inner . make_ascii_uppercase ( )
@@ -767,13 +765,12 @@ impl OsStr {
767
765
/// # Examples
768
766
///
769
767
/// ```
770
- /// #![feature(osstring_ascii)]
771
768
/// use std::ffi::OsString;
772
769
/// let s = OsString::from("Grüße, Jürgen ❤");
773
770
///
774
771
/// assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
775
772
/// ```
776
- #[ unstable ( feature = "osstring_ascii" , issue = "70516 " ) ]
773
+ #[ stable ( feature = "osstring_ascii" , since = "1.52.0 " ) ]
777
774
pub fn to_ascii_lowercase ( & self ) -> OsString {
778
775
OsString :: from_inner ( self . inner . to_ascii_lowercase ( ) )
779
776
}
@@ -789,13 +786,12 @@ impl OsStr {
789
786
/// # Examples
790
787
///
791
788
/// ```
792
- /// #![feature(osstring_ascii)]
793
789
/// use std::ffi::OsString;
794
790
/// let s = OsString::from("Grüße, Jürgen ❤");
795
791
///
796
792
/// assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
797
793
/// ```
798
- #[ unstable ( feature = "osstring_ascii" , issue = "70516 " ) ]
794
+ #[ stable ( feature = "osstring_ascii" , since = "1.52.0 " ) ]
799
795
pub fn to_ascii_uppercase ( & self ) -> OsString {
800
796
OsString :: from_inner ( self . inner . to_ascii_uppercase ( ) )
801
797
}
@@ -805,7 +801,6 @@ impl OsStr {
805
801
/// # Examples
806
802
///
807
803
/// ```
808
- /// #![feature(osstring_ascii)]
809
804
/// use std::ffi::OsString;
810
805
///
811
806
/// let ascii = OsString::from("hello!\n");
@@ -814,7 +809,7 @@ impl OsStr {
814
809
/// assert!(ascii.is_ascii());
815
810
/// assert!(!non_ascii.is_ascii());
816
811
/// ```
817
- #[ unstable ( feature = "osstring_ascii" , issue = "70516 " ) ]
812
+ #[ stable ( feature = "osstring_ascii" , since = "1.52.0 " ) ]
818
813
#[ inline]
819
814
pub fn is_ascii ( & self ) -> bool {
820
815
self . inner . is_ascii ( )
@@ -828,14 +823,13 @@ impl OsStr {
828
823
/// # Examples
829
824
///
830
825
/// ```
831
- /// #![feature(osstring_ascii)]
832
826
/// use std::ffi::OsString;
833
827
///
834
828
/// assert!(OsString::from("Ferris").eq_ignore_ascii_case("FERRIS"));
835
829
/// assert!(OsString::from("Ferrös").eq_ignore_ascii_case("FERRöS"));
836
830
/// assert!(!OsString::from("Ferrös").eq_ignore_ascii_case("FERRÖS"));
837
831
/// ```
838
- #[ unstable ( feature = "osstring_ascii" , issue = "70516 " ) ]
832
+ #[ stable ( feature = "osstring_ascii" , since = "1.52.0 " ) ]
839
833
pub fn eq_ignore_ascii_case < S : AsRef < OsStr > > ( & self , other : S ) -> bool {
840
834
self . inner . eq_ignore_ascii_case ( & other. as_ref ( ) . inner )
841
835
}
0 commit comments