aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis
diff options
context:
space:
mode:
authorJeremy A. Kolb <[email protected]>2018-10-31 18:53:09 +0000
committerJeremy A. Kolb <[email protected]>2018-10-31 18:53:09 +0000
commit3c2aefc274dfee03acdbffd267df1189c40a1b14 (patch)
treea59d7d2d99a916adae75a6841f0ff9a72ab2de0c /crates/ra_analysis
parent64ce895ef0beea75e9ecfcdf5b4e226a8a6336d8 (diff)
Prevent panic by initializing LibrariesQuery
Diffstat (limited to 'crates/ra_analysis')
-rw-r--r--crates/ra_analysis/src/imp.rs2
1 files changed, 2 insertions, 0 deletions
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 {
102 .set(WORKSPACE, Default::default()); 102 .set(WORKSPACE, Default::default());
103 db.query(crate::input::CrateGraphQuery) 103 db.query(crate::input::CrateGraphQuery)
104 .set((), Default::default()); 104 .set((), Default::default());
105 db.query(crate::input::LibrariesQuery)
106 .set((), Default::default());
105 AnalysisHostImpl { db } 107 AnalysisHostImpl { db }
106 } 108 }
107 pub fn analysis(&self) -> AnalysisImpl { 109 pub fn analysis(&self) -> AnalysisImpl {