Skip to content

Commit

Permalink
Update cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed May 14, 2019
1 parent 5b8e99b commit f2d51d0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
21 changes: 10 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rls-rustc = { version = "0.6.0", path = "rls-rustc" }
rls-span = "0.5"
rls-vfs = "0.8"

cargo = { git = "https://github.com/rust-lang/cargo", rev = "beb8fcb5248dc2e6aa488af9613216d5ccb31c6a" }
cargo = { git = "https://github.com/rust-lang/cargo", rev = "d56af31df1fbe45105ccd3b633297b2bc61e7405" }
cargo_metadata = "0.7"
clippy_lints = { git = "https://github.com/rust-lang/rust-clippy", rev = "86f73473c8de4598f8ade982dbb9d44f89777c54", optional = true }
env_logger = "0.6"
Expand Down
2 changes: 2 additions & 0 deletions rls/src/build/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ impl Executor for RlsExecutor {
id: PackageId,
target: &Target,
mode: CompileMode,
_on_stdout_line: &mut dyn FnMut(&str) -> CargoResult<()>,
_on_stderr_line: &mut dyn FnMut(&str) -> CargoResult<()>,
) -> CargoResult<()> {
// Use JSON output so that we can parse the rustc output.
cargo_cmd.arg("--error-format=json");
Expand Down
4 changes: 2 additions & 2 deletions rls/src/project_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ impl ProjectModel {
let mut config = Config::default()?;
// Enable nightly flag for cargo(see #1043)
cargo::core::enable_nightly_features();
// frozen = false, locked = false
config.configure(0, Some(true), &None, false, false, &None, &[])?;
// frozen = false, locked = false, offline = false
config.configure(0, Some(true), &None, false, false, false, &None, &[])?;
let ws = Workspace::new(&ws_manifest, &config)?;
// get resolve from lock file
let prev = {
Expand Down

0 comments on commit f2d51d0

Please sign in to comment.