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

Commit

Permalink
Merge pull request #767 from alexcrichton/update-cargo
Browse files Browse the repository at this point in the history
Update to latest Cargo master
  • Loading branch information
nrc committed Mar 16, 2018
2 parents 1d6538a + c0f07b3 commit a9a644c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 35 deletions.
34 changes: 8 additions & 26 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ categories = ["development-tools"]
build = "build.rs"

[dependencies]
# cargo hash delivered with nightly-2018-03-14
cargo = { git = "https://github.com/rust-lang/cargo", rev = "5f83bb4044f32b60d06717c609610f67411fc671" }
cargo = { git = "https://github.com/rust-lang/cargo", rev = "1184854427a938bd981f037f19364ad8713fe13b" }
cargo_metadata = "0.5.2"
env_logger = "0.5"
failure = "0.1.1"
Expand Down
14 changes: 7 additions & 7 deletions src/build/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,25 +185,25 @@ fn run_cargo(
(opts, rustflags, rls_config.clear_env_rust_log)
};

let spec = Packages::from_flags(false, &[], &packages)?;
let spec = Packages::from_flags(false, Vec::new(), packages)?;

let compile_opts = CompileOptions {
target: opts.target.as_ref().map(|t| &t[..]),
target: opts.target,
spec,
filter: CompileFilter::new(
opts.lib,
&opts.bin,
opts.bin,
opts.bins,
// TODO: Support more crate target types
&[],
Vec::new(),
false,
&[],
Vec::new(),
false,
&[],
Vec::new(),
false,
opts.all_targets,
),
features: &opts.features,
features: opts.features,
all_features: opts.all_features,
no_default_features: opts.no_default_features,
jobs: opts.jobs,
Expand Down

0 comments on commit a9a644c

Please sign in to comment.