mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Prepare ItemScope for IDE import resolution
This commit is contained in:
parent
1b678231d7
commit
af8048266c
11 changed files with 174 additions and 67 deletions
|
@ -94,18 +94,21 @@ impl fmt::Debug for RootDatabase {
|
|||
}
|
||||
|
||||
impl Upcast<dyn ExpandDatabase> for RootDatabase {
|
||||
#[inline]
|
||||
fn upcast(&self) -> &(dyn ExpandDatabase + 'static) {
|
||||
&*self
|
||||
}
|
||||
}
|
||||
|
||||
impl Upcast<dyn DefDatabase> for RootDatabase {
|
||||
#[inline]
|
||||
fn upcast(&self) -> &(dyn DefDatabase + 'static) {
|
||||
&*self
|
||||
}
|
||||
}
|
||||
|
||||
impl Upcast<dyn HirDatabase> for RootDatabase {
|
||||
#[inline]
|
||||
fn upcast(&self) -> &(dyn HirDatabase + 'static) {
|
||||
&*self
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue