From c2e3dba8cbf446a0210d6153e4a6a91fa0aac9b6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jan 2020 18:01:38 +0100 Subject: Add a FIXME note --- crates/ra_project_model/src/cargo_workspace.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/ra_project_model') 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 { for node in resolve.nodes { let source = match pkg_by_id.get(&node.id) { Some(&src) => src, + // FIXME: replace this and a similar branch below with `.unwrap`, once + // https://github.com/rust-lang/cargo/issues/7841 + // is fixed and hits stable (around 1.43-is probably?). None => { log::error!("Node id do not match in cargo metadata, ignoring {}", node.id); continue; -- cgit v1.2.3