From 3c76e3d0026ea9904358b1614bbd9c4f8b7cedf5 Mon Sep 17 00:00:00 2001 From: Evgenii Zheltonozhskii Date: Mon, 21 Jul 2025 12:49:45 +0300 Subject: Constify Try, From, TryFrom --- library/core/src/array/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'library/core/src/array') 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 for TryFromSliceError { +#[rustc_const_unstable(feature = "const_try", issue = "74935")] +impl const From for TryFromSliceError { fn from(x: Infallible) -> TryFromSliceError { match x {} } -- cgit 1.4.1-3-g733a5