From 3c2aefc274dfee03acdbffd267df1189c40a1b14 Mon Sep 17 00:00:00 2001 From: "Jeremy A. Kolb" Date: Wed, 31 Oct 2018 14:53:09 -0400 Subject: Prevent panic by initializing LibrariesQuery --- crates/ra_analysis/src/imp.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ra_analysis') diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs index ab795a647..b3c094041 100644 --- a/crates/ra_analysis/src/imp.rs +++ b/crates/ra_analysis/src/imp.rs @@ -102,6 +102,8 @@ impl AnalysisHostImpl { .set(WORKSPACE, Default::default()); db.query(crate::input::CrateGraphQuery) .set((), Default::default()); + db.query(crate::input::LibrariesQuery) + .set((), Default::default()); AnalysisHostImpl { db } } pub fn analysis(&self) -> AnalysisImpl { -- cgit v1.2.3