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)
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.


Trivial merge