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

Commit 9692ca8

Browse files
authored
Merge pull request #1462 from ehuss/update-cargo
Update cargo and clippy
2 parents 317c2b5 + e18ff49 commit 9692ca8

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

Cargo.lock

+13-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ rls-rustc = { version = "0.6.0", path = "rls-rustc" }
2929
rls-span = "0.5"
3030
rls-vfs = "0.8"
3131

32-
cargo = { git = "https://github.com/rust-lang/cargo", rev = "beb8fcb5248dc2e6aa488af9613216d5ccb31c6a" }
32+
cargo = { git = "https://github.com/rust-lang/cargo", rev = "d56af31df1fbe45105ccd3b633297b2bc61e7405" }
3333
cargo_metadata = "0.7"
34-
clippy_lints = { git = "https://github.com/rust-lang/rust-clippy", rev = "fc96aa036884183ddc68d2659f4633e6f138b4e0", optional = true }
34+
clippy_lints = { git = "https://github.com/rust-lang/rust-clippy", rev = "60a609acaed3bf2b3ec6ab995bccf0f03bc26060", optional = true }
3535
env_logger = "0.6"
3636
failure = "0.1.1"
3737
home = "0.3"

rls/src/build/cargo.rs

+2
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ impl Executor for RlsExecutor {
388388
id: PackageId,
389389
target: &Target,
390390
mode: CompileMode,
391+
_on_stdout_line: &mut dyn FnMut(&str) -> CargoResult<()>,
392+
_on_stderr_line: &mut dyn FnMut(&str) -> CargoResult<()>,
391393
) -> CargoResult<()> {
392394
// Use JSON output so that we can parse the rustc output.
393395
cargo_cmd.arg("--error-format=json");

rls/src/project_model.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ impl ProjectModel {
4747
let mut config = Config::default()?;
4848
// Enable nightly flag for cargo(see #1043)
4949
cargo::core::enable_nightly_features();
50-
// frozen = false, locked = false
51-
config.configure(0, Some(true), &None, false, false, &None, &[])?;
50+
// frozen = false, locked = false, offline = false
51+
config.configure(0, Some(true), &None, false, false, false, &None, &[])?;
5252
let ws = Workspace::new(&ws_manifest, &config)?;
5353
// get resolve from lock file
5454
let prev = {

0 commit comments

Comments
 (0)