aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-01-30 17:02:12 +0000
committerGitHub <[email protected]>2020-01-30 17:02:12 +0000
commitbc29b7c0e5b8e69d62953d38c482a4906adc84a8 (patch)
tree796781f046e689529e01175a028d0bcb247ba87d /crates
parentc7e0baf1a80dad5b7b2a819bbd426074c77be9d7 (diff)
parentc2e3dba8cbf446a0210d6153e4a6a91fa0aac9b6 (diff)
Merge #2954
2954: Add a FIXME note r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_project_model/src/cargo_workspace.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_project_model/src/cargo_workspace.rs b/crates/ra_project_model/src/cargo_workspace.rs
index 66db2be51..60cb8c1eb 100644
--- a/crates/ra_project_model/src/cargo_workspace.rs
+++ b/crates/ra_project_model/src/cargo_workspace.rs
@@ -209,6 +209,9 @@ impl CargoWorkspace {
209 for node in resolve.nodes { 209 for node in resolve.nodes {
210 let source = match pkg_by_id.get(&node.id) { 210 let source = match pkg_by_id.get(&node.id) {
211 Some(&src) => src, 211 Some(&src) => src,
212 // FIXME: replace this and a similar branch below with `.unwrap`, once
213 // https://github.com/rust-lang/cargo/issues/7841
214 // is fixed and hits stable (around 1.43-is probably?).
212 None => { 215 None => {
213 log::error!("Node id do not match in cargo metadata, ignoring {}", node.id); 216 log::error!("Node id do not match in cargo metadata, ignoring {}", node.id);
214 continue; 217 continue;