Remove unused feature filter.

This commit is contained in:
Eric Huss 2019-07-14 12:41:18 -07:00
parent 705009eb38
commit f1bf38236f

View File

@ -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