Auto merge of #4358 - Mark-Simulacrum:fix-cfg-cargo, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 26 Aug 2017 17:57:40 +0000 (17:57 +0000)
committerbors <bors@rust-lang.org>
Sat, 26 Aug 2017 17:57:40 +0000 (17:57 +0000)
Discover crate type information late if necessary.

Some crates aren't found during eager crate-type searching due to being behind `cfg(...)` flags. We still want to be able to handle these, though, so when necessary we now call rustc again to get crate-type information for these cfg-ed crates.

This is necessary for https://github.com/rust-lang/rust/pull/41991.

r? @alexcrichton


Trivial merge