mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 02:52:11 +00:00
Switch to home-made db attaching infrastructure
Instead of using Salsa's, as we can no longer can a `dyn HirDatabase` from the `dyn salsa::Database` Salsa provides.
This commit is contained in:
parent
a7234f8b3a
commit
c6ef51e550
52 changed files with 499 additions and 418 deletions
|
|
@ -14,7 +14,6 @@ use crate::{
|
|||
db::HirDatabase,
|
||||
semantics::{PathResolution, PathResolutionPerNs},
|
||||
};
|
||||
use base_db::salsa;
|
||||
use either::Either;
|
||||
use hir_def::{
|
||||
AdtId, AssocItemId, CallableDefId, ConstId, DefWithBodyId, FieldId, FunctionId, GenericDefId,
|
||||
|
|
@ -1637,7 +1636,7 @@ fn resolve_hir_path_(
|
|||
Some(unresolved) => resolver
|
||||
.generic_def()
|
||||
.and_then(|def| {
|
||||
salsa::attach(db, || {
|
||||
hir_ty::attach_db(db, || {
|
||||
hir_ty::associated_type_shorthand_candidates(
|
||||
db,
|
||||
def,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue