Skip to content

Commit

Permalink
cargo dev dogfood --fix --allow-dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyijun committed Nov 13, 2024
1 parent f62ebb0 commit 7633f16
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions clippy_config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
4 changes: 2 additions & 2 deletions clippy_lints/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,11 @@ mod zero_sized_map_values;
mod zombie_processes;
// end lints modules, do not remove this comment, it’s 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
///
Expand Down Expand Up @@ -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 {
Expand Down
5 changes: 2 additions & 3 deletions clippy_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand All @@ -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 {
Expand Down

0 comments on commit 7633f16

Please sign in to comment.