Make more From impls const

This commit is contained in:
woppopo
2021-10-18 19:19:28 +09:00
parent 5e02151318
commit 7936ecff48
19 changed files with 103 additions and 27 deletions

View File

@@ -125,7 +125,8 @@ impl TryFromSliceError {
}
#[stable(feature = "try_from_slice_error", since = "1.36.0")]
impl From<Infallible> for TryFromSliceError {
#[rustc_const_unstable(feature = "const_convert", issue = "88674")]
impl const From<Infallible> for TryFromSliceError {
fn from(x: Infallible) -> TryFromSliceError {
match x {}
}