diff options
| author | Alex Macleod <alex@macleod.io> | 2025-05-04 17:07:20 +0000 |
|---|---|---|
| committer | Alex Macleod <alex@macleod.io> | 2025-05-04 17:13:02 +0000 |
| commit | f23772ce8cbfe78010fdb27da9dedcdf35180e9f (patch) | |
| tree | 981e3582a062d96391c522999c0ee81fe11decd9 /clippy_lints_internal | |
| parent | b768fbe4bccbfd4c4ecbd4726805facb6769eb4f (diff) | |
| download | rust-f23772ce8cbfe78010fdb27da9dedcdf35180e9f.tar.gz rust-f23772ce8cbfe78010fdb27da9dedcdf35180e9f.zip | |
Move `lookup_path` and similar into `clippy_utils::paths`
Diffstat (limited to 'clippy_lints_internal')
| -rw-r--r-- | clippy_lints_internal/src/internal_paths.rs | 4 | ||||
| -rw-r--r-- | clippy_lints_internal/src/unnecessary_def_path.rs | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/clippy_lints_internal/src/internal_paths.rs b/clippy_lints_internal/src/internal_paths.rs index 29ad3b85da1..dc1e30ab2bd 100644 --- a/clippy_lints_internal/src/internal_paths.rs +++ b/clippy_lints_internal/src/internal_paths.rs @@ -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); diff --git a/clippy_lints_internal/src/unnecessary_def_path.rs b/clippy_lints_internal/src/unnecessary_def_path.rs index 2e9b8c2d53d..8877f1faf0e 100644 --- a/clippy_lints_internal/src/unnecessary_def_path.rs +++ b/clippy_lints_internal/src/unnecessary_def_path.rs @@ -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}; |
