diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/hir_ty/src/diagnostics.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir_ty/src/diagnostics.rs b/crates/hir_ty/src/diagnostics.rs index 3d7663f6a..6eaa1beb8 100644 --- a/crates/hir_ty/src/diagnostics.rs +++ b/crates/hir_ty/src/diagnostics.rs | |||
@@ -671,7 +671,7 @@ fn foo() { break; } | |||
671 | } | 671 | } |
672 | 672 | ||
673 | #[test] | 673 | #[test] |
674 | fn replace_filter_next_with_find_map() { | 674 | fn replace_filter_map_next_with_find_map() { |
675 | check_diagnostics( | 675 | check_diagnostics( |
676 | r#" | 676 | r#" |
677 | fn foo() { | 677 | fn foo() { |
@@ -683,7 +683,7 @@ fn foo() { break; } | |||
683 | } | 683 | } |
684 | 684 | ||
685 | #[test] | 685 | #[test] |
686 | fn replace_filter_next_with_find_map_no_diagnostic_without_next() { | 686 | fn replace_filter_map_next_with_find_map_no_diagnostic_without_next() { |
687 | check_diagnostics( | 687 | check_diagnostics( |
688 | r#" | 688 | r#" |
689 | fn foo() { | 689 | fn foo() { |
@@ -697,7 +697,7 @@ fn foo() { break; } | |||
697 | } | 697 | } |
698 | 698 | ||
699 | #[test] | 699 | #[test] |
700 | fn replace_filter_next_with_find_map_no_diagnostic_with_intervening_methods() { | 700 | fn replace_filter_map_next_with_find_map_no_diagnostic_with_intervening_methods() { |
701 | check_diagnostics( | 701 | check_diagnostics( |
702 | r#" | 702 | r#" |
703 | fn foo() { | 703 | fn foo() { |
@@ -712,7 +712,7 @@ fn foo() { break; } | |||
712 | } | 712 | } |
713 | 713 | ||
714 | #[test] | 714 | #[test] |
715 | fn replace_filter_next_with_find_map_no_diagnostic_if_not_in_chain() { | 715 | fn replace_filter_map_next_with_find_map_no_diagnostic_if_not_in_chain() { |
716 | check_diagnostics( | 716 | check_diagnostics( |
717 | r#" | 717 | r#" |
718 | fn foo() { | 718 | fn foo() { |