@@ -1711,6 +1711,7 @@ impl str {
1711
1711
///
1712
1712
/// assert_eq!("Hello\tworld", s.trim());
1713
1713
/// ```
1714
+ #[ inline]
1714
1715
#[ must_use = "this returns the trimmed string as a slice, \
1715
1716
without modifying the original"]
1716
1717
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -1748,6 +1749,7 @@ impl str {
1748
1749
/// let s = " עברית ";
1749
1750
/// assert!(Some('ע') == s.trim_start().chars().next());
1750
1751
/// ```
1752
+ #[ inline]
1751
1753
#[ must_use = "this returns the trimmed string as a new slice, \
1752
1754
without modifying the original"]
1753
1755
#[ stable( feature = "trim_direction" , since = "1.30.0" ) ]
@@ -1785,6 +1787,7 @@ impl str {
1785
1787
/// let s = " עברית ";
1786
1788
/// assert!(Some('ת') == s.trim_end().chars().rev().next());
1787
1789
/// ```
1790
+ #[ inline]
1788
1791
#[ must_use = "this returns the trimmed string as a new slice, \
1789
1792
without modifying the original"]
1790
1793
#[ stable( feature = "trim_direction" , since = "1.30.0" ) ]
@@ -1823,6 +1826,7 @@ impl str {
1823
1826
/// let s = " עברית";
1824
1827
/// assert!(Some('ע') == s.trim_left().chars().next());
1825
1828
/// ```
1829
+ #[ inline]
1826
1830
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1827
1831
#[ rustc_deprecated(
1828
1832
since = "1.33.0" ,
@@ -1864,6 +1868,7 @@ impl str {
1864
1868
/// let s = "עברית ";
1865
1869
/// assert!(Some('ת') == s.trim_right().chars().rev().next());
1866
1870
/// ```
1871
+ #[ inline]
1867
1872
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1868
1873
#[ rustc_deprecated(
1869
1874
since = "1.33.0" ,
@@ -2261,6 +2266,7 @@ impl str {
2261
2266
/// assert_eq!("GRüßE, JüRGEN ❤", s);
2262
2267
/// ```
2263
2268
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
2269
+ #[ inline]
2264
2270
pub fn make_ascii_uppercase ( & mut self ) {
2265
2271
// SAFETY: safe because we transmute two types with the same layout.
2266
2272
let me = unsafe { self . as_bytes_mut ( ) } ;
@@ -2287,6 +2293,7 @@ impl str {
2287
2293
/// assert_eq!("grÜße, jÜrgen ❤", s);
2288
2294
/// ```
2289
2295
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
2296
+ #[ inline]
2290
2297
pub fn make_ascii_lowercase ( & mut self ) {
2291
2298
// SAFETY: safe because we transmute two types with the same layout.
2292
2299
let me = unsafe { self . as_bytes_mut ( ) } ;
0 commit comments