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

Commit dd341d5

Browse files
authored
Merge pull request #1686 from ehuss/update-cargo
Update cargo
2 parents fb46b91 + 2fa1c51 commit dd341d5

File tree

3 files changed

+33
-24
lines changed

3 files changed

+33
-24
lines changed

Cargo.lock

Lines changed: 30 additions & 22 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
@@ -30,7 +30,7 @@ rls-vfs = "0.8"
3030
rls-ipc = { version = "0.1.0", path = "rls-ipc", optional = true }
3131

3232
anyhow = "1.0.26"
33-
cargo = { git = "https://github.com/rust-lang/cargo", rev = "258c89644c4587273a3ed3ee9522d2640facba43" }
33+
cargo = { git = "https://github.com/rust-lang/cargo", rev = "305eaf0dc5f5a38d6e8041319c2da95b71cf6a4a" }
3434
cargo_metadata = "0.8"
3535
clippy_lints = { git = "https://github.com/rust-lang/rust-clippy", rev = "7ea7cd165ad6705603852771bf82cc2fd6560db5", optional = true }
3636
env_logger = "0.7"

rls/src/build/cargo.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,13 +384,14 @@ impl Executor for RlsExecutor {
384384

385385
fn exec(
386386
&self,
387-
mut cargo_cmd: ProcessBuilder,
387+
cargo_cmd: &ProcessBuilder,
388388
id: PackageId,
389389
target: &Target,
390390
mode: CompileMode,
391391
_on_stdout_line: &mut dyn FnMut(&str) -> CargoResult<()>,
392392
_on_stderr_line: &mut dyn FnMut(&str) -> CargoResult<()>,
393393
) -> CargoResult<()> {
394+
let mut cargo_cmd = cargo_cmd.clone();
394395
// Enforce JSON output so that we can parse the rustc output by
395396
// stripping --error-format if it was specified (e.g. Cargo pipelined
396397
// build)

0 commit comments

Comments
 (0)