mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Pass all-targets for build scripts in more cli commands
Without this, build scripts don't run for tests and as such any proc-macros in dev-deps fail to resolve
This commit is contained in:
parent
2f55a91552
commit
10ada02019
7 changed files with 30 additions and 12 deletions
|
@ -109,7 +109,7 @@ impl fmt::Debug for ProjectWorkspace {
|
|||
ProjectWorkspaceKind::Cargo {
|
||||
cargo,
|
||||
error: _,
|
||||
build_scripts: _,
|
||||
build_scripts,
|
||||
rustc,
|
||||
cargo_config_extra_env,
|
||||
} => f
|
||||
|
@ -126,6 +126,7 @@ impl fmt::Debug for ProjectWorkspace {
|
|||
.field("toolchain", &toolchain)
|
||||
.field("data_layout", &target_layout)
|
||||
.field("cargo_config_extra_env", &cargo_config_extra_env)
|
||||
.field("build_scripts", &build_scripts.error().unwrap_or("ok"))
|
||||
.finish(),
|
||||
ProjectWorkspaceKind::Json(project) => {
|
||||
let mut debug_struct = f.debug_struct("Json");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue