Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Update Cargo in the RLS#1063

Merged
Xanewok merged 1 commit intorust-lang:masterfrom
alexcrichton:bump-carg
Sep 22, 2018
Merged

Update Cargo in the RLS#1063
Xanewok merged 1 commit intorust-lang:masterfrom
alexcrichton:bump-carg

Conversation

@alexcrichton
Copy link
Member

Fixes the fallout of rust-lang/rust#54334

let pkg = Package(idx);
pkg_id_to_pkg.insert(pkg_id.clone(), pkg);
let cargo_pkg = cargo_packages.get(pkg_id)?;
let cargo_pkg = cargo_packages.get_one(pkg_id)?;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the breakge here stems from rust-lang/cargo#6005 where Cargo can now download crates in parallel. The get_one is the (now renamed) old synchronous interface, and RLS likely wants to try using the new get_many interface to leverage parallel downloads. For now though I've left it as-is to hopefully get the regression fixed quickly, and this could perhaps be a future follow-up!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe leave a FIXME or open an issue so this isn't forgotten?

@Xanewok Xanewok merged commit ce1ff4e into rust-lang:master Sep 22, 2018
@Xanewok
Copy link
Contributor

Xanewok commented Sep 22, 2018

Thanks! I'll open a follow-up issue to the mentioned parallel downloads.

@Xanewok Xanewok mentioned this pull request Sep 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants