diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-10-31 19:13:01 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-10-31 19:13:01 +0000 |
commit | 41adf1bc4f8b88139afd550209c0be612c10ffa8 (patch) | |
tree | a59d7d2d99a916adae75a6841f0ff9a72ab2de0c /crates/ra_analysis/src | |
parent | 64ce895ef0beea75e9ecfcdf5b4e226a8a6336d8 (diff) | |
parent | 3c2aefc274dfee03acdbffd267df1189c40a1b14 (diff) |
Merge #178
178: Prevent panic by initializing LibrariesQuery r=matklad a=kjeremy
Co-authored-by: Jeremy A. Kolb <[email protected]>
Diffstat (limited to 'crates/ra_analysis/src')
-rw-r--r-- | crates/ra_analysis/src/imp.rs | 2 |
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 { |