]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/dist.rs
Auto merge of #100989 - lcnr:implied-bounds-uwu, r=spastorino
[rust.git] / src / bootstrap / dist.rs
index 6291b204e485f0e32c523651804ddb24bf76a1ef..6bf57a89e896f371941b7f65c1290f24dbe05b9a 100644 (file)
@@ -1226,17 +1226,10 @@ fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
 
         let rustfmt = builder
             .ensure(tool::Rustfmt { compiler, target, extra_features: Vec::new() })
-            .or_else(|| {
-                missing_tool("Rustfmt", builder.build.config.missing_tools);
-                None
-            })?;
+            .expect("rustfmt expected to build - essential tool");
         let cargofmt = builder
             .ensure(tool::Cargofmt { compiler, target, extra_features: Vec::new() })
-            .or_else(|| {
-                missing_tool("Cargofmt", builder.build.config.missing_tools);
-                None
-            })?;
-
+            .expect("cargo fmt expected to build - essential tool");
         let mut tarball = Tarball::new(builder, "rustfmt", &target.triple);
         tarball.set_overlay(OverlayKind::Rustfmt);
         tarball.is_preview(true);