mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
internal: Refactor FamousDefs builtin crate search
This commit is contained in:
parent
259182b50b
commit
ef92453dfe
16 changed files with 146 additions and 105 deletions
|
@ -64,7 +64,7 @@ use cfg::CfgOptions;
|
|||
use ide_db::{
|
||||
base_db::{
|
||||
salsa::{self, ParallelDatabase},
|
||||
Env, FileLoader, FileSet, SourceDatabase, VfsPath,
|
||||
CrateOrigin, Env, FileLoader, FileSet, SourceDatabase, VfsPath,
|
||||
},
|
||||
symbol_index, LineIndexDatabase,
|
||||
};
|
||||
|
@ -232,7 +232,7 @@ impl Analysis {
|
|||
Env::default(),
|
||||
Default::default(),
|
||||
false,
|
||||
Default::default(),
|
||||
CrateOrigin::CratesIo { repo: None },
|
||||
);
|
||||
change.change_file(file_id, Some(Arc::new(text)));
|
||||
change.set_crate_graph(crate_graph);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue