use crate::cmp::Ordering;
use crate::convert::{Infallible, TryFrom};
use crate::fmt;
-use crate::hash::{Hash, self};
+use crate::hash::{self, Hash};
use crate::marker::Unsize;
use crate::slice::{Iter, IterMut};
}
impl TryFromSliceError {
- #[unstable(feature = "array_error_internals",
- reason = "available through Error trait and this method should not \
+ #[unstable(
+ feature = "array_error_internals",
+ reason = "available through Error trait and this method should not \
be exposed publicly",
- issue = "0")]
+ issue = "none"
+ )]
#[inline]
#[doc(hidden)]
pub fn __description(&self) -> &str {
}
/// Implemented for lengths where trait impls are allowed on arrays in core/std
-#[rustc_on_unimplemented(
- message="arrays only have std trait implementations for lengths 0..=32",
+#[rustc_on_unimplemented(message = "arrays only have std trait implementations for lengths 0..=32")]
+#[unstable(
+ feature = "const_generic_impls_guard",
+ issue = "none",
+ reason = "will never be stable, just a temporary step until const generics are stable"
)]
-#[unstable(feature = "const_generic_impls_guard", issue = "0",
- reason = "will never be stable, just a temporary step until const generics are stable")]
pub trait LengthAtMost32 {}
macro_rules! array_impls {
($($N:literal)+) => {
$(
- #[unstable(feature = "const_generic_impls_guard", issue = "0")]
+ #[unstable(feature = "const_generic_impls_guard", issue = "none")]
impl<T> LengthAtMost32 for [T; $N] {}
)+
}
};
}
-array_impl_default!{32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}
+array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}