@@ -20,7 +20,7 @@ use syntax::symbol::LocalInternedString;
2020use crate :: utils:: paths;
2121use crate :: utils:: sugg;
2222use crate :: utils:: {
23- get_arg_name, get_parent_expr, get_trait_def_id, has_iter_method, implements_trait, in_macro_or_desugar , is_copy,
23+ get_arg_name, get_parent_expr, get_trait_def_id, has_iter_method, implements_trait, in_macro , is_copy,
2424 is_ctor_function, is_expn_of, is_self, is_self_ty, iter_input_pats, last_path_segment, match_path, match_qpath,
2525 match_trait_method, match_type, match_var, method_calls, method_chain_args, remove_blocks, return_ty, same_tys,
2626 single_segment_path, snippet, snippet_with_applicability, snippet_with_macro_callsite, span_lint,
@@ -859,7 +859,7 @@ declare_lint_pass!(Methods => [
859859impl < ' a , ' tcx > LateLintPass < ' a , ' tcx > for Methods {
860860 #[ allow( clippy:: cognitive_complexity) ]
861861 fn check_expr ( & mut self , cx : & LateContext < ' a , ' tcx > , expr : & ' tcx hir:: Expr ) {
862- if in_macro_or_desugar ( expr. span ) {
862+ if in_macro ( expr. span ) {
863863 return ;
864864 }
865865
0 commit comments