about summary refs log tree commit diff
path: root/library/core/src/array
diff options
context:
space:
mode:
authorEvgenii Zheltonozhskii <zheltonozhskiy@gmail.com>2025-07-21 12:49:45 +0300
committerEvgenii Zheltonozhskii <zheltonozhskiy@gmail.com>2025-07-21 12:49:45 +0300
commit3c76e3d0026ea9904358b1614bbd9c4f8b7cedf5 (patch)
tree5d3aeecf65661c610495cc977f2af80cbd9317c7 /library/core/src/array
parent12865ffd0dfb4ea969e2f16eb0140238bb9dd382 (diff)
downloadrust-3c76e3d0026ea9904358b1614bbd9c4f8b7cedf5.tar.gz
rust-3c76e3d0026ea9904358b1614bbd9c4f8b7cedf5.zip
Constify Try, From, TryFrom
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 62203e132b7..1c23218552a 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -198,7 +198,8 @@ impl Error for TryFromSliceError {
 }
 
 #[stable(feature = "try_from_slice_error", since = "1.36.0")]
-impl From<Infallible> for TryFromSliceError {
+#[rustc_const_unstable(feature = "const_try", issue = "74935")]
+impl const From<Infallible> for TryFromSliceError {
     fn from(x: Infallible) -> TryFromSliceError {
         match x {}
     }