Skip to content

Commit 0337017

Browse files
Stabilize ascii_ctype methods for u8 and char
The feature of those methods was renamed to "ascii_ctype_on_intrinsics".
1 parent 667f83d commit 0337017

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

src/libcore/num/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ impl u8 {
24202420
/// assert!(!lf.is_ascii_alphabetic());
24212421
/// assert!(!esc.is_ascii_alphabetic());
24222422
/// ```
2423-
#[unstable(feature = "ascii_ctype", issue = "39658")]
2423+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
24242424
#[inline]
24252425
pub fn is_ascii_alphabetic(&self) -> bool {
24262426
if *self >= 0x80 { return false; }
@@ -2458,7 +2458,7 @@ impl u8 {
24582458
/// assert!(!lf.is_ascii_uppercase());
24592459
/// assert!(!esc.is_ascii_uppercase());
24602460
/// ```
2461-
#[unstable(feature = "ascii_ctype", issue = "39658")]
2461+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
24622462
#[inline]
24632463
pub fn is_ascii_uppercase(&self) -> bool {
24642464
if *self >= 0x80 { return false }
@@ -2496,7 +2496,7 @@ impl u8 {
24962496
/// assert!(!lf.is_ascii_lowercase());
24972497
/// assert!(!esc.is_ascii_lowercase());
24982498
/// ```
2499-
#[unstable(feature = "ascii_ctype", issue = "39658")]
2499+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
25002500
#[inline]
25012501
pub fn is_ascii_lowercase(&self) -> bool {
25022502
if *self >= 0x80 { return false }
@@ -2537,7 +2537,7 @@ impl u8 {
25372537
/// assert!(!lf.is_ascii_alphanumeric());
25382538
/// assert!(!esc.is_ascii_alphanumeric());
25392539
/// ```
2540-
#[unstable(feature = "ascii_ctype", issue = "39658")]
2540+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
25412541
#[inline]
25422542
pub fn is_ascii_alphanumeric(&self) -> bool {
25432543
if *self >= 0x80 { return false }
@@ -2575,7 +2575,7 @@ impl u8 {
25752575
/// assert!(!lf.is_ascii_digit());
25762576
/// assert!(!esc.is_ascii_digit());
25772577
/// ```
2578-
#[unstable(feature = "ascii_ctype", issue = "39658")]
2578+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
25792579
#[inline]
25802580
pub fn is_ascii_digit(&self) -> bool {
25812581
if *self >= 0x80 { return false }
@@ -2616,7 +2616,7 @@ impl u8 {
26162616
/// assert!(!lf.is_ascii_hexdigit());
26172617
/// assert!(!esc.is_ascii_hexdigit());
26182618
/// ```
2619-
#[unstable(feature = "ascii_ctype", issue = "39658")]
2619+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
26202620
#[inline]
26212621
pub fn is_ascii_hexdigit(&self) -> bool {
26222622
if *self >= 0x80 { return false }
@@ -2658,7 +2658,7 @@ impl u8 {
26582658
/// assert!(!lf.is_ascii_punctuation());
26592659
/// assert!(!esc.is_ascii_punctuation());
26602660
/// ```
2661-
#[unstable(feature = "ascii_ctype", issue = "39658")]
2661+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
26622662
#[inline]
26632663
pub fn is_ascii_punctuation(&self) -> bool {
26642664
if *self >= 0x80 { return false }
@@ -2696,7 +2696,7 @@ impl u8 {
26962696
/// assert!(!lf.is_ascii_graphic());
26972697
/// assert!(!esc.is_ascii_graphic());
26982698
/// ```
2699-
#[unstable(feature = "ascii_ctype", issue = "39658")]
2699+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
27002700
#[inline]
27012701
pub fn is_ascii_graphic(&self) -> bool {
27022702
if *self >= 0x80 { return false; }
@@ -2751,7 +2751,7 @@ impl u8 {
27512751
/// assert!(lf.is_ascii_whitespace());
27522752
/// assert!(!esc.is_ascii_whitespace());
27532753
/// ```
2754-
#[unstable(feature = "ascii_ctype", issue = "39658")]
2754+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
27552755
#[inline]
27562756
pub fn is_ascii_whitespace(&self) -> bool {
27572757
if *self >= 0x80 { return false; }
@@ -2791,7 +2791,7 @@ impl u8 {
27912791
/// assert!(lf.is_ascii_control());
27922792
/// assert!(esc.is_ascii_control());
27932793
/// ```
2794-
#[unstable(feature = "ascii_ctype", issue = "39658")]
2794+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
27952795
#[inline]
27962796
pub fn is_ascii_control(&self) -> bool {
27972797
if *self >= 0x80 { return false; }

src/libstd_unicode/char.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ impl char {
11061106
/// assert!(!lf.is_ascii_alphabetic());
11071107
/// assert!(!esc.is_ascii_alphabetic());
11081108
/// ```
1109-
#[unstable(feature = "ascii_ctype", issue = "39658")]
1109+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
11101110
#[inline]
11111111
pub fn is_ascii_alphabetic(&self) -> bool {
11121112
self.is_ascii() && (*self as u8).is_ascii_alphabetic()
@@ -1140,7 +1140,7 @@ impl char {
11401140
/// assert!(!lf.is_ascii_uppercase());
11411141
/// assert!(!esc.is_ascii_uppercase());
11421142
/// ```
1143-
#[unstable(feature = "ascii_ctype", issue = "39658")]
1143+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
11441144
#[inline]
11451145
pub fn is_ascii_uppercase(&self) -> bool {
11461146
self.is_ascii() && (*self as u8).is_ascii_uppercase()
@@ -1174,7 +1174,7 @@ impl char {
11741174
/// assert!(!lf.is_ascii_lowercase());
11751175
/// assert!(!esc.is_ascii_lowercase());
11761176
/// ```
1177-
#[unstable(feature = "ascii_ctype", issue = "39658")]
1177+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
11781178
#[inline]
11791179
pub fn is_ascii_lowercase(&self) -> bool {
11801180
self.is_ascii() && (*self as u8).is_ascii_lowercase()
@@ -1211,7 +1211,7 @@ impl char {
12111211
/// assert!(!lf.is_ascii_alphanumeric());
12121212
/// assert!(!esc.is_ascii_alphanumeric());
12131213
/// ```
1214-
#[unstable(feature = "ascii_ctype", issue = "39658")]
1214+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
12151215
#[inline]
12161216
pub fn is_ascii_alphanumeric(&self) -> bool {
12171217
self.is_ascii() && (*self as u8).is_ascii_alphanumeric()
@@ -1245,7 +1245,7 @@ impl char {
12451245
/// assert!(!lf.is_ascii_digit());
12461246
/// assert!(!esc.is_ascii_digit());
12471247
/// ```
1248-
#[unstable(feature = "ascii_ctype", issue = "39658")]
1248+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
12491249
#[inline]
12501250
pub fn is_ascii_digit(&self) -> bool {
12511251
self.is_ascii() && (*self as u8).is_ascii_digit()
@@ -1282,7 +1282,7 @@ impl char {
12821282
/// assert!(!lf.is_ascii_hexdigit());
12831283
/// assert!(!esc.is_ascii_hexdigit());
12841284
/// ```
1285-
#[unstable(feature = "ascii_ctype", issue = "39658")]
1285+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
12861286
#[inline]
12871287
pub fn is_ascii_hexdigit(&self) -> bool {
12881288
self.is_ascii() && (*self as u8).is_ascii_hexdigit()
@@ -1320,7 +1320,7 @@ impl char {
13201320
/// assert!(!lf.is_ascii_punctuation());
13211321
/// assert!(!esc.is_ascii_punctuation());
13221322
/// ```
1323-
#[unstable(feature = "ascii_ctype", issue = "39658")]
1323+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
13241324
#[inline]
13251325
pub fn is_ascii_punctuation(&self) -> bool {
13261326
self.is_ascii() && (*self as u8).is_ascii_punctuation()
@@ -1354,7 +1354,7 @@ impl char {
13541354
/// assert!(!lf.is_ascii_graphic());
13551355
/// assert!(!esc.is_ascii_graphic());
13561356
/// ```
1357-
#[unstable(feature = "ascii_ctype", issue = "39658")]
1357+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
13581358
#[inline]
13591359
pub fn is_ascii_graphic(&self) -> bool {
13601360
self.is_ascii() && (*self as u8).is_ascii_graphic()
@@ -1405,7 +1405,7 @@ impl char {
14051405
/// assert!(lf.is_ascii_whitespace());
14061406
/// assert!(!esc.is_ascii_whitespace());
14071407
/// ```
1408-
#[unstable(feature = "ascii_ctype", issue = "39658")]
1408+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
14091409
#[inline]
14101410
pub fn is_ascii_whitespace(&self) -> bool {
14111411
self.is_ascii() && (*self as u8).is_ascii_whitespace()
@@ -1441,7 +1441,7 @@ impl char {
14411441
/// assert!(lf.is_ascii_control());
14421442
/// assert!(esc.is_ascii_control());
14431443
/// ```
1444-
#[unstable(feature = "ascii_ctype", issue = "39658")]
1444+
#[stable(feature = "ascii_ctype_on_intrinsics", since = "1.23.0")]
14451445
#[inline]
14461446
pub fn is_ascii_control(&self) -> bool {
14471447
self.is_ascii() && (*self as u8).is_ascii_control()

0 commit comments

Comments
 (0)