about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2020-05-25 16:21:25 -0700
committerJeremy Fitzhardinge <jeremy@goop.org>2021-02-07 14:54:20 -0800
commit82ccb6582a76d72fb5abaf7195dc7a653f1aa54b (patch)
tree3b576e8c494f7aab329b398836948bfb3747f754 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent9778068cbc1e06cc3685422323ff38a2f397de26 (diff)
downloadrust-82ccb6582a76d72fb5abaf7195dc7a653f1aa54b.tar.gz
rust-82ccb6582a76d72fb5abaf7195dc7a653f1aa54b.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions