mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Remove unnecessary imports from tests
This commit is contained in:
parent
1e117938cf
commit
fcc3e7238f
3 changed files with 2 additions and 3 deletions
|
@ -6,7 +6,6 @@ extern crate rustc;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate rustc_session;
|
extern crate rustc_session;
|
||||||
extern crate rustc_lint;
|
extern crate rustc_lint;
|
||||||
use rustc_lint::{LintArray, LintPass};
|
|
||||||
|
|
||||||
declare_tool_lint! {
|
declare_tool_lint! {
|
||||||
pub clippy::TEST_LINT,
|
pub clippy::TEST_LINT,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error: the lint `TEST_LINT_DEFAULT` has the default lint description
|
error: the lint `TEST_LINT_DEFAULT` has the default lint description
|
||||||
--> $DIR/default_lint.rs:18:1
|
--> $DIR/default_lint.rs:17:1
|
||||||
|
|
|
|
||||||
LL | / declare_tool_lint! {
|
LL | / declare_tool_lint! {
|
||||||
LL | | pub clippy::TEST_LINT_DEFAULT,
|
LL | | pub clippy::TEST_LINT_DEFAULT,
|
||||||
|
|
|
@ -6,7 +6,7 @@ extern crate rustc;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate rustc_session;
|
extern crate rustc_session;
|
||||||
extern crate rustc_lint;
|
extern crate rustc_lint;
|
||||||
use rustc_lint::{LintArray, LintPass};
|
use rustc_lint::LintPass;
|
||||||
|
|
||||||
declare_tool_lint! {
|
declare_tool_lint! {
|
||||||
pub clippy::TEST_LINT,
|
pub clippy::TEST_LINT,
|
||||||
|
|
Loading…
Reference in a new issue