Skip to content
Merged
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
Remove unused feature filter.
  • Loading branch information
ehuss committed Jul 14, 2019
commit f1bf38236f0d3f62e378e0e0cab2e2d58bd45e52
6 changes: 0 additions & 6 deletions src/cargo/core/compiler/context/unit_dependencies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down