rust/src/librustc_metadata
Jeremy Fitzhardinge ffa493ab57 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
2020-05-25 22:47:55 -07:00
..
dynamic_lib Remove support for self-opening 2020-04-25 10:55:20 -04:00
rmeta Use OnceCell instead of Once 2020-05-22 13:31:02 -07:00
build.rs
Cargo.toml Depend on libc from crates.io 2020-04-11 11:07:04 -04:00
creader.rs Implement warning for unused dependencies. 2020-05-25 22:47:55 -07:00
dependency_format.rs Use OnceCell instead of Once 2020-05-22 13:31:02 -07:00
dynamic_lib.rs Remove support for self-opening 2020-04-25 10:55:20 -04:00
foreign_modules.rs librustc_middle: return LocalDefId instead of DefId in local_def_id 2020-04-23 23:14:07 +01:00
lib.rs use min_specialization for some rustc crates where it requires no changes 2020-05-10 11:25:00 +02:00
link_args.rs
locator.rs Use OnceCell instead of Once 2020-05-22 13:31:02 -07:00
native_libs.rs Eliminate some Option<NativeLibKind>s 2020-05-20 21:57:16 +03:00