Weaken record updates behind let bindings

This commit is contained in:
Ayaz Hafiz 2023-01-12 10:52:15 -06:00 committed by Folkert
parent 2e36e2f418
commit 6dca92e420
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -3840,13 +3840,13 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
| Expr::Record { .. }
| Crash { .. }
| Access { .. }
| Update { .. }
=> {
return false
}
// TODO(weakening)
Var(_, _)
| AbilityMember(_, _, _)
| Update { .. }
| Tag { .. }
| ZeroArgumentTag { .. }
| OpaqueWrapFunction(_)