mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add basic support for delegation
This commit is contained in:
parent
1619fa9d8f
commit
0ff89deb69
4 changed files with 161 additions and 0 deletions
|
@ -3007,3 +3007,9 @@ impl HasCrate for Function {
|
|||
self.module(db).krate()
|
||||
}
|
||||
}
|
||||
|
||||
impl HasCrate for Type {
|
||||
fn krate(&self, _db: &dyn HirDatabase) -> Crate {
|
||||
self.krate.into()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue