mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Move constants to new ID
This allows us to get rid of trait item index
This commit is contained in:
parent
ee95a35664
commit
111891dc2d
16 changed files with 119 additions and 89 deletions
|
@ -120,7 +120,7 @@ impl HasSource for Function {
|
|||
impl HasSource for Const {
|
||||
type Ast = ast::ConstDef;
|
||||
fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<ast::ConstDef> {
|
||||
self.id.source(db)
|
||||
self.id.lookup(db).source(db)
|
||||
}
|
||||
}
|
||||
impl HasSource for Static {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue