mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Switch type aliases to new sources
This commit is contained in:
parent
b7a36b5443
commit
64c21ed195
9 changed files with 162 additions and 73 deletions
|
@ -138,7 +138,7 @@ impl HasSource for Trait {
|
|||
impl HasSource for TypeAlias {
|
||||
type Ast = ast::TypeAliasDef;
|
||||
fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<ast::TypeAliasDef> {
|
||||
self.id.source(db)
|
||||
self.id.lookup(db).source(db)
|
||||
}
|
||||
}
|
||||
impl HasSource for MacroDef {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue