Lower attributes on tuple fields

This commit is contained in:
Jonas Schievink 2021-04-06 20:17:52 +02:00
parent 52c0ecb982
commit 0d4c931416

View File

@ -215,12 +215,11 @@ pub(crate) fn fields_attrs_query(
let mut res = ArenaMap::default(); let mut res = ArenaMap::default();
for (id, fld) in src.value.iter() { for (id, fld) in src.value.iter() {
let attrs = match fld { let owner: &dyn AttrsOwner = match fld {
Either::Left(_tuple) => Attrs::default(), Either::Left(tuple) => tuple,
Either::Right(record) => { Either::Right(record) => record,
RawAttrs::from_attrs_owner(db, src.with_value(record)).filter(db, krate)
}
}; };
let attrs = RawAttrs::from_attrs_owner(db, src.with_value(owner)).filter(db, krate);
res.insert(id, attrs); res.insert(id, attrs);
} }