Auto merge of #5740 - lzutao:unused-unused, r=flip1995
Remove unused allowed unused attributes changelog: none
This commit is contained in:
commit
c2c07fa9d0
2 changed files with 3 additions and 34 deletions
|
@ -20,47 +20,25 @@
|
||||||
|
|
||||||
// FIXME: switch to something more ergonomic here, once available.
|
// FIXME: switch to something more ergonomic here, once available.
|
||||||
// (Currently there is no way to opt into sysroot crates without `extern crate`.)
|
// (Currently there is no way to opt into sysroot crates without `extern crate`.)
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_ast;
|
extern crate rustc_ast;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_ast_pretty;
|
extern crate rustc_ast_pretty;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_attr;
|
extern crate rustc_attr;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_data_structures;
|
extern crate rustc_data_structures;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_driver;
|
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_errors;
|
extern crate rustc_errors;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_hir;
|
extern crate rustc_hir;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_hir_pretty;
|
extern crate rustc_hir_pretty;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_index;
|
extern crate rustc_index;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_infer;
|
extern crate rustc_infer;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_lexer;
|
extern crate rustc_lexer;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_lint;
|
extern crate rustc_lint;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_middle;
|
extern crate rustc_middle;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_mir;
|
extern crate rustc_mir;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_parse;
|
extern crate rustc_parse;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_parse_format;
|
extern crate rustc_parse_format;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_session;
|
extern crate rustc_session;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_span;
|
extern crate rustc_span;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_target;
|
extern crate rustc_target;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_trait_selection;
|
extern crate rustc_trait_selection;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_typeck;
|
extern crate rustc_typeck;
|
||||||
|
|
||||||
use rustc_data_structures::fx::FxHashSet;
|
use rustc_data_structures::fx::FxHashSet;
|
||||||
|
@ -85,14 +63,10 @@ use rustc_session::Session;
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(rustc_private)]
|
/// #![feature(rustc_private)]
|
||||||
/// # #[allow(unused_extern_crates)]
|
/// extern crate rustc_session;
|
||||||
/// # extern crate rustc_middle;
|
|
||||||
/// # #[allow(unused_extern_crates)]
|
|
||||||
/// # extern crate rustc_session;
|
|
||||||
/// # #[macro_use]
|
|
||||||
/// # use clippy_lints::declare_clippy_lint;
|
|
||||||
/// use rustc_session::declare_tool_lint;
|
/// use rustc_session::declare_tool_lint;
|
||||||
|
/// use clippy_lints::declare_clippy_lint;
|
||||||
///
|
///
|
||||||
/// declare_clippy_lint! {
|
/// declare_clippy_lint! {
|
||||||
/// /// **What it does:** Checks for ... (describe what the lint matches).
|
/// /// **What it does:** Checks for ... (describe what the lint matches).
|
||||||
|
|
|
@ -7,15 +7,10 @@
|
||||||
|
|
||||||
// FIXME: switch to something more ergonomic here, once available.
|
// FIXME: switch to something more ergonomic here, once available.
|
||||||
// (Currently there is no way to opt into sysroot crates without `extern crate`.)
|
// (Currently there is no way to opt into sysroot crates without `extern crate`.)
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_data_structures;
|
extern crate rustc_data_structures;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_driver;
|
extern crate rustc_driver;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_errors;
|
extern crate rustc_errors;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_interface;
|
extern crate rustc_interface;
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
extern crate rustc_middle;
|
extern crate rustc_middle;
|
||||||
|
|
||||||
use rustc_interface::interface;
|
use rustc_interface::interface;
|
||||||
|
|
Loading…
Reference in a new issue