We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52c0ecb + 0d4c931 commit bf11781Copy full SHA for bf11781
crates/hir_def/src/attr.rs
@@ -215,12 +215,11 @@ impl Attrs {
215
let mut res = ArenaMap::default();
216
217
for (id, fld) in src.value.iter() {
218
- let attrs = match fld {
219
- Either::Left(_tuple) => Attrs::default(),
220
- Either::Right(record) => {
221
- RawAttrs::from_attrs_owner(db, src.with_value(record)).filter(db, krate)
222
- }
+ let owner: &dyn AttrsOwner = match fld {
+ Either::Left(tuple) => tuple,
+ Either::Right(record) => record,
223
};
+ let attrs = RawAttrs::from_attrs_owner(db, src.with_value(owner)).filter(db, krate);
224
225
res.insert(id, attrs);
226
}
0 commit comments