aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-01-30 17:01:38 +0000
committerAleksey Kladov <[email protected]>2020-01-30 17:01:38 +0000
commitc2e3dba8cbf446a0210d6153e4a6a91fa0aac9b6 (patch)
tree796781f046e689529e01175a028d0bcb247ba87d /crates
parentc7e0baf1a80dad5b7b2a819bbd426074c77be9d7 (diff)
Add a FIXME note
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;