mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Remove unused feature filter.
This commit is contained in:
parent
705009eb38
commit
f1bf38236f
@ -162,12 +162,6 @@ fn compute_deps<'a, 'cfg, 'tmp>(
|
||||
return false;
|
||||
}
|
||||
|
||||
// If the dependency is optional, then we're only activating it
|
||||
// if the corresponding feature was activated
|
||||
if dep.is_optional() && !bcx.resolve.features(id).contains(&*dep.name_in_toml()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If we've gotten past all that, then this dependency is
|
||||
// actually used!
|
||||
true
|
||||
|
Loading…
x
Reference in New Issue
Block a user