Skip to content

Commit eb9ec31

Browse files
committed
2 parents cd82e45 + 567f0e1 commit eb9ec31

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

compiler/rustc_middle/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2626
#![feature(array_windows)]
2727
#![feature(assert_matches)]
28-
#![feature(assoc_char_funcs)]
2928
#![feature(backtrace)]
3029
#![feature(bool_to_option)]
3130
#![feature(box_patterns)]

library/core/src/char/methods.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ impl char {
1818
///
1919
/// [Unicode Scalar Value]: http://www.unicode.org/glossary/#unicode_scalar_value
2020
/// [Code Point]: http://www.unicode.org/glossary/#code_point
21-
#[unstable(feature = "assoc_char_consts", reason = "recently added", issue = "71763")]
21+
#[stable(feature = "assoc_char_consts", since = "1.52.0")]
2222
pub const MAX: char = '\u{10ffff}';
2323

2424
/// `U+FFFD REPLACEMENT CHARACTER` (�) is used in Unicode to represent a
2525
/// decoding error.
2626
///
2727
/// It can occur, for example, when giving ill-formed UTF-8 bytes to
2828
/// [`String::from_utf8_lossy`](string/struct.String.html#method.from_utf8_lossy).
29-
#[unstable(feature = "assoc_char_consts", reason = "recently added", issue = "71763")]
29+
#[stable(feature = "assoc_char_consts", since = "1.52.0")]
3030
pub const REPLACEMENT_CHARACTER: char = '\u{FFFD}';
3131

3232
/// The version of [Unicode](http://www.unicode.org/) that the Unicode parts of
@@ -39,7 +39,7 @@ impl char {
3939
///
4040
/// The version numbering scheme is explained in
4141
/// [Unicode 11.0 or later, Section 3.1 Versions of the Unicode Standard](https://www.unicode.org/versions/Unicode11.0.0/ch03.pdf#page=4).
42-
#[unstable(feature = "assoc_char_consts", reason = "recently added", issue = "71763")]
42+
#[stable(feature = "assoc_char_consts", since = "1.52.0")]
4343
pub const UNICODE_VERSION: (u8, u8, u8) = crate::unicode::UNICODE_VERSION;
4444

4545
/// Creates an iterator over the UTF-16 encoded code points in `iter`,
@@ -88,7 +88,7 @@ impl char {
8888
/// "𝄞mus�ic�"
8989
/// );
9090
/// ```
91-
#[unstable(feature = "assoc_char_funcs", reason = "recently added", issue = "71763")]
91+
#[stable(feature = "assoc_char_funcs", since = "1.52.0")]
9292
#[inline]
9393
pub fn decode_utf16<I: IntoIterator<Item = u16>>(iter: I) -> DecodeUtf16<I::IntoIter> {
9494
super::decode::decode_utf16(iter)
@@ -136,7 +136,7 @@ impl char {
136136
///
137137
/// assert_eq!(None, c);
138138
/// ```
139-
#[unstable(feature = "assoc_char_funcs", reason = "recently added", issue = "71763")]
139+
#[stable(feature = "assoc_char_funcs", since = "1.52.0")]
140140
#[inline]
141141
pub fn from_u32(i: u32) -> Option<char> {
142142
super::convert::from_u32(i)
@@ -177,7 +177,7 @@ impl char {
177177
///
178178
/// assert_eq!('❤', c);
179179
/// ```
180-
#[unstable(feature = "assoc_char_funcs", reason = "recently added", issue = "71763")]
180+
#[stable(feature = "assoc_char_funcs", since = "1.52.0")]
181181
#[inline]
182182
pub unsafe fn from_u32_unchecked(i: u32) -> char {
183183
// SAFETY: the safety contract must be upheld by the caller.
@@ -233,7 +233,7 @@ impl char {
233233
/// // this panics
234234
/// char::from_digit(1, 37);
235235
/// ```
236-
#[unstable(feature = "assoc_char_funcs", reason = "recently added", issue = "71763")]
236+
#[stable(feature = "assoc_char_funcs", since = "1.52.0")]
237237
#[inline]
238238
pub fn from_digit(num: u32, radix: u32) -> Option<char> {
239239
super::convert::from_digit(num, radix)

0 commit comments

Comments
 (0)