Lower attributes on tuple fields
This commit is contained in:
parent
52c0ecb982
commit
0d4c931416
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user