@@ -28,8 +28,8 @@ use crate::utils::{
28
28
is_ctor_or_promotable_const_function, is_expn_of, is_type_diagnostic_item, iter_input_pats, last_path_segment,
29
29
match_def_path, match_qpath, match_trait_method, match_type, match_var, method_calls, method_chain_args, paths,
30
30
remove_blocks, return_ty, same_tys, single_segment_path, snippet, snippet_with_applicability,
31
- snippet_with_macro_callsite, span_lint, span_lint_and_help, span_lint_and_sugg , span_lint_and_then ,
32
- span_note_and_lint , sugg, walk_ptrs_ty, walk_ptrs_ty_depth, SpanlessEq ,
31
+ snippet_with_macro_callsite, span_lint, span_lint_and_help, span_lint_and_note , span_lint_and_sugg ,
32
+ span_lint_and_then , sugg, walk_ptrs_ty, walk_ptrs_ty_depth, SpanlessEq ,
33
33
} ;
34
34
35
35
declare_clippy_lint ! {
@@ -2422,7 +2422,7 @@ fn lint_map_unwrap_or_else<'a, 'tcx>(
2422
2422
let multiline = map_snippet. lines ( ) . count ( ) > 1 || unwrap_snippet. lines ( ) . count ( ) > 1 ;
2423
2423
let same_span = map_args[ 1 ] . span . ctxt ( ) == unwrap_args[ 1 ] . span . ctxt ( ) ;
2424
2424
if same_span && !multiline {
2425
- span_note_and_lint (
2425
+ span_lint_and_note (
2426
2426
cx,
2427
2427
if is_option {
2428
2428
OPTION_MAP_UNWRAP_OR_ELSE
@@ -2566,7 +2566,7 @@ fn lint_filter_next<'a, 'tcx>(
2566
2566
let filter_snippet = snippet ( cx, filter_args[ 1 ] . span , ".." ) ;
2567
2567
if filter_snippet. lines ( ) . count ( ) <= 1 {
2568
2568
// add note if not multi-line
2569
- span_note_and_lint (
2569
+ span_lint_and_note (
2570
2570
cx,
2571
2571
FILTER_NEXT ,
2572
2572
expr. span ,
@@ -2624,7 +2624,7 @@ fn lint_filter_map_next<'a, 'tcx>(
2624
2624
`.find_map(p)` instead.";
2625
2625
let filter_snippet = snippet ( cx, filter_args[ 1 ] . span , ".." ) ;
2626
2626
if filter_snippet. lines ( ) . count ( ) <= 1 {
2627
- span_note_and_lint (
2627
+ span_lint_and_note (
2628
2628
cx,
2629
2629
FILTER_MAP_NEXT ,
2630
2630
expr. span ,
0 commit comments