mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 13:13:40 +00:00
Merge pull request #2243 from topecongiro/issue-2241
Use package name instead of target name for --package filter
This commit is contained in:
commit
0432d4db35
@ -290,8 +290,8 @@ fn get_targets_with_hitlist(
|
||||
let mut workspace_hitlist: HashSet<&String> = HashSet::from_iter(hitlist);
|
||||
|
||||
for package in metadata.packages {
|
||||
for target in package.targets {
|
||||
if workspace_hitlist.remove(&target.name) {
|
||||
if workspace_hitlist.remove(&package.name) {
|
||||
for target in package.targets {
|
||||
targets.insert(Target::from_target(&target));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user