Merge remote-tracking branch 'origin/trunk' into flat-declarations

This commit is contained in:
Folkert 2022-05-22 15:48:30 +02:00
commit befa202e0a
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
226 changed files with 7984 additions and 3637 deletions

View file

@ -1176,6 +1176,15 @@ 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 have no constraints because they're going to crash.
Constraint::True