Auto merge of #6006 - EPashkin:master, r=alexcrichton

Fix example for usage still not published uuid 2.0.0

IMHO There some inconsistency in https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#prepublishing-a-breaking-change
We have unpublished version 2.0.0 for uuid crate in branch with same name.
Now we can test it in `my-library` without waiting for publish as written in docs.
But if `my-library` changes committed to its master, for `my-binary` patch need be same as in library,
as uuid 2.0.0 still not published.
This commit is contained in:
bors 2018-09-11 17:10:35 +00:00
commit b0679d55af

View File

@ -376,7 +376,7 @@ my-library = { git = 'https://example.com/git/my-library' }
uuid = "1.0"
[patch.crates-io]
uuid = { git = 'https://github.com/rust-lang-nursery/uuid', version = '2.0.0' }
uuid = { git = 'https://github.com/rust-lang-nursery/uuid', branch = '2.0.0' }
```
Note that this will actually resolve to two versions of the `uuid` crate. The