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

Update cargo. #1048

Merged
merged 1 commit into from
Sep 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 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 @@ -13,7 +13,7 @@ categories = ["development-tools"]
build = "build.rs"

[dependencies]
cargo = { git = "https://github.com/rust-lang/cargo", rev = "0ec7281b9c36ca7f724bfac8b029633910270a48" }
cargo = { git = "https://github.com/rust-lang/cargo", rev = "9311f6d439e09da3ab918397a425be57da13f04a" }
cargo_metadata = "0.6"
clippy_lints = { git = "https://github.com/rust-lang-nursery/rust-clippy", rev = "d6f01f3a6c16d2fc350c36fb704ef68277ef426e", optional = true }
env_logger = "0.5"
Expand Down
7 changes: 5 additions & 2 deletions src/build/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ impl Plan {
let build_scripts: HashMap<&Path, UnitKey> = self
.units
.iter()
.filter(|&(&(_, ref target, _), _)| *target.kind() == TargetKind::CustomBuild)
.map(|(key, unit)| (unit.target.src_path(), key.clone()))
.filter(|&(&(_, ref target, _), _)| {
*target.kind() == TargetKind::CustomBuild && target.src_path().is_path()
})
.map(|(key, unit)| (unit.target.src_path().path(), key.clone()))
.collect();
let other_targets: HashMap<UnitKey, &Path> = self
.units
Expand All @@ -197,6 +199,7 @@ impl Plan {
key.clone(),
unit.target
.src_path()
.path()
.parent()
.expect("no parent for src_path"),
)
Expand Down
2 changes: 1 addition & 1 deletion src/project_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl ProjectModel {
.iter()
.find(|t| t.is_lib())
// racer expect name 'underscored'(crate) name
.map(|t| (t.src_path().to_owned(), t.name().replace('-', "_"))),
.map(|t| (t.src_path().path().to_owned(), t.name().replace('-', "_"))),
deps: Vec::new(),
});
manifest_to_id.insert(manifest, pkg);
Expand Down