bors 0dd7c508d0 Auto merge of #7118 - alexcrichton:patch-bug, r=Eh2406
Handle activation conflicts for `[patch]` sources

This commit updates the resolver to ensure that it recognizes conflicts
when `[patch]` is used to augment an older version of what's already in
a source, for example. Previously the deduplication based on
semver-compatible versions didn't actually work when `[patch]` was used.
This meant that when you used `[patch]` it might not transitively affect
the entire crate graph, instead just giving you a version of a
dependency and everyone else. This violates the intention of `[patch]`!

The fix here is to catch this use case happening, when a `Dependency`
source specification mismatches an activated package we need to list a
second activation in the resolver to prevent major versions from being
selected from both the original source as well as the source of the id.

Closes #7117
2019-07-12 20:10:19 +00:00
..
2019-07-08 12:35:34 +02:00
2019-06-20 16:53:24 +02:00
2019-07-03 16:11:23 +02:00
2019-06-10 13:19:18 -07:00
2019-06-08 14:18:51 -07:00
2019-06-21 11:36:53 -07:00
2019-06-10 13:19:18 -07:00
2019-06-21 11:36:53 -07:00
2019-06-21 11:36:53 -07:00