Skip to content

Commit a3ee65f

Browse files
committed
Remove a useless allowed attr
1 parent af3c6e7 commit a3ee65f

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

library/core/src/slice/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ impl<T> [T] {
6666
#[rustc_const_stable(feature = "const_slice_len", since = "1.32.0")]
6767
#[inline]
6868
// SAFETY: const sound because we transmute out the length field as a usize (which it must be)
69-
#[allow(unused_attributes)]
7069
#[allow_internal_unstable(const_fn_union)]
7170
pub const fn len(&self) -> usize {
7271
// SAFETY: this is safe because `&[T]` and `FatPtr<T>` have the same layout.

library/std/src/os/raw/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#![stable(feature = "raw_os", since = "1.1.0")]
1010

1111
#[cfg(test)]
12-
#[allow(unused_imports)]
1312
mod tests;
1413

1514
#[doc(include = "char.md")]

library/std/src/os/raw/tests.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::any::TypeId;
2-
use crate::mem;
32

43
macro_rules! ok {
54
($($t:ident)*) => {$(

0 commit comments

Comments
 (0)