@@ -20,7 +20,7 @@ use syntax::symbol::LocalInternedString;
20
20
use crate :: utils:: paths;
21
21
use crate :: utils:: sugg;
22
22
use 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,
24
24
is_ctor_function, is_expn_of, is_self, is_self_ty, iter_input_pats, last_path_segment, match_path, match_qpath,
25
25
match_trait_method, match_type, match_var, method_calls, method_chain_args, remove_blocks, return_ty, same_tys,
26
26
single_segment_path, snippet, snippet_with_applicability, snippet_with_macro_callsite, span_lint,
@@ -859,7 +859,7 @@ declare_lint_pass!(Methods => [
859
859
impl < ' a , ' tcx > LateLintPass < ' a , ' tcx > for Methods {
860
860
#[ allow( clippy:: cognitive_complexity) ]
861
861
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 ) {
863
863
return ;
864
864
}
865
865
0 commit comments