@@ -28,8 +28,8 @@ use crate::utils::{
2828    is_ctor_or_promotable_const_function,  is_expn_of,  is_type_diagnostic_item,  iter_input_pats,  last_path_segment, 
2929    match_def_path,  match_qpath,  match_trait_method,  match_type,  match_var,  method_calls,  method_chain_args,  paths, 
3030    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 , 
3333} ; 
3434
3535declare_clippy_lint !  { 
@@ -2422,7 +2422,7 @@ fn lint_map_unwrap_or_else<'a, 'tcx>(
24222422        let  multiline = map_snippet. lines ( ) . count ( )  > 1  || unwrap_snippet. lines ( ) . count ( )  > 1 ; 
24232423        let  same_span = map_args[ 1 ] . span . ctxt ( )  == unwrap_args[ 1 ] . span . ctxt ( ) ; 
24242424        if  same_span && !multiline { 
2425-             span_note_and_lint ( 
2425+             span_lint_and_note ( 
24262426                cx, 
24272427                if  is_option { 
24282428                    OPTION_MAP_UNWRAP_OR_ELSE 
@@ -2566,7 +2566,7 @@ fn lint_filter_next<'a, 'tcx>(
25662566        let  filter_snippet = snippet ( cx,  filter_args[ 1 ] . span ,  ".." ) ; 
25672567        if  filter_snippet. lines ( ) . count ( )  <= 1  { 
25682568            // add note if not multi-line 
2569-             span_note_and_lint ( 
2569+             span_lint_and_note ( 
25702570                cx, 
25712571                FILTER_NEXT , 
25722572                expr. span , 
@@ -2624,7 +2624,7 @@ fn lint_filter_map_next<'a, 'tcx>(
26242624                    `.find_map(p)` instead."; 
26252625        let  filter_snippet = snippet ( cx,  filter_args[ 1 ] . span ,  ".." ) ; 
26262626        if  filter_snippet. lines ( ) . count ( )  <= 1  { 
2627-             span_note_and_lint ( 
2627+             span_lint_and_note ( 
26282628                cx, 
26292629                FILTER_MAP_NEXT , 
26302630                expr. span , 
0 commit comments