mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Merge #2954
2954: Add a FIXME note r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
bc29b7c0e5
1 changed files with 3 additions and 0 deletions
|
@ -209,6 +209,9 @@ impl CargoWorkspace {
|
||||||
for node in resolve.nodes {
|
for node in resolve.nodes {
|
||||||
let source = match pkg_by_id.get(&node.id) {
|
let source = match pkg_by_id.get(&node.id) {
|
||||||
Some(&src) => src,
|
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 => {
|
None => {
|
||||||
log::error!("Node id do not match in cargo metadata, ignoring {}", node.id);
|
log::error!("Node id do not match in cargo metadata, ignoring {}", node.id);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue