diff options
| author | Brendan Cully <brendan@cully.org> | 2021-10-09 19:49:34 -0700 |
|---|---|---|
| committer | Brendan Cully <brendan@cully.org> | 2021-10-11 18:28:05 -0700 |
| commit | 841d4f9dad7edbb9b239dfa6c6a14dcfe5d94ad3 (patch) | |
| tree | 247878e18525a6fe8cb750827c466b7e9e67b188 /src/test/codegen/src-hash-algorithm | |
| parent | 098284aec8c8282e77682deace6c61603a88ee01 (diff) | |
| download | rust-841d4f9dad7edbb9b239dfa6c6a14dcfe5d94ad3.tar.gz rust-841d4f9dad7edbb9b239dfa6c6a14dcfe5d94ad3.zip | |
Only include targets of packages that are workspace members
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
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
