mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Ignore unused branch patterns in tests
This commit is contained in:
parent
b30c90b500
commit
641169854e
1 changed files with 7 additions and 1 deletions
|
@ -182,7 +182,13 @@ mod solve_expr {
|
|||
|
||||
// Disregard UnusedDef problems, because those are unavoidable when
|
||||
// returning a function from the test expression.
|
||||
can_problems.retain(|prob| !matches!(prob, roc_problem::can::Problem::UnusedDef(_, _)));
|
||||
can_problems.retain(|prob| {
|
||||
!matches!(
|
||||
prob,
|
||||
roc_problem::can::Problem::UnusedDef(_, _)
|
||||
| roc_problem::can::Problem::UnusedBranchDef(..)
|
||||
)
|
||||
});
|
||||
|
||||
let (can_problems, type_problems) =
|
||||
format_problems(&src, home, &interns, can_problems, type_problems);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue