Skip to content

Commit c2c07fa

Browse files
committed
Auto merge of rust-lang#5740 - lzutao:unused-unused, r=flip1995
Remove unused allowed unused attributes changelog: none
2 parents c420382 + 7374185 commit c2c07fa

File tree

2 files changed

+3
-34
lines changed

2 files changed

+3
-34
lines changed

clippy_lints/src/lib.rs

+3-29
Original file line numberDiff line numberDiff line change
@@ -20,47 +20,25 @@
2020

2121
// FIXME: switch to something more ergonomic here, once available.
2222
// (Currently there is no way to opt into sysroot crates without `extern crate`.)
23-
#[allow(unused_extern_crates)]
2423
extern crate rustc_ast;
25-
#[allow(unused_extern_crates)]
2624
extern crate rustc_ast_pretty;
27-
#[allow(unused_extern_crates)]
2825
extern crate rustc_attr;
29-
#[allow(unused_extern_crates)]
3026
extern crate rustc_data_structures;
31-
#[allow(unused_extern_crates)]
32-
extern crate rustc_driver;
33-
#[allow(unused_extern_crates)]
3427
extern crate rustc_errors;
35-
#[allow(unused_extern_crates)]
3628
extern crate rustc_hir;
37-
#[allow(unused_extern_crates)]
3829
extern crate rustc_hir_pretty;
39-
#[allow(unused_extern_crates)]
4030
extern crate rustc_index;
41-
#[allow(unused_extern_crates)]
4231
extern crate rustc_infer;
43-
#[allow(unused_extern_crates)]
4432
extern crate rustc_lexer;
45-
#[allow(unused_extern_crates)]
4633
extern crate rustc_lint;
47-
#[allow(unused_extern_crates)]
4834
extern crate rustc_middle;
49-
#[allow(unused_extern_crates)]
5035
extern crate rustc_mir;
51-
#[allow(unused_extern_crates)]
5236
extern crate rustc_parse;
53-
#[allow(unused_extern_crates)]
5437
extern crate rustc_parse_format;
55-
#[allow(unused_extern_crates)]
5638
extern crate rustc_session;
57-
#[allow(unused_extern_crates)]
5839
extern crate rustc_span;
59-
#[allow(unused_extern_crates)]
6040
extern crate rustc_target;
61-
#[allow(unused_extern_crates)]
6241
extern crate rustc_trait_selection;
63-
#[allow(unused_extern_crates)]
6442
extern crate rustc_typeck;
6543

6644
use rustc_data_structures::fx::FxHashSet;
@@ -85,14 +63,10 @@ use rustc_session::Session;
8563
/// # Example
8664
///
8765
/// ```
88-
/// # #![feature(rustc_private)]
89-
/// # #[allow(unused_extern_crates)]
90-
/// # extern crate rustc_middle;
91-
/// # #[allow(unused_extern_crates)]
92-
/// # extern crate rustc_session;
93-
/// # #[macro_use]
94-
/// # use clippy_lints::declare_clippy_lint;
66+
/// #![feature(rustc_private)]
67+
/// extern crate rustc_session;
9568
/// use rustc_session::declare_tool_lint;
69+
/// use clippy_lints::declare_clippy_lint;
9670
///
9771
/// declare_clippy_lint! {
9872
/// /// **What it does:** Checks for ... (describe what the lint matches).

src/driver.rs

-5
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,10 @@
77

88
// FIXME: switch to something more ergonomic here, once available.
99
// (Currently there is no way to opt into sysroot crates without `extern crate`.)
10-
#[allow(unused_extern_crates)]
1110
extern crate rustc_data_structures;
12-
#[allow(unused_extern_crates)]
1311
extern crate rustc_driver;
14-
#[allow(unused_extern_crates)]
1512
extern crate rustc_errors;
16-
#[allow(unused_extern_crates)]
1713
extern crate rustc_interface;
18-
#[allow(unused_extern_crates)]
1914
extern crate rustc_middle;
2015

2116
use rustc_interface::interface;

0 commit comments

Comments
 (0)