Skip to content

Commit

Permalink
Rollup merge of rust-lang#76287 - lzutao:rm-allowed, r=jyn514
Browse files Browse the repository at this point in the history
Remove an unnecessary allowed lint

It is outdated.
  • Loading branch information
Dylan-DPC authored Sep 6, 2020
2 parents 3e0a83c + a3ee65f commit 5d24dd0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion library/std/src/os/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#![stable(feature = "raw_os", since = "1.1.0")]

#[cfg(test)]
#[allow(unused_imports)]
mod tests;

#[doc(include = "char.md")]
Expand Down
1 change: 0 additions & 1 deletion library/std/src/os/raw/tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::any::TypeId;
use crate::mem;

macro_rules! ok {
($($t:ident)*) => {$(
Expand Down

0 comments on commit 5d24dd0

Please sign in to comment.