mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Finalize union grammar
This commit is contained in:
parent
8ddbf06e39
commit
1ae4721c9c
23 changed files with 51 additions and 51 deletions
|
@ -63,8 +63,8 @@ impl HasSource for Struct {
|
|||
}
|
||||
}
|
||||
impl HasSource for Union {
|
||||
type Ast = ast::UnionDef;
|
||||
fn source(self, db: &dyn HirDatabase) -> InFile<ast::UnionDef> {
|
||||
type Ast = ast::Union;
|
||||
fn source(self, db: &dyn HirDatabase) -> InFile<ast::Union> {
|
||||
self.id.lookup(db.upcast()).source(db.upcast())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue