rust/crates
bors[bot] e7b8e6fbca
Merge #8819
8819: Use package root as `cargo check` working directory r=matklad a=bcully

Cargo commands are affected by the `.cargo/config` files above
their working directory. If cargo is invoked from above the directory
holding `Cargo.toml`, it may not pick up important settings like
registry replacements, causing it to behave differently or even fail.

Most cargo invocations are currently setting their working directories
to the directory containing `Cargo.toml`, but a couple of paths remain
in which cargo is invoked from the default workspace root instead.

This change fixes that, resolving some cargo check failures that I
experienced in a multi-root workspace in which packages used different
registries.

Co-authored-by: Brendan Cully <brendan@cully.org>
2021-05-14 17:15:21 +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 Apply async semantic token modifier to async/await keywords 2021-05-14 10:47:00 +08:00
hir_def Merge #8822 2021-05-13 20:38:56 +00:00
hir_expand Implement concat_idents 2021-05-14 06:42:10 +08:00
hir_ty Merge #8799 2021-05-12 14:49:43 +00:00
ide Address comments 2021-05-14 17:47:16 +08:00
ide_assists internal: use more mutable APIs 2021-05-14 20:00:35 +03:00
ide_completion Merge #8794 2021-05-10 20:10:59 +00:00
ide_db internal: remove SyntaxRewriter 2021-05-14 16:40:11 +03:00
ide_ssr syntax: return owned string instead of leaking string 2021-03-26 18:30:59 +01:00
mbe Merge #8560 2021-04-18 02:14:27 +00:00
parser Add = to pattern recovery 2021-05-08 23:14:08 +02:00
paths Clearer naming 2021-04-06 16:22:26 +03:00
proc_macro_api Replace memmap to memmap2 in proc_macro_api 2021-05-03 20:20:47 -04:00
proc_macro_srv Fix parse u128 bug in proc-macro 2021-03-31 19:50:36 +08:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Use package renaming so source doesn't say tikv 2021-05-07 12:41:07 -07:00
project_model Use package root as cargo check working directory 2021-05-12 19:50:52 -07:00
rust-analyzer Apply async semantic token modifier to async/await keywords 2021-05-14 10:47:00 +08:00
stdx internal: use API stabilized in 1.52 2021-05-06 20:12:15 +03:00
syntax internal: use more mutable APIs 2021-05-14 20:00:35 +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 a lot of clippy::style fixes 2021-03-21 16:15:41 +01: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