Skip to content

Commit f1bf382

Browse files
committed
Remove unused feature filter.
1 parent 705009e commit f1bf382

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/cargo/core/compiler/context/unit_dependencies.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,6 @@ fn compute_deps<'a, 'cfg, 'tmp>(
162162
return false;
163163
}
164164

165-
// If the dependency is optional, then we're only activating it
166-
// if the corresponding feature was activated
167-
if dep.is_optional() && !bcx.resolve.features(id).contains(&*dep.name_in_toml()) {
168-
return false;
169-
}
170-
171165
// If we've gotten past all that, then this dependency is
172166
// actually used!
173167
true

0 commit comments

Comments
 (0)