Skip to content

Commit e872d2f

Browse files
committed
Auto merge of rust-lang#17634 - lnicola:fix-xtask-install, r=lnicola
minor: Make xtask install work again CC rust-lang/rust-analyzer#17559 (comment)
2 parents 298ff04 + 6cb005f commit e872d2f

File tree

1 file changed

+2
-2
lines changed
  • src/tools/rust-analyzer/xtask/src

1 file changed

+2
-2
lines changed

src/tools/rust-analyzer/xtask/src/flags.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ impl Malloc {
289289

290290
impl Install {
291291
pub(crate) fn server(&self) -> Option<ServerOpt> {
292-
if !self.server {
292+
if (self.client || self.proc_macro_server) && !self.server {
293293
return None;
294294
}
295295
let malloc = if self.mimalloc {
@@ -308,7 +308,7 @@ impl Install {
308308
Some(ProcMacroServerOpt { dev_rel: self.dev_rel })
309309
}
310310
pub(crate) fn client(&self) -> Option<ClientOpt> {
311-
if !self.client {
311+
if (self.server || self.proc_macro_server) && !self.client {
312312
return None;
313313
}
314314
Some(ClientOpt { code_bin: self.code_bin.clone() })

0 commit comments

Comments
 (0)