diff options
| author | bors <bors@rust-lang.org> | 2017-12-12 03:30:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-12-12 03:30:43 +0000 |
| commit | 3a0b65284686a5d984994708596d029267e7bf7b (patch) | |
| tree | eeb0bb97a65954e0feb39b45f1aee593dfa58212 /src/libstd_unicode | |
| parent | 5951f8d1ba892a03a4cb7529a38c2452f5037864 (diff) | |
| parent | 6aef5e3b2e1112c78aa20ab687959a4025529138 (diff) | |
| download | rust-3a0b65284686a5d984994708596d029267e7bf7b.tar.gz rust-3a0b65284686a5d984994708596d029267e7bf7b.zip | |
Auto merge of #46411 - rillian:str_ascii, r=kennytm
Mark ascii methods on primitive types stable in 1.23.0 not 1.21.0. The ascii_methods_on_intrinsics feature stabilization didn't land in time for 1.21.0. Update the annotation so the documentation is correct about when these methods became available.
Diffstat (limited to 'src/libstd_unicode')
| -rw-r--r-- | src/libstd_unicode/char.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd_unicode/char.rs b/src/libstd_unicode/char.rs index 293c66148ab..f9ad6f9fcc1 100644 --- a/src/libstd_unicode/char.rs +++ b/src/libstd_unicode/char.rs @@ -938,7 +938,7 @@ impl char { /// assert!(ascii.is_ascii()); /// assert!(!non_ascii.is_ascii()); /// ``` - #[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")] + #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")] #[inline] pub fn is_ascii(&self) -> bool { *self as u32 <= 0x7F @@ -966,7 +966,7 @@ impl char { /// /// [`make_ascii_uppercase`]: #method.make_ascii_uppercase /// [`to_uppercase`]: #method.to_uppercase - #[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")] + #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")] #[inline] pub fn to_ascii_uppercase(&self) -> char { if self.is_ascii() { @@ -998,7 +998,7 @@ impl char { /// /// [`make_ascii_lowercase`]: #method.make_ascii_lowercase /// [`to_lowercase`]: #method.to_lowercase - #[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")] + #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")] #[inline] pub fn to_ascii_lowercase(&self) -> char { if self.is_ascii() { @@ -1023,7 +1023,7 @@ impl char { /// assert!(upper_a.eq_ignore_ascii_case(&upper_a)); /// assert!(!upper_a.eq_ignore_ascii_case(&lower_z)); /// ``` - #[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")] + #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")] #[inline] pub fn eq_ignore_ascii_case(&self, other: &char) -> bool { self.to_ascii_lowercase() == other.to_ascii_lowercase() @@ -1048,7 +1048,7 @@ impl char { /// ``` /// /// [`to_ascii_uppercase`]: #method.to_ascii_uppercase - #[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")] + #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")] #[inline] pub fn make_ascii_uppercase(&mut self) { *self = self.to_ascii_uppercase(); @@ -1073,7 +1073,7 @@ impl char { /// ``` /// /// [`to_ascii_lowercase`]: #method.to_ascii_lowercase - #[stable(feature = "ascii_methods_on_intrinsics", since = "1.21.0")] + #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")] #[inline] pub fn make_ascii_lowercase(&mut self) { *self = self.to_ascii_lowercase(); |
