Skip to content

Commit 30f629b

Browse files
committed
Stabilize char_max_len
1 parent 8365fcb commit 30f629b

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed

library/alloc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
#![feature(bstr_internals)]
105105
#![feature(cast_maybe_uninit)]
106106
#![feature(char_internals)]
107-
#![feature(char_max_len)]
108107
#![feature(clone_to_uninit)]
109108
#![feature(coerce_unsized)]
110109
#![feature(const_default)]

library/alloctests/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#![feature(iter_array_chunks)]
44
#![feature(assert_matches)]
55
#![feature(btree_extract_if)]
6-
#![feature(char_max_len)]
76
#![feature(cow_is_borrowed)]
87
#![feature(core_intrinsics)]
98
#![feature(downcast_unchecked)]

library/core/src/char/methods.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ impl char {
7474

7575
/// The maximum number of bytes required to [encode](char::encode_utf8) a `char` to
7676
/// UTF-8 encoding.
77-
#[unstable(feature = "char_max_len", issue = "121714")]
77+
#[stable(feature = "char_max_len", since = "CURRENT_RUSTC_VERSION")]
7878
pub const MAX_LEN_UTF8: usize = 4;
7979

8080
/// The maximum number of two-byte units required to [encode](char::encode_utf16) a `char`
8181
/// to UTF-16 encoding.
82-
#[unstable(feature = "char_max_len", issue = "121714")]
82+
#[stable(feature = "char_max_len", since = "CURRENT_RUSTC_VERSION")]
8383
pub const MAX_LEN_UTF16: usize = 2;
8484

8585
/// `U+FFFD REPLACEMENT CHARACTER` (�) is used in Unicode to represent a

library/core/src/char/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ pub const MAX: char = char::MAX;
9797

9898
/// The maximum number of bytes required to [encode](char::encode_utf8) a `char` to
9999
/// UTF-8 encoding.
100-
#[unstable(feature = "char_max_len", issue = "121714")]
100+
#[stable(feature = "char_max_len", since = "CURRENT_RUSTC_VERSION")]
101101
pub const MAX_LEN_UTF8: usize = char::MAX_LEN_UTF8;
102102

103103
/// The maximum number of two-byte units required to [encode](char::encode_utf16) a `char`
104104
/// to UTF-16 encoding.
105-
#[unstable(feature = "char_max_len", issue = "121714")]
105+
#[stable(feature = "char_max_len", since = "CURRENT_RUSTC_VERSION")]
106106
pub const MAX_LEN_UTF16: usize = char::MAX_LEN_UTF16;
107107

108108
/// `U+FFFD REPLACEMENT CHARACTER` (�) is used in Unicode to represent a

library/coretests/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#![feature(bool_to_result)]
1414
#![feature(bstr)]
1515
#![feature(cfg_target_has_reliable_f16_f128)]
16-
#![feature(char_max_len)]
1716
#![feature(clone_to_uninit)]
1817
#![feature(const_deref)]
1918
#![feature(const_destruct)]

library/std/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@
280280
#![feature(cfg_sanitizer_cfi)]
281281
#![feature(cfg_target_thread_local)]
282282
#![feature(cfi_encoding)]
283-
#![feature(char_max_len)]
284283
#![feature(const_trait_impl)]
285284
#![feature(core_float_math)]
286285
#![feature(decl_macro)]

0 commit comments

Comments
 (0)