mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +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
|
@ -734,7 +734,7 @@ pub struct Static {
|
|||
|
||||
impl Static {
|
||||
pub fn module(self, db: &impl DefDatabase) -> Module {
|
||||
Module { id: self.id.module(db) }
|
||||
Module { id: self.id.lookup(db).module(db) }
|
||||
}
|
||||
|
||||
pub fn krate(self, db: &impl DefDatabase) -> Option<Crate> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue