about summary refs log tree commit diff
path: root/library/core/src/array
diff options
context:
space:
mode:
authorLukas Markeffsky <@>2024-11-01 22:08:23 +0100
committerLukas Markeffsky <@>2024-11-02 01:37:45 +0100
commit2a6a70606d3d87484d468d60e3e351c2a9ab6819 (patch)
treea757225dc91b2c2f9848a3dcd603f26b3f84ccb4 /library/core/src/array
parent7c7bb7dc017545db732f5cffec684bbaeae0a9a0 (diff)
downloadrust-2a6a70606d3d87484d468d60e3e351c2a9ab6819.tar.gz
rust-2a6a70606d3d87484d468d60e3e351c2a9ab6819.zip
fix some stability annotations
Diffstat (limited to 'library/core/src/array')
-rw-r--r--library/core/src/array/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs
index 9b28b8b613e..4764d7f0b0f 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -2,7 +2,7 @@
 //!
 //! *[See also the array primitive type](array).*
 
-#![stable(feature = "core_array", since = "1.36.0")]
+#![stable(feature = "core_array", since = "1.35.0")]
 
 use crate::borrow::{Borrow, BorrowMut};
 use crate::cmp::Ordering;
@@ -154,10 +154,11 @@ pub const fn from_mut<T>(s: &mut T) -> &mut [T; 1] {
 
 /// The error type returned when a conversion from a slice to an array fails.
 #[stable(feature = "try_from", since = "1.34.0")]
+#[rustc_allowed_through_unstable_modules]
 #[derive(Debug, Copy, Clone)]
 pub struct TryFromSliceError(());
 
-#[stable(feature = "core_array", since = "1.36.0")]
+#[stable(feature = "core_array", since = "1.35.0")]
 impl fmt::Display for TryFromSliceError {
     #[inline]
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {