diff options
Diffstat (limited to 'crates/ide/src/diagnostics.rs')
-rw-r--r-- | crates/ide/src/diagnostics.rs | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/crates/ide/src/diagnostics.rs b/crates/ide/src/diagnostics.rs index ec5318594..814e64ae4 100644 --- a/crates/ide/src/diagnostics.rs +++ b/crates/ide/src/diagnostics.rs | |||
@@ -672,44 +672,6 @@ mod foo; | |||
672 | } | 672 | } |
673 | 673 | ||
674 | #[test] | 674 | #[test] |
675 | fn missing_record_pat_field_no_diagnostic_if_not_exhaustive() { | ||
676 | check_diagnostics( | ||
677 | r" | ||
678 | struct S { foo: i32, bar: () } | ||
679 | fn baz(s: S) -> i32 { | ||
680 | match s { | ||
681 | S { foo, .. } => foo, | ||
682 | } | ||
683 | } | ||
684 | ", | ||
685 | ) | ||
686 | } | ||
687 | |||
688 | #[test] | ||
689 | fn missing_record_pat_field_box() { | ||
690 | check_diagnostics( | ||
691 | r" | ||
692 | struct S { s: Box<u32> } | ||
693 | fn x(a: S) { | ||
694 | let S { box s } = a; | ||
695 | } | ||
696 | ", | ||
697 | ) | ||
698 | } | ||
699 | |||
700 | #[test] | ||
701 | fn missing_record_pat_field_ref() { | ||
702 | check_diagnostics( | ||
703 | r" | ||
704 | struct S { s: u32 } | ||
705 | fn x(a: S) { | ||
706 | let S { ref s } = a; | ||
707 | } | ||
708 | ", | ||
709 | ) | ||
710 | } | ||
711 | |||
712 | #[test] | ||
713 | fn import_extern_crate_clash_with_inner_item() { | 675 | fn import_extern_crate_clash_with_inner_item() { |
714 | // This is more of a resolver test, but doesn't really work with the hir_def testsuite. | 676 | // This is more of a resolver test, but doesn't really work with the hir_def testsuite. |
715 | 677 | ||