From 9d3373137b74a403281b293b19ab9346773af073 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Thu, 11 Oct 2018 12:18:27 +0200 Subject: [PATCH] Remove now-useless `allow(unknown_lints)` --- clippy_lints/src/lib.rs | 2 +- src/driver.rs | 2 +- src/lib.rs | 1 - src/main.rs | 2 +- tests/ui/eta.rs | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 451374c9a..c343cf364 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -15,7 +15,7 @@ #![feature(slice_patterns)] #![feature(stmt_expr_attributes)] #![feature(range_contains)] -#![allow(unknown_lints, clippy::shadow_reuse, clippy::missing_docs_in_private_items)] +#![allow(clippy::shadow_reuse, clippy::missing_docs_in_private_items)] #![recursion_limit = "256"] #![feature(macro_at_most_once_rep)] diff --git a/src/driver.rs b/src/driver.rs index 6af0f0be1..9abe6bd91 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -13,7 +13,7 @@ #![feature(rustc_private)] #![feature(try_from)] -#![allow(unknown_lints, clippy::missing_docs_in_private_items)] +#![allow(clippy::missing_docs_in_private_items)] // FIXME: switch to something more ergonomic here, once available. // (currently there is no way to opt into sysroot crates w/o `extern crate`) diff --git a/src/lib.rs b/src/lib.rs index 62c9da032..97f1f8109 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,6 @@ #![feature(plugin_registrar)] #![feature(rustc_private)] -#![allow(unknown_lints)] #![allow(clippy::missing_docs_in_private_items)] #![warn(rust_2018_idioms)] diff --git a/src/main.rs b/src/main.rs index efdcc42de..4a1dc487c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ #![feature(box_syntax)] #![feature(rustc_private)] -#![allow(unknown_lints, clippy::missing_docs_in_private_items)] +#![allow(clippy::missing_docs_in_private_items)] use rustc_tools_util::*; diff --git a/tests/ui/eta.rs b/tests/ui/eta.rs index e516dd691..dd41433d2 100644 --- a/tests/ui/eta.rs +++ b/tests/ui/eta.rs @@ -10,7 +10,7 @@ -#![allow(unknown_lints, unused, clippy::no_effect, clippy::redundant_closure_call, clippy::many_single_char_names, clippy::needless_pass_by_value, clippy::option_map_unit_fn, clippy::trivially_copy_pass_by_ref)] +#![allow(unused, clippy::no_effect, clippy::redundant_closure_call, clippy::many_single_char_names, clippy::needless_pass_by_value, clippy::option_map_unit_fn, clippy::trivially_copy_pass_by_ref)] #![warn(clippy::redundant_closure, clippy::needless_borrow)] fn main() {