Auto merge of #5233 - lukaslueg:issue5229, r=matklad
authorbors <bors@rust-lang.org>
Fri, 23 Mar 2018 15:28:44 +0000 (15:28 +0000)
committerbors <bors@rust-lang.org>
Fri, 23 Mar 2018 15:28:44 +0000 (15:28 +0000)
Assert Dependency::name is never empty, prevent 'install ""' from crashing

An explicit `cargo install ""` would cause clap to pass an empty crate-name,
leading to a panic(). We now assert() that Dependency::name is never the
empty string and prevent the situation in the first place by not allowing
the crate-name to be empty for `install`.

Fixes #5229


Trivial merge