mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Fix hir for ast::UnionDef
This commit is contained in:
parent
e1c0bdaf75
commit
5fd68b5929
22 changed files with 121 additions and 86 deletions
|
@ -49,6 +49,10 @@ fn impls_for_def(
|
|||
let src = hir::Source { file_id: position.file_id.into(), value: def.clone() };
|
||||
hir::Enum::from_source(db, src)?.ty(db)
|
||||
}
|
||||
ast::NominalDef::UnionDef(def) => {
|
||||
let src = hir::Source { file_id: position.file_id.into(), value: def.clone() };
|
||||
hir::Union::from_source(db, src)?.ty(db)
|
||||
}
|
||||
};
|
||||
|
||||
let krate = module.krate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue