mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Remove unused TypedHole variant from roc_can::expr::Expr
This commit is contained in:
parent
46067cf28c
commit
dcb6c543c0
10 changed files with 1 additions and 25 deletions
|
@ -1815,15 +1815,6 @@ pub fn constrain_expr(
|
|||
arg_cons.push(eq);
|
||||
constraints.exists_many(vars, arg_cons)
|
||||
}
|
||||
TypedHole(var) => {
|
||||
// store the expected type for this position
|
||||
constraints.equal_types_var(
|
||||
*var,
|
||||
expected,
|
||||
Category::Storage(std::file!(), std::line!()),
|
||||
region,
|
||||
)
|
||||
}
|
||||
RuntimeError(_) => {
|
||||
// Runtime Errors are always going to crash, so they don't introduce any new
|
||||
// constraints.
|
||||
|
@ -4403,7 +4394,6 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
|
|||
| Expect { .. }
|
||||
| Dbg { .. }
|
||||
| Return { .. }
|
||||
| TypedHole(_)
|
||||
| RuntimeError(..)
|
||||
| ZeroArgumentTag { .. }
|
||||
| Tag { .. }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue