@@ -5,7 +5,7 @@ use crate::utils::usage::{is_unused, mutated_variables};
5
5
use crate :: utils:: {
6
6
get_enclosing_block, get_parent_expr, get_trait_def_id, has_iter_method, higher, implements_trait,
7
7
is_integer_const, is_no_std_crate, is_refutable, last_path_segment, match_trait_method, match_type, match_var,
8
- multispan_sugg, snippet, snippet_opt, snippet_with_applicability, span_lint, span_lint_and_help,
8
+ multispan_sugg, snippet, snippet_opt, snippet_with_applicability, snippet_with_macro_callsite , span_lint, span_lint_and_help,
9
9
span_lint_and_sugg, span_lint_and_then, SpanlessEq ,
10
10
} ;
11
11
use crate :: utils:: { is_type_diagnostic_item, qpath_res, sugg} ;
@@ -1263,8 +1263,8 @@ fn detect_same_item_push<'tcx>(
1263
1263
walk_expr ( & mut for_pat_visitor, pushed_item) ;
1264
1264
1265
1265
if !for_pat_visitor. found_pattern {
1266
- let vec_str = snippet ( cx, vec. span , "" ) ;
1267
- 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 , "" ) ;
1268
1268
1269
1269
span_lint_and_help (
1270
1270
cx,
0 commit comments