From f74a6bc20eaebb7f368b9dbe4a0c0ab27cce380a Mon Sep 17 00:00:00 2001 From: lengyijun Date: Thu, 7 Nov 2024 18:43:21 +0800 Subject: [PATCH] cargo dev dogfood --fix --allow-dirty --- clippy_config/src/lib.rs | 4 ++-- clippy_lints/src/lib.rs | 2 +- clippy_utils/src/lib.rs | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/clippy_config/src/lib.rs b/clippy_config/src/lib.rs index 1c3f32c2514c..4fa92e83b200 100644 --- a/clippy_config/src/lib.rs +++ b/clippy_config/src/lib.rs @@ -27,5 +27,5 @@ mod metadata; pub mod msrvs; pub mod types; -pub use conf::{Conf, get_configuration_metadata, lookup_conf_file, sanitize_explanation}; -pub use metadata::ClippyConfiguration; +pub use crate::conf::{Conf, get_configuration_metadata, lookup_conf_file, sanitize_explanation}; +pub use crate::metadata::ClippyConfiguration; diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 73e52c1eef32..c88ac74e1cba 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -464,7 +464,7 @@ pub(crate) enum LintCategory { Internal, } #[allow(clippy::enum_glob_use)] -use LintCategory::*; +use crate::LintCategory::*; impl LintCategory { fn is_all(self) -> bool { diff --git a/clippy_utils/src/lib.rs b/clippy_utils/src/lib.rs index d7a33c595023..5de41bc44bed 100644 --- a/clippy_utils/src/lib.rs +++ b/clippy_utils/src/lib.rs @@ -110,6 +110,7 @@ use rustc_hir::{ }; use rustc_lexer::{TokenKind, tokenize}; use rustc_lint::{LateContext, Level, Lint, LintContext}; +use rustc_middle::hir::nested_filter; use rustc_middle::hir::place::PlaceBase; use rustc_middle::mir::Const; use rustc_middle::ty::adjustment::{Adjust, Adjustment, AutoBorrow}; @@ -124,13 +125,11 @@ use rustc_span::source_map::SourceMap; use rustc_span::symbol::{Ident, Symbol, kw}; use rustc_span::{InnerSpan, Span, sym}; use rustc_target::abi::Integer; -use visitors::Visitable; use crate::consts::{ConstEvalCtxt, Constant, mir_to_const}; use crate::higher::Range; use crate::ty::{adt_and_variant_of_res, can_partially_move_ty, expr_sig, is_copy, is_recursively_primitive_type}; -use crate::visitors::for_each_expr_without_closures; -use rustc_middle::hir::nested_filter; +use crate::visitors::{Visitable, for_each_expr_without_closures}; #[macro_export] macro_rules! extract_msrv_attr {