diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-24 17:38:15 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-24 17:38:15 +0100 |
commit | 3926f60cb525592400018b0afb0c0553dabfdb32 (patch) | |
tree | f1c431236b05f3ecb8feb996260b5d664c19fca3 /crates/ide/src/display.rs | |
parent | a59d41c1dfff1bcd34de880fddd3ca1f22e3f9e6 (diff) | |
parent | 518d39cd2f1fde997b01acffe74e4a83fc906f86 (diff) |
Merge #8970
8970: fix: duplicate dependencies that have multiple DepKinds r=jonas-schievink a=jonas-schievink
Cargo collapses identical dependencies that are listed under `[dependencies]` and `[build-dependencies]` into a single `NodeDep`. We have to undo that by duplicating the dependency for each of its listed `DepKind`s.
Not doing that would incorrectly treat a dependency as `DepKind::Normal`, even though it is *also* meant to be a `DepKind::Build`.
Fixes https://github.com/rust-analyzer/rust-analyzer/pull/8812#issuecomment-847125395
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/ide/src/display.rs')
0 files changed, 0 insertions, 0 deletions