Don't re-export clippy_utils::*

This commit is contained in:
Cameron Steffen 2021-03-16 11:06:34 -05:00
parent 8af28840d2
commit 0743e841f0
243 changed files with 344 additions and 399 deletions

View file

@ -1,7 +1,7 @@
//! A group of attributes that can be attached to Rust code in order
//! to generate a clippy lint detecting said code automatically.
use crate::utils::get_attr;
use clippy_utils::get_attr;
use rustc_ast::ast::{LitFloatType, LitKind};
use rustc_ast::walk_list;
use rustc_data_structures::fx::FxHashMap;

View file

@ -1,6 +1,6 @@
//! checks for attributes
use crate::utils::get_attr;
use clippy_utils::get_attr;
use rustc_ast::ast::{Attribute, InlineAsmTemplatePiece};
use rustc_hir as hir;
use rustc_lint::{LateContext, LateLintPass, LintContext};

View file

@ -1,9 +1,8 @@
use crate::consts::{constant_simple, Constant};
use crate::utils::{is_expn_of, match_def_path, match_qpath, method_calls, path_to_res, paths, run_lints, SpanlessEq};
use clippy_utils::diagnostics::{span_lint, span_lint_and_help, span_lint_and_sugg};
use clippy_utils::source::snippet;
use clippy_utils::ty::match_type;
use clippy_utils::{is_expn_of, match_def_path, match_qpath, method_calls, path_to_res, paths, run_lints, SpanlessEq};
use if_chain::if_chain;
use rustc_ast::ast::{Crate as AstCrate, ItemKind, LitKind, ModKind, NodeId};
use rustc_ast::visit::FnKind;

View file

@ -3,5 +3,3 @@ pub mod conf;
pub mod inspector;
#[cfg(feature = "internal-lints")]
pub mod internal_lints;
pub use clippy_utils::*;