mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
![]() 10503: Only include targets of packages that are workspace members r=Veykril a=bcully CargoWorkspace's package list includes packages that are path dependencies, even if those packages aren't actually members of the cargo workspace. As a result, rust-analyzer's runnable finder, which returns the target from the first workspace that has a matching package, may select the wrong working directory, causing runnables to fail, e.g., ``` error: package `root` cannot be tested because it requires dev-dependencies and is not a member of the workspace ``` To fix this, we filter out packages that aren't members of the workspace when searching for targets. Fixes #7764 Co-authored-by: Brendan Cully <brendan@cully.org> |
||
---|---|---|
.. | ||
build_scripts.rs | ||
cargo_workspace.rs | ||
cfg_flag.rs | ||
lib.rs | ||
manifest_path.rs | ||
project_json.rs | ||
rustc_cfg.rs | ||
sysroot.rs | ||
tests.rs | ||
workspace.rs |