record update hints

This commit is contained in:
Folkert 2020-04-11 14:55:12 +02:00
parent a67fe6540c
commit ab19529077
6 changed files with 443 additions and 55 deletions

View file

@ -174,7 +174,13 @@ pub fn constrain_expr(
let con = Lookup(
*symbol,
ForReason(
Reason::RecordUpdateKeys(*symbol, fields),
Reason::RecordUpdateKeys(
*symbol,
updates
.iter()
.map(|(key, field)| (key.clone(), field.region))
.collect(),
),
record_type,
region,
),