about summary refs log tree commit diff
path: root/library/core/src/array
diff options
context:
space:
mode:
authorwoppopo <woppopo@protonmail.com>2021-10-18 19:19:28 +0900
committerwoppopo <woppopo@protonmail.com>2021-10-18 19:19:28 +0900
commit7936ecff4803e30ec0d3d85a531860025bb6b346 (patch)
treee1626696062780fbb387dd35e56850916ef60465 /library/core/src/array
parent5e02151318ddd431aea6d58e23948246c1446044 (diff)
downloadrust-7936ecff4803e30ec0d3d85a531860025bb6b346.tar.gz
rust-7936ecff4803e30ec0d3d85a531860025bb6b346.zip
Make more `From` impls `const`
Diffstat (limited to 'library/core/src/array')
-rw-r--r--library/core/src/array/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs
index 8d5c0510404..b27c36baf37 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -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 {}
     }