about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2020-05-17 01:48:01 -0700
committerJeremy Fitzhardinge <jeremy@goop.org>2020-05-25 22:47:55 -0700
commitffa493ab57fbb44f16efae2515abdde6876cc5c9 (patch)
treebf998e9f4d9e3253f175e8f0a797da44f36ddb5d /src/test/incremental/thinlto
parentf93bb2a50b37bc8bafe4d960e2afd839eaa854ed (diff)
downloadrust-ffa493ab57fbb44f16efae2515abdde6876cc5c9.tar.gz
rust-ffa493ab57fbb44f16efae2515abdde6876cc5c9.zip
Implement warning for unused dependencies.
This will print a diagnostic for crates which are mentioned as `--extern`
arguments on the command line, but are never referenced from the source.

This diagnostic is controlled by `-Wunused-crate-dependencies` or
`#![warn(unused_crate_dependencies)]` and is "allow" by default.

There are cases where certain crates need to be linked in but are not
directly referenced - for example if they are providing symbols for C
linkage. In this case the warning can be suppressed with
`use needed_crate as _;`.

Thanks to @petrochenkov for simplified core.

Resolves issue #57274
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions