mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
remove resolver from world
This commit is contained in:
parent
ee69fddf02
commit
8c88900fa9
1 changed files with 0 additions and 2 deletions
|
@ -99,7 +99,6 @@ impl AnalysisHostImpl {
|
||||||
}
|
}
|
||||||
pub fn set_file_resolver(&mut self, resolver: FileResolverImp) {
|
pub fn set_file_resolver(&mut self, resolver: FileResolverImp) {
|
||||||
let data = self.data_mut();
|
let data = self.data_mut();
|
||||||
data.file_resolver = resolver.clone();
|
|
||||||
data.root = Arc::new(data.root.apply_changes(&mut iter::empty(), Some(resolver)));
|
data.root = Arc::new(data.root.apply_changes(&mut iter::empty(), Some(resolver)));
|
||||||
}
|
}
|
||||||
pub fn set_crate_graph(&mut self, graph: CrateGraph) {
|
pub fn set_crate_graph(&mut self, graph: CrateGraph) {
|
||||||
|
@ -405,7 +404,6 @@ impl AnalysisImpl {
|
||||||
|
|
||||||
#[derive(Default, Clone, Debug)]
|
#[derive(Default, Clone, Debug)]
|
||||||
struct WorldData {
|
struct WorldData {
|
||||||
file_resolver: FileResolverImp,
|
|
||||||
crate_graph: CrateGraph,
|
crate_graph: CrateGraph,
|
||||||
root: Arc<WritableSourceRoot>,
|
root: Arc<WritableSourceRoot>,
|
||||||
libs: Vec<Arc<ReadonlySourceRoot>>,
|
libs: Vec<Arc<ReadonlySourceRoot>>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue