Fix mode generated in `maybe_lib`
authorAlex Crichton <alex@alexcrichton.com>
Fri, 11 May 2018 15:04:10 +0000 (08:04 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 11 May 2018 15:04:55 +0000 (08:04 -0700)
commit5e76cbc55a956fffa1dd55d0ec8c3ba939f4cfea
tree13e377e43f1dc4de3d630824f84212e6ffacc881
parentdfaba34f1efbf521b3198ebec37c6bfa5e2d1abd
Fix mode generated in `maybe_lib`

The new `mode` for the library dependency is dependent on the library target
rather than the target which is the reason for the dependency on the library!

Closes rust-lang/rust#50640
src/cargo/core/compiler/context/unit_dependencies.rs
tests/testsuite/check.rs