]> git.proxmox.com Git - cargo.git/commit - tests/testsuite/metadata.rs
Auto merge of #9563 - ehuss:link-cdylib-warning, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 22 Jun 2021 19:27:25 +0000 (19:27 +0000)
committerbors <bors@rust-lang.org>
Tue, 22 Jun 2021 19:27:25 +0000 (19:27 +0000)
commit32238b474797da5b6730840219e4a487d73f2f72
tree041a08245025bb5d65312f35f45b8e2323de5d7f
parent8130be7a4cfe49c815191e27b86c2d1b64c95dbc
parent2bcece90a8fd5a562818135d41e7b73cf65481cd
Auto merge of #9563 - ehuss:link-cdylib-warning, r=alexcrichton

Change `rustc-cdylib-link-arg` error to a warning.

In #9523, an error was added if `cargo:rustc-cdylib-link-arg` was issued in a build script without actually having a cdylib target. This uncovered that there was an unintentional change in #8441 to cause those link args to be applied to transitive dependencies.

This changes it so that the error is now a warning, with a note that this may become an error in the future. It also changes it so that the unstable `rustc-link-arg*` instructions only apply to the package that emitted them.