File tree Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Expand file tree Collapse file tree 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> {
1818}
1919
2020/// Converts a `u32` to a `char`, ignoring validity. See [`char::from_u32_unchecked`].
21- #[ rustc_const_unstable( feature = "const_char_convert" , issue = "89259" ) ]
2221#[ inline]
2322#[ must_use]
2423pub ( 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 {
183183 /// assert_eq!('❤', c);
184184 /// ```
185185 #[ 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" ) ]
187187 #[ must_use]
188188 #[ inline]
189189 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> {
120120/// Converts a `u32` to a `char`, ignoring validity. Use [`char::from_u32_unchecked`].
121121/// instead.
122122#[ 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" ) ]
124124#[ must_use]
125125#[ inline]
126126pub const unsafe fn from_u32_unchecked ( i : u32 ) -> char {
Original file line number Diff line number Diff line change 105105#![ feature( const_caller_location) ]
106106#![ feature( const_cell_into_inner) ]
107107#![ feature( const_char_convert) ]
108+ #![ feature( const_char_from_u32_unchecked) ]
108109#![ feature( const_clone) ]
109110#![ feature( const_cmp) ]
110111#![ feature( const_discriminant) ]
You can’t perform that action at this time.
0 commit comments