Remove extern crate rustc_session
from rustc_lint
.
This commit is contained in:
parent
6ce258f657
commit
e6b3e20243
28 changed files with 27 additions and 2 deletions
|
@ -2,6 +2,7 @@ use crate::lints::UnitBindingsDiag;
|
|||
use crate::{LateLintPass, LintContext};
|
||||
use rustc_hir as hir;
|
||||
use rustc_middle::ty::Ty;
|
||||
use rustc_session::{declare_lint, declare_lint_pass};
|
||||
|
||||
declare_lint! {
|
||||
/// The `unit_bindings` lint detects cases where bindings are useless because they have
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue