mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-26 17:57:19 +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
|
|
@ -67,6 +67,16 @@ const _: () = {
|
|||
self.parent.hash(state);
|
||||
}
|
||||
}
|
||||
|
||||
impl zalsa_::HasJar for SyntaxContext {
|
||||
type Jar = zalsa_struct_::JarImpl<SyntaxContext>;
|
||||
const KIND: zalsa_::JarKind = zalsa_::JarKind::Struct;
|
||||
}
|
||||
|
||||
zalsa_::register_jar! {
|
||||
zalsa_::ErasedJar::erase::<SyntaxContext>()
|
||||
}
|
||||
|
||||
/// Key to use during hash lookups. Each field is some type that implements `Lookup<T>`
|
||||
/// for the owned type. This permits interning with an `&str` when a `String` is required and so forth.
|
||||
#[derive(Hash)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue