rust-analyzer/crates
bors[bot] 85a59de39f
Merge #9353
9353: Include extra targets when the pkg_root is not the same as the target root. r=matklad a=rezural

Fixes #7715 

For example, if a sub-crate includes sets the path='../somewhere-else/lib.rs', the files will not be in pkg_root , but in the target root's parent.

It may actually be in root.parent().parent(), I'm not sure about that.

At the moment it is just a fix, are there any relevant tests that this could go in? I've got about 1 brain cell left... but im happy to add tests where appropriate.


Co-authored-by: rezural <rezural@protonmail.com>
2021-06-23 21:33:30 +00:00
..
base_db Move features into potential_cfg_options 2021-06-21 17:54:05 +01:00
cfg Improve completion of cfg attributes 2021-06-21 17:47:00 +01:00
flycheck Use package root as cargo check working directory 2021-05-12 19:50:52 -07:00
hir internal: remove one more accidentally quadratic code-path 2021-06-22 21:26:07 +03:00
hir_def internal: count ItemScopes 2021-06-22 21:02:08 +03:00
hir_expand Apply some clippy suggestions 2021-06-21 16:40:21 +02:00
hir_ty Fix benchmark_include_macro 2021-06-20 19:37:45 +02:00
ide Add public semantic token modifier for public items 2021-06-23 09:40:04 +10:00
ide_assists Fix var name 2021-06-21 22:47:39 +09:00
ide_completion Fix incorrect base fixture in ide_completion tests 2021-06-23 19:13:27 +02:00
ide_db internal: remove one more accidentally quadratic code-path 2021-06-22 21:26:07 +03:00
ide_diagnostics minor: use minicore 2021-06-18 23:48:18 +03:00
ide_ssr clippy::redundant_field_names 2021-06-13 09:40:22 +05:30
mbe Rewrite convert_tokens to use an explicit stack 2021-06-23 00:21:11 +02:00
parser Complete repr attribute parameters 2021-06-17 21:15:49 +02:00
paths tree-wide: make rustdoc links spiky so they are clickable 2021-06-13 21:58:05 -07:00
proc_macro_api Update crates 2021-06-22 13:18:48 -04:00
proc_macro_srv Update crates 2021-06-22 13:18:48 -04:00
proc_macro_test Set explicit target directory to avoid cargo deadlock 2021-06-22 03:34:32 +08:00
profile Merge #9260 2021-06-14 07:16:48 +00:00
project_model add extra include paths, if target's path is manually set in Cargo.toml to be 2021-06-22 08:59:57 +10:00
rust-analyzer Add public semantic token modifier for public items 2021-06-23 09:40:04 +10:00
stdx Fix compilation on WASM 2021-06-22 22:01:06 +02:00
syntax Merge #9367 2021-06-22 08:46:01 +00:00
test_utils test_utils: Make overlapping annotations possible 2021-06-20 19:12:06 +02: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 Merge #9260 2021-06-14 07:16:48 +00:00
vfs Nest all the or-patterns! 2021-06-17 17:37:14 +02:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00