Auto merge of #4797 - lukaslueg:issue3169, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 12 Dec 2017 04:46:25 +0000 (04:46 +0000)
committerbors <bors@rust-lang.org>
Tue, 12 Dec 2017 04:46:25 +0000 (04:46 +0000)
commit77d44e7d567017dd0103d61981c89b4e556aeba8
treea74245254d969d305bc71b34eef1d68e85c89625
parent13c2a9cefedf464e455f2ae0dd8e0af2c62da93f
parent554f333948327ab2d92904a960277626c87e6ba4
Auto merge of #4797 - lukaslueg:issue3169, r=alexcrichton

Bail out when trying to link to a library that is not linkable.

There are more subtleties here than expected, as we can have situations where it is actually Ok to have no linkable targets: Build scripts are a common case, yet benchmark tests started to also fail. I have to say I'm not convinced if the situation "not one target is linkable, yet at least one target is a library (and therefor at least something should be linked)" is actually correct. All tests pass, however, including the one that checks for #3169