aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/change.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/change.rs')
-rw-r--r--crates/ra_ide/src/change.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/crates/ra_ide/src/change.rs b/crates/ra_ide/src/change.rs
index 387a9cafb..b0aa2c8e0 100644
--- a/crates/ra_ide/src/change.rs
+++ b/crates/ra_ide/src/change.rs
@@ -176,7 +176,8 @@ impl RootDatabase {
176 if !change.new_roots.is_empty() { 176 if !change.new_roots.is_empty() {
177 let mut local_roots = Vec::clone(&self.local_roots()); 177 let mut local_roots = Vec::clone(&self.local_roots());
178 for (root_id, is_local) in change.new_roots { 178 for (root_id, is_local) in change.new_roots {
179 let root = if is_local { SourceRoot::new() } else { SourceRoot::new_library() }; 179 let root =
180 if is_local { SourceRoot::new_local() } else { SourceRoot::new_library() };
180 let durability = durability(&root); 181 let durability = durability(&root);
181 self.set_source_root_with_durability(root_id, Arc::new(root), durability); 182 self.set_source_root_with_durability(root_id, Arc::new(root), durability);
182 if is_local { 183 if is_local {
@@ -201,7 +202,7 @@ impl RootDatabase {
201 libraries.push(library.root_id); 202 libraries.push(library.root_id);
202 self.set_source_root_with_durability( 203 self.set_source_root_with_durability(
203 library.root_id, 204 library.root_id,
204 Default::default(), 205 Arc::new(SourceRoot::new_library()),
205 Durability::HIGH, 206 Durability::HIGH,
206 ); 207 );
207 self.set_library_symbols_with_durability( 208 self.set_library_symbols_with_durability(
@@ -273,7 +274,7 @@ impl RootDatabase {
273 self.query(hir::db::BodyWithSourceMapQuery).sweep(sweep); 274 self.query(hir::db::BodyWithSourceMapQuery).sweep(sweep);
274 275
275 self.query(hir::db::ExprScopesQuery).sweep(sweep); 276 self.query(hir::db::ExprScopesQuery).sweep(sweep);
276 self.query(hir::db::InferQuery).sweep(sweep); 277 self.query(hir::db::DoInferQuery).sweep(sweep);
277 self.query(hir::db::BodyQuery).sweep(sweep); 278 self.query(hir::db::BodyQuery).sweep(sweep);
278 } 279 }
279 280
@@ -309,7 +310,7 @@ impl RootDatabase {
309 hir::db::EnumDataQuery 310 hir::db::EnumDataQuery
310 hir::db::TraitDataQuery 311 hir::db::TraitDataQuery
311 hir::db::RawItemsQuery 312 hir::db::RawItemsQuery
312 hir::db::CrateDefMapQuery 313 hir::db::ComputeCrateDefMapQuery
313 hir::db::GenericParamsQuery 314 hir::db::GenericParamsQuery
314 hir::db::FunctionDataQuery 315 hir::db::FunctionDataQuery
315 hir::db::TypeAliasDataQuery 316 hir::db::TypeAliasDataQuery
@@ -320,7 +321,7 @@ impl RootDatabase {
320 hir::db::LangItemQuery 321 hir::db::LangItemQuery
321 hir::db::DocumentationQuery 322 hir::db::DocumentationQuery
322 hir::db::ExprScopesQuery 323 hir::db::ExprScopesQuery
323 hir::db::InferQuery 324 hir::db::DoInferQuery
324 hir::db::TyQuery 325 hir::db::TyQuery
325 hir::db::ValueTyQuery 326 hir::db::ValueTyQuery
326 hir::db::FieldTypesQuery 327 hir::db::FieldTypesQuery