about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-09-07 01:17:48 +0200
committerGitHub <noreply@github.com>2020-09-07 01:17:48 +0200
commit7ad2b3ab29446480e0409c87bdcd04f0b1ddaf8d (patch)
tree452149116c123a99386a78c10bd56b55b5459560
parent654598588805550d546991a228bec9a7f8210853 (diff)
parenta3ee65f87e2138191cd855968c136f6ee6e35c16 (diff)
downloadrust-7ad2b3ab29446480e0409c87bdcd04f0b1ddaf8d.tar.gz
rust-7ad2b3ab29446480e0409c87bdcd04f0b1ddaf8d.zip
Rollup merge of #76287 - lzutao:rm-allowed, r=jyn514
Remove an unnecessary allowed lint

It is outdated.
-rw-r--r--library/core/src/slice/mod.rs1
-rw-r--r--library/std/src/os/raw/mod.rs1
-rw-r--r--library/std/src/os/raw/tests.rs1
3 files changed, 0 insertions, 3 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index 68977a983aa..16170ecbc27 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -66,7 +66,6 @@ impl<T> [T] {
     #[rustc_const_stable(feature = "const_slice_len", since = "1.32.0")]
     #[inline]
     // 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)]
     pub const fn len(&self) -> usize {
         // SAFETY: this is safe because `&[T]` and `FatPtr<T>` have the same layout.
diff --git a/library/std/src/os/raw/mod.rs b/library/std/src/os/raw/mod.rs
index 1fe27a34600..83e8853fe79 100644
--- a/library/std/src/os/raw/mod.rs
+++ b/library/std/src/os/raw/mod.rs
@@ -9,7 +9,6 @@
 #![stable(feature = "raw_os", since = "1.1.0")]
 
 #[cfg(test)]
-#[allow(unused_imports)]
 mod tests;
 
 #[doc(include = "char.md")]
diff --git a/library/std/src/os/raw/tests.rs b/library/std/src/os/raw/tests.rs
index e808faf81d6..e7bb7d7e73e 100644
--- a/library/std/src/os/raw/tests.rs
+++ b/library/std/src/os/raw/tests.rs
@@ -1,5 +1,4 @@
 use crate::any::TypeId;
-use crate::mem;
 
 macro_rules! ok {
     ($($t:ident)*) => {$(