Remove a useless allowed attr
This commit is contained in:
@@ -66,7 +66,6 @@ impl<T> [T] {
|
|||||||
#[rustc_const_stable(feature = "const_slice_len", since = "1.32.0")]
|
#[rustc_const_stable(feature = "const_slice_len", since = "1.32.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
// SAFETY: const sound because we transmute out the length field as a usize (which it must be)
|
// SAFETY: const sound because we transmute out the length field as a usize (which it must be)
|
||||||
#[allow(unused_attributes)]
|
|
||||||
#[allow_internal_unstable(const_fn_union)]
|
#[allow_internal_unstable(const_fn_union)]
|
||||||
pub const fn len(&self) -> usize {
|
pub const fn len(&self) -> usize {
|
||||||
// SAFETY: this is safe because `&[T]` and `FatPtr<T>` have the same layout.
|
// SAFETY: this is safe because `&[T]` and `FatPtr<T>` have the same layout.
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#![stable(feature = "raw_os", since = "1.1.0")]
|
#![stable(feature = "raw_os", since = "1.1.0")]
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[allow(unused_imports)]
|
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
#[doc(include = "char.md")]
|
#[doc(include = "char.md")]
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
use crate::any::TypeId;
|
use crate::any::TypeId;
|
||||||
use crate::mem;
|
|
||||||
|
|
||||||
macro_rules! ok {
|
macro_rules! ok {
|
||||||
($($t:ident)*) => {$(
|
($($t:ident)*) => {$(
|
||||||
|
|||||||
Reference in New Issue
Block a user