Skip to content

Commit f698cac

Browse files
committed
Fix rust-analyzer install when not available.
1 parent ee86f96 commit f698cac

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/bootstrap/install.rs

+9-4
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,15 @@ install!((self, builder, _config),
165165
}
166166
};
167167
RustAnalyzer, "rust-analyzer", Self::should_build(_config), only_hosts: true, {
168-
let tarball = builder
169-
.ensure(dist::RustAnalyzer { compiler: self.compiler, target: self.target })
170-
.expect("missing rust-analyzer");
171-
install_sh(builder, "rust-analyzer", self.compiler.stage, Some(self.target), &tarball);
168+
if let Some(tarball) =
169+
builder.ensure(dist::RustAnalyzer { compiler: self.compiler, target: self.target })
170+
{
171+
install_sh(builder, "rust-analyzer", self.compiler.stage, Some(self.target), &tarball);
172+
} else {
173+
builder.info(
174+
&format!("skipping Install rust-analyzer stage{} ({})", self.compiler.stage, self.target),
175+
);
176+
}
172177
};
173178
Clippy, "clippy", Self::should_build(_config), only_hosts: true, {
174179
let tarball = builder.ensure(dist::Clippy { compiler: self.compiler, target: self.target });

0 commit comments

Comments
 (0)