Weaken records in let-bindings

This change also means we must update the interface of `Dict.empty` and
`Set.empty` from

```
Dict.empty : Dict k v
```

to

```
Dict.empty : {} -> Dict k v
```
This commit is contained in:
Ayaz Hafiz 2023-01-12 10:48:09 -06:00 committed by Folkert
parent 61ac9bf9b2
commit b8712bcb30
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
9 changed files with 70 additions and 75 deletions

View file

@ -3833,13 +3833,13 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
| RunLowLevel { .. }
| ForeignCall { .. }
| EmptyRecord
| Expr::Record { .. }
=> {
return false
}
// TODO(weakening)
Var(_, _)
| AbilityMember(_, _, _)
| Expr::Record { .. }
| Crash { .. }
| Access { .. }
| Accessor(_)