diff options
author | Dawer <[email protected]> | 2021-05-11 14:24:39 +0100 |
---|---|---|
committer | Dawer <[email protected]> | 2021-05-31 20:49:27 +0100 |
commit | f46a42f73aa92ab66800c70d525ddc7e6529edd6 (patch) | |
tree | b637d359ea9aca5b2310f0e6e1fdd9b0b7feee2c /crates/hir_ty/src/diagnostics/expr.rs | |
parent | e84efc4a4656e54a4f08b99592d5d98ac5726449 (diff) |
Better tests: check if match checking bails out.
Diffstat (limited to 'crates/hir_ty/src/diagnostics/expr.rs')
-rw-r--r-- | crates/hir_ty/src/diagnostics/expr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_ty/src/diagnostics/expr.rs b/crates/hir_ty/src/diagnostics/expr.rs index c6015d236..0a7e6ee52 100644 --- a/crates/hir_ty/src/diagnostics/expr.rs +++ b/crates/hir_ty/src/diagnostics/expr.rs | |||
@@ -346,6 +346,8 @@ impl<'a, 'b> ExprValidator<'a, 'b> { | |||
346 | // fit the match expression, we skip this diagnostic. Skipping the entire | 346 | // fit the match expression, we skip this diagnostic. Skipping the entire |
347 | // diagnostic rather than just not including this match arm is preferred | 347 | // diagnostic rather than just not including this match arm is preferred |
348 | // to avoid the chance of false positives. | 348 | // to avoid the chance of false positives. |
349 | #[cfg(test)] | ||
350 | match_check::tests::report_bail_out(db, self.owner, arm.pat, self.sink); | ||
349 | return; | 351 | return; |
350 | } | 352 | } |
351 | 353 | ||