@@ -3,9 +3,10 @@ use crate::utils::paths;
33use crate :: utils:: sugg:: Sugg ;
44use crate :: utils:: usage:: { is_unused, mutated_variables} ;
55use crate :: utils:: {
6- get_enclosing_block, get_parent_expr, get_trait_def_id, has_iter_method, higher, implements_trait,
7- is_integer_const, is_no_std_crate, is_refutable, is_type_diagnostic_item, last_path_segment, match_trait_method,
8- match_type, match_var, multispan_sugg, qpath_res, snippet, snippet_opt, snippet_with_applicability, span_lint,
6+ get_enclosing_block, get_parent_expr, get_trait_def_id, has_iter_method, higher,
7+ implements_trait, is_integer_const, is_no_std_crate, is_refutable, is_type_diagnostic_item,
8+ last_path_segment, match_trait_method, match_type, match_var, multispan_sugg, qpath_res,
9+ snippet, snippet_opt, snippet_with_applicability, snippet_with_macro_callsite, span_lint,
910 span_lint_and_help, span_lint_and_sugg, span_lint_and_then, sugg, SpanlessEq ,
1011} ;
1112use if_chain:: if_chain;
@@ -1262,8 +1263,8 @@ fn detect_same_item_push<'tcx>(
12621263 walk_expr ( & mut for_pat_visitor, pushed_item) ;
12631264
12641265 if !for_pat_visitor. found_pattern {
1265- let vec_str = snippet ( cx, vec. span , "" ) ;
1266- let item_str = snippet ( cx, pushed_item. span , "" ) ;
1266+ let vec_str = snippet_with_macro_callsite ( cx, vec. span , "" ) ;
1267+ let item_str = snippet_with_macro_callsite ( cx, pushed_item. span , "" ) ;
12671268
12681269 span_lint_and_help (
12691270 cx,
0 commit comments