Auto merge of #5393 - smithsps:master, r=matklad
authorbors <bors@rust-lang.org>
Tue, 24 Apr 2018 14:12:10 +0000 (14:12 +0000)
committerbors <bors@rust-lang.org>
Tue, 24 Apr 2018 14:12:10 +0000 (14:12 +0000)
Add target directory parameter --target-dir

Implements: https://github.com/rust-lang/cargo/issues/5308

Adds a target directory parameter, that acts in the same manner as the environment variable `CARGO_TARGET_DIR`, to the following subcommands:
- `bench`
- `build`
- `check`
- `clean`
- `doc`
- `package`
- `publish`
- `run`
- `rustc`
- `rustdoc`
- `test`


Trivial merge