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

Commit 8f1c275

Browse files
committed
Update Cargo
1 parent 48c70d0 commit 8f1c275

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ rls-span = "0.5"
2929
rls-vfs = "0.8"
3030
rls-ipc = { version = "0.1.0", path = "rls-ipc", optional = true }
3131

32-
cargo = { git = "https://github.com/rust-lang/cargo", rev = "dba478b4f069d8433a715fe73f15f310f21b801d" }
32+
cargo = { git = "https://github.com/rust-lang/cargo", rev = "626f0f40efd32e6b3dbade50cd53fdfaa08446ba" }
3333
cargo_metadata = "0.8"
3434
clippy_lints = { git = "https://github.com/rust-lang/rust-clippy", rev = "b245fbd0f2bdbd002611a45d0758f9be44eaf66b", optional = true }
3535
env_logger = "0.7"

rls/src/build/cargo_plan.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ impl CargoPlan {
151151
self.units.insert(key.clone(), unit.into());
152152

153153
// Fetch and insert relevant unit dependencies to the forward dep graph.
154-
let units = cx.dep_targets(&unit);
155-
let dep_keys: HashSet<UnitKey> = units
154+
let deps = cx.unit_deps(&unit);
155+
let dep_keys: HashSet<UnitKey> = deps
156156
.iter()
157-
.copied()
157+
.map(|dep| dep.unit)
158158
// We might not want certain deps to be added transitively (e.g.
159159
// when creating only a sub-dep-graph, limiting the scope).
160160
.filter(|unit| filter(*unit))
@@ -175,8 +175,8 @@ impl CargoPlan {
175175
}
176176

177177
// Recursively process other remaining forward dependencies.
178-
for unit in units {
179-
self.emplace_dep_with_filter(unit, cx, filter);
178+
for dep in deps {
179+
self.emplace_dep_with_filter(dep.unit, cx, filter);
180180
}
181181
}
182182

0 commit comments

Comments
 (0)