@@ -97,7 +97,8 @@ pub unsafe fn from_u32_unchecked(i: u32) -> char {
97
97
}
98
98
99
99
#[ 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 {
101
102
/// Converts a [`char`] into a [`u32`].
102
103
///
103
104
/// # Examples
@@ -116,7 +117,8 @@ impl From<char> for u32 {
116
117
}
117
118
118
119
#[ 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 {
120
122
/// Converts a [`char`] into a [`u64`].
121
123
///
122
124
/// # Examples
@@ -137,7 +139,8 @@ impl From<char> for u64 {
137
139
}
138
140
139
141
#[ 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 {
141
144
/// Converts a [`char`] into a [`u128`].
142
145
///
143
146
/// # Examples
@@ -176,7 +179,8 @@ impl From<char> for u128 {
176
179
/// for a superset of Windows-1252 that fills the remaining blanks with corresponding
177
180
/// C0 and C1 control codes.
178
181
#[ 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 {
180
184
/// Converts a [`u8`] into a [`char`].
181
185
///
182
186
/// # Examples
0 commit comments