Skip to content

Commit 5704139

Browse files
DevinR528theo-lw
authored andcommitted
collected all the imports and names
how to compare macro to import path add more imports to test
1 parent 1435812 commit 5704139

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ extern crate rustc_trait_selection;
6060
#[allow(unused_extern_crates)]
6161
extern crate rustc_typeck;
6262

63+
use rustc::session::Session;
6364
use rustc_data_structures::fx::FxHashSet;
6465
use rustc_lint::LintId;
6566
use rustc_session::Session;

clippy_lints/src/macro_use.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,6 @@ impl<'l, 'txc> LateLintPass<'l, 'txc> for MacroUseImports {
229229
}
230230
}
231231
}
232+
233+
mac.path.clone()
232234
}

0 commit comments

Comments
 (0)