diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2021-06-24 23:48:53 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2021-06-24 23:48:53 -0700 |
| commit | ab0f63ecdf03a0d058eb93fefc3103544f02fee6 (patch) | |
| tree | 1c9a22690d6914f628cf65c81f84c17601725ca3 | |
| parent | 079aa837d205960592ef479387fb272cba16e2da (diff) | |
| download | rust-ab0f63ecdf03a0d058eb93fefc3103544f02fee6.tar.gz rust-ab0f63ecdf03a0d058eb93fefc3103544f02fee6.zip | |
rustc_span: Explicitly handle crates that differ from package names
The sha-1 and md-5 packages contain crates named sha1 and md5, respectively. This discrepancy makes it somewhat more challenging to automate detection of unused crates. Explicitly rename the packages to the names of the crates they contain, to simplify such detection.
| -rw-r--r-- | compiler/rustc_span/Cargo.toml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_span/Cargo.toml b/compiler/rustc_span/Cargo.toml index 08645990c48..4552f14de8b 100644 --- a/compiler/rustc_span/Cargo.toml +++ b/compiler/rustc_span/Cargo.toml @@ -17,6 +17,6 @@ scoped-tls = "1.0" unicode-width = "0.1.4" cfg-if = "0.1.2" tracing = "0.1" -sha-1 = "0.9" +sha1 = { package = "sha-1", version = "0.9" } sha2 = "0.9" -md-5 = "0.9" +md5 = { package = "md-5", version = "0.9" } |
