1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Database + AnalysisHost split (rust-analyzer pattern).
//!
//! `AnalysisHost` owns the mutable salsa database; LSP write paths
//! (`did_open`, `did_change`, workspace scan) go through the host.
//! Read-only handlers snapshot the db (cheap `Arc<Zalsa>` clone) and run
//! queries lock-free.
//!
//! After the mir 0.22 migration, this module no longer owns the workspace
//! `MirDb` — that's the responsibility of `mir_analyzer::AnalysisSession`
//! held by `DocumentStore`. Salsa is for parsed_doc / file_index / method_returns
//! only.
use ;
/// Owns the mutable salsa database. Backend will hold one of these.