Skip to content

Commit

Permalink
Remove unused feature filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jul 14, 2019
1 parent 705009e commit f1bf382
Showing 1 changed file with 0 additions and 6 deletions.
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

0 comments on commit f1bf382

Please sign in to comment.