@@ -3601,7 +3601,11 @@ impl str {
3601
3601
/// assert!(Some('ע') == s.trim_left().chars().next());
3602
3602
/// ```
3603
3603
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3604
- #[ rustc_deprecated( reason = "superseded by `trim_start`" , since = "1.33.0" ) ]
3604
+ #[ rustc_deprecated(
3605
+ since = "1.33.0" ,
3606
+ reason = "superseded by `trim_start`" ,
3607
+ suggestion = "trim_start" ,
3608
+ ) ]
3605
3609
pub fn trim_left ( & self ) -> & str {
3606
3610
self . trim_start ( )
3607
3611
}
@@ -3638,7 +3642,11 @@ impl str {
3638
3642
/// assert!(Some('ת') == s.trim_right().chars().rev().next());
3639
3643
/// ```
3640
3644
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3641
- #[ rustc_deprecated( reason = "superseded by `trim_end`" , since = "1.33.0" ) ]
3645
+ #[ rustc_deprecated(
3646
+ since = "1.33.0" ,
3647
+ reason = "superseded by `trim_end`" ,
3648
+ suggestion = "trim_end" ,
3649
+ ) ]
3642
3650
pub fn trim_right ( & self ) -> & str {
3643
3651
self . trim_end ( )
3644
3652
}
@@ -3802,7 +3810,11 @@ impl str {
3802
3810
/// assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
3803
3811
/// ```
3804
3812
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3805
- #[ rustc_deprecated( reason = "superseded by `trim_start_matches`" , since = "1.33.0" ) ]
3813
+ #[ rustc_deprecated(
3814
+ since = "1.33.0" ,
3815
+ reason = "superseded by `trim_start_matches`" ,
3816
+ suggestion = "trim_start_matches" ,
3817
+ ) ]
3806
3818
pub fn trim_left_matches < ' a , P : Pattern < ' a > > ( & ' a self , pat : P ) -> & ' a str {
3807
3819
self . trim_start_matches ( pat)
3808
3820
}
@@ -3840,7 +3852,11 @@ impl str {
3840
3852
/// assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
3841
3853
/// ```
3842
3854
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3843
- #[ rustc_deprecated( reason = "superseded by `trim_end_matches`" , since = "1.33.0" ) ]
3855
+ #[ rustc_deprecated(
3856
+ since = "1.33.0" ,
3857
+ reason = "superseded by `trim_end_matches`" ,
3858
+ suggestion = "trim_end_matches" ,
3859
+ ) ]
3844
3860
pub fn trim_right_matches < ' a , P : Pattern < ' a > > ( & ' a self , pat : P ) -> & ' a str
3845
3861
where P :: Searcher : ReverseSearcher < ' a >
3846
3862
{
0 commit comments