mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Make ItemTreeId
its own type
This commit is contained in:
parent
5632e61f79
commit
759f8c83e5
8 changed files with 77 additions and 37 deletions
|
@ -574,7 +574,7 @@ impl<'db> SemanticsImpl<'db> {
|
|||
}
|
||||
|
||||
fn scope_for_def(&self, def: Trait) -> SemanticsScope<'db> {
|
||||
let file_id = self.db.lookup_intern_trait(def.id).id.file_id;
|
||||
let file_id = self.db.lookup_intern_trait(def.id).id.file_id();
|
||||
let resolver = def.id.resolver(self.db.upcast());
|
||||
SemanticsScope { db: self.db, file_id, resolver }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue