Move some utils to ty_utils

This commit is contained in:
Cameron Steffen 2021-03-13 17:01:03 -06:00
parent 0e042d2f70
commit eb7f8d6089
114 changed files with 578 additions and 509 deletions

View file

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