mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Switch to StaticLoc for statics
This commit is contained in:
parent
982a32aca3
commit
e0b06cb672
13 changed files with 65 additions and 28 deletions
|
@ -88,7 +88,7 @@ impl HasSource for Const {
|
|||
impl HasSource for Static {
|
||||
type Ast = ast::StaticDef;
|
||||
fn source(self, db: &impl DefDatabase) -> Source<ast::StaticDef> {
|
||||
self.id.source(db)
|
||||
self.id.lookup(db).source(db)
|
||||
}
|
||||
}
|
||||
impl HasSource for Trait {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue