Skip to content

Commit f7b7aa3

Browse files
authored
Rollup merge of rust-lang#130154 - okaneco:stabilize_char_min, r=cuviper
Stabilize `char::MIN` FCP completed rust-lang#114298 (comment) Closes rust-lang#114298
2 parents 5a87e4c + 2bc7f6c commit f7b7aa3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

core/src/char/methods.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ impl char {
1515
/// for you:
1616
///
1717
/// ```
18-
/// #![feature(char_min)]
1918
/// let dist = u32::from(char::MAX) - u32::from(char::MIN);
2019
/// let size = (char::MIN..=char::MAX).count() as u32;
2120
/// assert!(size < dist);
@@ -29,15 +28,14 @@ impl char {
2928
/// # Examples
3029
///
3130
/// ```
32-
/// #![feature(char_min)]
3331
/// # fn something_which_returns_char() -> char { 'a' }
3432
/// let c: char = something_which_returns_char();
3533
/// assert!(char::MIN <= c);
3634
///
3735
/// let value_at_min = u32::from(char::MIN);
3836
/// assert_eq!(char::from_u32(value_at_min), Some('\0'));
3937
/// ```
40-
#[unstable(feature = "char_min", issue = "114298")]
38+
#[stable(feature = "char_min", since = "CURRENT_RUSTC_VERSION")]
4139
pub const MIN: char = '\0';
4240

4341
/// The highest valid code point a `char` can have, `'\u{10FFFF}'`.
@@ -48,7 +46,6 @@ impl char {
4846
/// for you:
4947
///
5048
/// ```
51-
/// #![feature(char_min)]
5249
/// let dist = u32::from(char::MAX) - u32::from(char::MIN);
5350
/// let size = (char::MIN..=char::MAX).count() as u32;
5451
/// assert!(size < dist);

0 commit comments

Comments
 (0)