Skip to content

Commit 7b41ad1

Browse files
committed
Update since attributes for new const_ascii_methods_on_intrinsics to 1.52.0
1 parent 6a72491 commit 7b41ad1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

library/core/src/char/methods.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ impl char {
569569
/// assert_eq!(len, tokyo.len());
570570
/// ```
571571
#[stable(feature = "rust1", since = "1.0.0")]
572-
#[rustc_const_stable(feature = "const_char_len_utf", since = "1.50.0")]
572+
#[rustc_const_stable(feature = "const_char_len_utf", since = "1.52.0")]
573573
#[inline]
574574
pub const fn len_utf8(self) -> usize {
575575
len_utf8(self as u32)
@@ -595,7 +595,7 @@ impl char {
595595
/// assert_eq!(len, 2);
596596
/// ```
597597
#[stable(feature = "rust1", since = "1.0.0")]
598-
#[rustc_const_stable(feature = "const_char_len_utf", since = "1.50.0")]
598+
#[rustc_const_stable(feature = "const_char_len_utf", since = "1.52.0")]
599599
#[inline]
600600
pub const fn len_utf16(self) -> usize {
601601
let ch = self as u32;
@@ -1088,7 +1088,7 @@ impl char {
10881088
/// [`make_ascii_uppercase()`]: #method.make_ascii_uppercase
10891089
/// [`to_uppercase()`]: #method.to_uppercase
10901090
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
1091-
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.50.0")]
1091+
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.52.0")]
10921092
#[inline]
10931093
pub const fn to_ascii_uppercase(&self) -> char {
10941094
if self.is_ascii_lowercase() {
@@ -1121,7 +1121,7 @@ impl char {
11211121
/// [`make_ascii_lowercase()`]: #method.make_ascii_lowercase
11221122
/// [`to_lowercase()`]: #method.to_lowercase
11231123
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
1124-
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.50.0")]
1124+
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.52.0")]
11251125
#[inline]
11261126
pub const fn to_ascii_lowercase(&self) -> char {
11271127
if self.is_ascii_uppercase() {
@@ -1147,7 +1147,7 @@ impl char {
11471147
/// assert!(!upper_a.eq_ignore_ascii_case(&lower_z));
11481148
/// ```
11491149
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
1150-
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.50.0")]
1150+
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.52.0")]
11511151
#[inline]
11521152
pub const fn eq_ignore_ascii_case(&self, other: &char) -> bool {
11531153
self.to_ascii_lowercase() == other.to_ascii_lowercase()

library/core/src/num/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl u8 {
195195
///
196196
/// [`make_ascii_uppercase`]: #method.make_ascii_uppercase
197197
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
198-
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.50.0")]
198+
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.52.0")]
199199
#[inline]
200200
pub const fn to_ascii_uppercase(&self) -> u8 {
201201
// Unset the fifth bit if this is a lowercase letter
@@ -219,7 +219,7 @@ impl u8 {
219219
///
220220
/// [`make_ascii_lowercase`]: #method.make_ascii_lowercase
221221
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
222-
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.50.0")]
222+
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.52.0")]
223223
#[inline]
224224
pub const fn to_ascii_lowercase(&self) -> u8 {
225225
// Set the fifth bit if this is an uppercase letter
@@ -245,7 +245,7 @@ impl u8 {
245245
/// assert!(lowercase_a.eq_ignore_ascii_case(&uppercase_a));
246246
/// ```
247247
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
248-
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.50.0")]
248+
#[rustc_const_stable(feature = "const_ascii_methods_on_intrinsics", since = "1.52.0")]
249249
#[inline]
250250
pub const fn eq_ignore_ascii_case(&self, other: &u8) -> bool {
251251
self.to_ascii_lowercase() == other.to_ascii_lowercase()

0 commit comments

Comments
 (0)