mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Move structs to new loc
This commit is contained in:
parent
63c192b34a
commit
f135a8ea55
14 changed files with 66 additions and 30 deletions
|
@ -699,7 +699,7 @@ impl CallableDef {
|
|||
pub fn krate(self, db: &impl HirDatabase) -> CrateId {
|
||||
match self {
|
||||
CallableDef::FunctionId(f) => f.lookup(db).module(db).krate,
|
||||
CallableDef::StructId(s) => s.module(db).krate,
|
||||
CallableDef::StructId(s) => s.lookup(db).container.krate,
|
||||
CallableDef::EnumVariantId(e) => e.parent.module(db).krate,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue