File tree 4 files changed +3
-3
lines changed
4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ pub(super) const fn from_u32(i: u32) -> Option<char> {
18
18
}
19
19
20
20
/// Converts a `u32` to a `char`, ignoring validity. See [`char::from_u32_unchecked`].
21
- #[ rustc_const_unstable( feature = "const_char_convert" , issue = "89259" ) ]
22
21
#[ inline]
23
22
#[ must_use]
24
23
pub ( super ) const unsafe fn from_u32_unchecked ( i : u32 ) -> char {
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ impl char {
183
183
/// assert_eq!('❤', c);
184
184
/// ```
185
185
#[ stable( feature = "assoc_char_funcs" , since = "1.52.0" ) ]
186
- #[ rustc_const_unstable( feature = "const_char_convert " , issue = "89259" ) ]
186
+ #[ rustc_const_unstable( feature = "const_char_from_u32_unchecked " , issue = "89259" ) ]
187
187
#[ must_use]
188
188
#[ inline]
189
189
pub const unsafe fn from_u32_unchecked ( i : u32 ) -> char {
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ pub const fn from_u32(i: u32) -> Option<char> {
120
120
/// Converts a `u32` to a `char`, ignoring validity. Use [`char::from_u32_unchecked`].
121
121
/// instead.
122
122
#[ stable( feature = "char_from_unchecked" , since = "1.5.0" ) ]
123
- #[ rustc_const_unstable( feature = "const_char_convert " , issue = "89259" ) ]
123
+ #[ rustc_const_unstable( feature = "const_char_from_u32_unchecked " , issue = "89259" ) ]
124
124
#[ must_use]
125
125
#[ inline]
126
126
pub const unsafe fn from_u32_unchecked ( i : u32 ) -> char {
Original file line number Diff line number Diff line change 105
105
#![ feature( const_caller_location) ]
106
106
#![ feature( const_cell_into_inner) ]
107
107
#![ feature( const_char_convert) ]
108
+ #![ feature( const_char_from_u32_unchecked) ]
108
109
#![ feature( const_clone) ]
109
110
#![ feature( const_cmp) ]
110
111
#![ feature( const_discriminant) ]
You can’t perform that action at this time.
0 commit comments