]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/run.rs
rustdoc: Remove unnecessary clone in `DocFolder`
[rust.git] / src / bootstrap / run.rs
index 7c64e5a0aadc8e3624dfc6900a268115eb40a931..11b393857e74c281b3dd4fb14f2366d8b3103d2d 100644 (file)
@@ -82,3 +82,24 @@ fn run(self, builder: &Builder<'_>) {
         builder.run(&mut cmd);
     }
 }
+
+#[derive(Debug, PartialOrd, Ord, Copy, Clone, Hash, PartialEq, Eq)]
+pub struct BumpStage0;
+
+impl Step for BumpStage0 {
+    type Output = ();
+    const ONLY_HOSTS: bool = true;
+
+    fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
+        run.path("src/tools/bump-stage0")
+    }
+
+    fn make_run(run: RunConfig<'_>) {
+        run.builder.ensure(BumpStage0);
+    }
+
+    fn run(self, builder: &Builder<'_>) -> Self::Output {
+        let mut cmd = builder.tool_cmd(Tool::BumpStage0);
+        builder.run(&mut cmd);
+    }
+}