mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 02:06:57 +00:00
Salsify the crate graph
I.e. make it not one giant input but multiple, for incrementality and decreased memory usage for Salsa 3 reasons.
This commit is contained in:
parent
44f18c3d05
commit
c94e9efbef
108 changed files with 3630 additions and 2512 deletions
|
|
@ -569,7 +569,7 @@ impl Evaluator<'_> {
|
|||
}
|
||||
String::from_utf8_lossy(&name_buf)
|
||||
};
|
||||
let value = self.db.crate_graph()[self.crate_id].env.get(&name);
|
||||
let value = self.crate_id.env(self.db).get(&name);
|
||||
match value {
|
||||
None => {
|
||||
// Write null as fail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue