rust/crates
bors[bot] 3926f60cb5
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 <jonasschievink@gmail.com>
2021-05-24 16:38:15 +00:00
..
base_db Add one more profiling span to add_dep 2021-04-22 21:48:17 +03:00
cfg internal: expose cfg attrs from hir::Crate 2021-05-07 23:50:24 +03:00
flycheck Use package root as cargo check working directory 2021-05-12 19:50:52 -07:00
hir internal: intern TypeBounds 2021-05-24 15:13:23 +02:00
hir_def Intern GenericArgs 2021-05-24 15:35:46 +02:00
hir_expand Add even more docs 2021-05-22 17:20:22 +03:00
hir_ty Merge #8963 2021-05-24 15:34:52 +00:00
ide Bump misc deps 2021-05-24 16:31:54 +03:00
ide_assists Merge #8945 2021-05-23 21:55:51 +00:00
ide_completion Get rid of field_type again 2021-05-23 23:54:35 +02:00
ide_db Merge #8945 2021-05-23 21:55:51 +00:00
ide_ssr syntax: return owned string instead of leaking string 2021-03-26 18:30:59 +01:00
mbe Add even more docs 2021-05-22 17:20:22 +03:00
parser Add even more docs 2021-05-22 17:20:22 +03:00
paths Clearer naming 2021-04-06 16:22:26 +03:00
proc_macro_api Disable unaliged feature of object 2021-05-24 16:35:52 +03:00
proc_macro_srv Update test fixtures 2021-05-24 18:18:05 +03:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Add more docs 2021-05-22 16:53:47 +03:00
project_model Duplicate dependencies that have multiple DepKinds 2021-05-24 18:31:43 +02:00
rust-analyzer Update test fixtures 2021-05-24 18:18:05 +03:00
stdx Don't compare ast::Visibility by stringifying 2021-05-20 17:45:59 +02:00
syntax Bump rustc_lexer 2021-05-24 16:39:19 +03:00
test_utils internal: use API stabilized in 1.52 2021-05-06 20:12:15 +03:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt Add more docs 2021-05-22 16:53:47 +03:00
vfs Avoid duplicating VfsPath in vfs::path_interner::PathInterner by using an IndexSet 2021-04-06 16:03:57 +03:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00