]> git.proxmox.com Git - cargo.git/commit
Auto merge of #7131 - ehuss:remove-unused-opt-feature, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 15 Jul 2019 19:38:18 +0000 (19:38 +0000)
committerbors <bors@rust-lang.org>
Mon, 15 Jul 2019 19:38:18 +0000 (19:38 +0000)
commitbe17b00d013899f69784c5d6313e70f9068186a5
tree25584a2b5a12432ad4caa45b6e2fc3e2ee09111e
parent1760f1f6cc3732ef71c80072e22d201304ca13c6
parentf1bf38236f0d3f62e378e0e0cab2e2d58bd45e52
Auto merge of #7131 - ehuss:remove-unused-opt-feature, r=alexcrichton

Remove unused feature filter.

NOTE: Do not merge this lightly. This upended my understanding of how the resolver handles features, and I'm still not sure about it.

Remove an unused check that an optional dependency is activated.

This was originally added 4 years ago in #1812, during a time when this code iterated over the actual dependencies from `Package.dependencies()`. In #5415 this was refactored so that it gets the `deps` list directly from the Resolver, which AFAIK has already filtered out the features. IIUC, this filtering is done [here](https://github.com/rust-lang/cargo/blame/705009eb3828123cc9dbcf5b28988cc63f60b03b/src/cargo/core/resolver/dep_cache.rs#L270-L272).