cargo dev dogfood --fix --allow-dirty

This commit is contained in:
lengyijun 2024-11-07 18:43:21 +08:00
parent f62ebb07b7
commit 7633f16222
3 changed files with 6 additions and 7 deletions

View file

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

View file

@ -398,11 +398,11 @@ mod zero_sized_map_values;
mod zombie_processes;
// end lints modules, do not remove this comment, its used in `update_lints`
use crate::utils::attr_collector::{AttrCollector, AttrStorage};
use clippy_config::{Conf, get_configuration_metadata, sanitize_explanation};
use clippy_utils::macros::FormatArgsStorage;
use rustc_data_structures::fx::FxHashSet;
use rustc_lint::{Lint, LintId};
use utils::attr_collector::{AttrCollector, AttrStorage};
/// Register all pre expansion lints
///
@ -469,7 +469,7 @@ pub(crate) enum LintCategory {
}
#[allow(clippy::enum_glob_use)]
use LintCategory::*;
use crate::LintCategory::*;
impl LintCategory {
fn is_all(self) -> bool {

View file

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