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
merged 1 commit into from
Sep 22, 2018
Merged

Update Cargo in the RLS #1063

merged 1 commit into from
Sep 22, 2018

Conversation

alexcrichton
Copy link
Member

Fixes the fallout of rust-lang/rust#54334

};
let mut pkg_id_to_pkg = HashMap::new();
let mut manifest_to_id = HashMap::new();
let mut packages = Vec::new();
for (idx, pkg_id) in resolve.iter().enumerate() {
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
Contributor

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
Member

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
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants