diff options
author | Xavier Denis <[email protected]> | 2020-11-10 20:50:05 +0000 |
---|---|---|
committer | Xavier Denis <[email protected]> | 2020-11-11 11:45:40 +0000 |
commit | 871608791934f81cdd430797fdd64a8f9da19074 (patch) | |
tree | 9dfd9fd0f6dae3a736c882fc410723acd643138b /crates/rust-analyzer/src/reload.rs | |
parent | 5c06e820fa02b47a1550576f2a7071ff94fb0c64 (diff) |
Add support for loading rustc private crates
Diffstat (limited to 'crates/rust-analyzer/src/reload.rs')
-rw-r--r-- | crates/rust-analyzer/src/reload.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/reload.rs b/crates/rust-analyzer/src/reload.rs index 0eabd51bd..11c8d0e5f 100644 --- a/crates/rust-analyzer/src/reload.rs +++ b/crates/rust-analyzer/src/reload.rs | |||
@@ -246,7 +246,9 @@ impl GlobalState { | |||
246 | .iter() | 246 | .iter() |
247 | .enumerate() | 247 | .enumerate() |
248 | .filter_map(|(id, w)| match w { | 248 | .filter_map(|(id, w)| match w { |
249 | ProjectWorkspace::Cargo { cargo, sysroot: _ } => Some((id, cargo.workspace_root())), | 249 | ProjectWorkspace::Cargo { cargo, sysroot: _, rustc: _ } => { |
250 | Some((id, cargo.workspace_root())) | ||
251 | } | ||
250 | ProjectWorkspace::Json { project, .. } => { | 252 | ProjectWorkspace::Json { project, .. } => { |
251 | // Enable flychecks for json projects if a custom flycheck command was supplied | 253 | // Enable flychecks for json projects if a custom flycheck command was supplied |
252 | // in the workspace configuration. | 254 | // in the workspace configuration. |