Skip to content

Commit f2d51d0

Browse files
committed
Update cargo
1 parent 5b8e99b commit f2d51d0

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

Cargo.lock

Lines changed: 10 additions & 11 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-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"
3434
clippy_lints = { git = "https://github.com/rust-lang/rust-clippy", rev = "86f73473c8de4598f8ade982dbb9d44f89777c54", optional = true }
3535
env_logger = "0.6"

rls/src/build/cargo.rs

Lines changed: 2 additions & 0 deletions
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

Lines changed: 2 additions & 2 deletions
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)