Auto merge of #5451 - DarkDrek:add_doc_clean, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 1 May 2018 18:32:06 +0000 (18:32 +0000)
committerbors <bors@rust-lang.org>
Tue, 1 May 2018 18:32:06 +0000 (18:32 +0000)
commitacea5e2f3c3bdd98ae3d1faf36a4499791acbd72
tree381d069f185aaeb1d87c4ebb78849bf77c790b48
parent181de52b2e08d36822af4178af395b5d3bdc1719
parent2ea2fafca90e98f42557f8c47f3391fda44c34e8
Auto merge of #5451 - DarkDrek:add_doc_clean, r=alexcrichton

Add cargo clean --doc

Implements #5449.
It only removes the doc directory and therefore keeps all other build artifacts intact.
When `--doc` is used all other options are ignored.

My test case is mostly copy&paste from `clean_release` so maybe the `.toml`s can be simplified.