Improve error ico doc-targets with same name
authorLukas Lueg <lukas.lueg@gmail.com>
Fri, 29 Sep 2017 11:46:31 +0000 (13:46 +0200)
committerLukas Lueg <lukas.lueg@gmail.com>
Fri, 29 Sep 2017 11:46:31 +0000 (13:46 +0200)
commit9c635636b0770fae9f7d050f6ee1871d1cbed885
tree035c047e79454c08eb9ad8b6af46a191c1cf35fc
parenta92b7c801ec62ef489f55542eaa908c366bfc8c7
Improve error ico doc-targets with same name

We can currently only document one doc-target per name.
Replace an assert! with a clear error message in that case.
Fixes #4539.
src/cargo/ops/cargo_doc.rs
tests/doc.rs
tests/rustdoc.rs