about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/noop_method_call.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-04-29 13:42:13 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-04-29 13:57:41 +1000
commite6b3e20243ba3d8dd4f369bfc286599796680e1d (patch)
tree2e96c20f94d74d6b6d5b8aa000027ce763f57fde /compiler/rustc_lint/src/noop_method_call.rs
parent6ce258f6572425d10f3ae6e76340d3f2a45dac12 (diff)
downloadrust-e6b3e20243ba3d8dd4f369bfc286599796680e1d.tar.gz
rust-e6b3e20243ba3d8dd4f369bfc286599796680e1d.zip
Remove `extern crate rustc_session` from `rustc_lint`.
Diffstat (limited to 'compiler/rustc_lint/src/noop_method_call.rs')
-rw-r--r--compiler/rustc_lint/src/noop_method_call.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/noop_method_call.rs b/compiler/rustc_lint/src/noop_method_call.rs
index 970d411fb06..91441248e70 100644
--- a/compiler/rustc_lint/src/noop_method_call.rs
+++ b/compiler/rustc_lint/src/noop_method_call.rs
@@ -8,6 +8,7 @@ use rustc_hir::def::DefKind;
 use rustc_hir::{Expr, ExprKind};
 use rustc_middle::ty;
 use rustc_middle::ty::adjustment::Adjust;
+use rustc_session::{declare_lint, declare_lint_pass};
 use rustc_span::symbol::sym;
 
 declare_lint! {