Move lookup_path and similar into clippy_utils::paths

This commit is contained in:
Alex Macleod 2025-05-04 17:07:20 +00:00
parent b768fbe4bc
commit f23772ce8c
15 changed files with 243 additions and 236 deletions

View file

@ -1,5 +1,5 @@
use clippy_utils::paths::PathLookup;
use clippy_utils::{PathNS, sym, type_path, value_path};
use clippy_utils::paths::{PathLookup, PathNS};
use clippy_utils::{sym, type_path, value_path};
// Paths inside rustc
pub static EARLY_LINT_PASS: PathLookup = type_path!(rustc_lint::passes::EarlyLintPass);

View file

@ -1,6 +1,7 @@
use crate::internal_paths;
use clippy_utils::diagnostics::span_lint_and_then;
use clippy_utils::{PathNS, lookup_path, path_def_id, peel_ref_operators};
use clippy_utils::paths::{PathNS, lookup_path};
use clippy_utils::{path_def_id, peel_ref_operators};
use rustc_hir::def_id::DefId;
use rustc_hir::{Expr, ExprKind};
use rustc_lint::{LateContext, LateLintPass};