1
Fork 0
rust/compiler/rustc_session/src
Jeremy Fitzhardinge 82ccb6582a Add --extern-loc to augment unused crate dependency diagnostics
This allows a build system to indicate a location in its own dependency
specification files (eg Cargo's `Cargo.toml`) which can be reported
along side any unused crate dependency.

This supports several types of location:
 - 'json' - provide some json-structured data, which is included in the json diagnostics
     in a `tool_metadata` field
 - 'raw' - emit the provided string into the output. This also appears as a json string in
     `tool_metadata`.

If no `--extern-location` is explicitly provided then a default json entry of the form
`"tool_metadata":{"name":<cratename>,"path":<cratepath>}` is emitted.
2021-02-07 14:54:20 -08:00
..
cgu_reuse_tracker.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
code_stats.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
config.rs Add --extern-loc to augment unused crate dependency diagnostics 2021-02-07 14:54:20 -08:00
filesearch.rs Auto merge of #79253 - rcvalle:fix-rustc-sysroot-cas, r=nagisa 2021-02-05 22:58:13 +00:00
lib.rs Dogfood 'str_split_once() with compiler/ 2020-12-07 12:48:44 -07:00
options.rs Add --extern-loc to augment unused crate dependency diagnostics 2021-02-07 14:54:20 -08:00
output.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
parse.rs Treat nightlies for a version as complete 2021-01-29 07:59:19 +01:00
search_paths.rs use strip_prefix over starts_with and manual slicing based on pattern length (clippy::manual_strip) 2020-09-17 10:13:16 +02:00
session.rs Rollup merge of #81468 - est31:cfg_version, r=petrochenkov 2021-01-30 13:36:50 +09:00
utils.rs Pre-canoncalize ExternLocation::ExactPaths 2021-01-29 11:02:12 +01:00