@@ -97,7 +97,8 @@ pub unsafe fn from_u32_unchecked(i: u32) -> char {
9797}
9898
9999#[ stable( feature = "char_convert" , since = "1.13.0" ) ]
100- impl From < char > for u32 {
100+ #[ rustc_const_unstable( feature = "const_convert" , issue = "88674" ) ]
101+ impl const From < char > for u32 {
101102 /// Converts a [`char`] into a [`u32`].
102103 ///
103104 /// # Examples
@@ -116,7 +117,8 @@ impl From<char> for u32 {
116117}
117118
118119#[ stable( feature = "more_char_conversions" , since = "1.51.0" ) ]
119- impl From < char > for u64 {
120+ #[ rustc_const_unstable( feature = "const_convert" , issue = "88674" ) ]
121+ impl const From < char > for u64 {
120122 /// Converts a [`char`] into a [`u64`].
121123 ///
122124 /// # Examples
@@ -137,7 +139,8 @@ impl From<char> for u64 {
137139}
138140
139141#[ stable( feature = "more_char_conversions" , since = "1.51.0" ) ]
140- impl From < char > for u128 {
142+ #[ rustc_const_unstable( feature = "const_convert" , issue = "88674" ) ]
143+ impl const From < char > for u128 {
141144 /// Converts a [`char`] into a [`u128`].
142145 ///
143146 /// # Examples
@@ -176,7 +179,8 @@ impl From<char> for u128 {
176179/// for a superset of Windows-1252 that fills the remaining blanks with corresponding
177180/// C0 and C1 control codes.
178181#[ stable( feature = "char_convert" , since = "1.13.0" ) ]
179- impl From < u8 > for char {
182+ #[ rustc_const_unstable( feature = "const_convert" , issue = "88674" ) ]
183+ impl const From < u8 > for char {
180184 /// Converts a [`u8`] into a [`char`].
181185 ///
182186 /// # Examples
0 commit comments