From 69bbe79c5037eb3cd00744593d1836e45a6f56e1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 22 Aug 2019 14:44:16 +0300 Subject: implement feature flags --- crates/ra_batch/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_batch/src') diff --git a/crates/ra_batch/src/lib.rs b/crates/ra_batch/src/lib.rs index 0db751465..f458ea300 100644 --- a/crates/ra_batch/src/lib.rs +++ b/crates/ra_batch/src/lib.rs @@ -3,7 +3,7 @@ use std::{collections::HashSet, error::Error, path::Path}; use rustc_hash::FxHashMap; use ra_db::{CrateGraph, FileId, SourceRootId}; -use ra_ide_api::{AnalysisChange, AnalysisHost}; +use ra_ide_api::{AnalysisChange, AnalysisHost, FeatureFlags}; use ra_project_model::{PackageRoot, ProjectWorkspace}; use ra_vfs::{RootEntry, Vfs, VfsChange}; use ra_vfs_glob::RustPackageFilterBuilder; @@ -63,7 +63,7 @@ pub fn load( vfs: &mut Vfs, ) -> AnalysisHost { let lru_cap = std::env::var("RA_LRU_CAP").ok().and_then(|it| it.parse::().ok()); - let mut host = AnalysisHost::new(lru_cap); + let mut host = AnalysisHost::new(lru_cap, FeatureFlags::default()); let mut analysis_change = AnalysisChange::new(); analysis_change.set_crate_graph(crate_graph); -- cgit v1.2.3