1
Fork 0

Remove extern crate rustc_session from rustc_lint.

This commit is contained in:
Nicholas Nethercote 2024-04-29 13:42:13 +10:00
parent 6ce258f657
commit e6b3e20243
28 changed files with 27 additions and 2 deletions

View file

@ -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