Auto merge of #5460 - ehuss:conservative-link, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 10 May 2018 19:01:06 +0000 (19:01 +0000)
committerbors <bors@rust-lang.org>
Thu, 10 May 2018 19:01:06 +0000 (19:01 +0000)
Be more conservative about which files are linked to the output dir.

This changes it so that only top-level targets requested on the command-line will be included in the output directory.  Dependencies are no longer included.

Fixes #5444.


Trivial merge