Skip to content

Commit 69f712c

Browse files
committed
set all of the optional tools as DEFAULT = true
The default is then overridden by `should_run`.
1 parent c15e248 commit 69f712c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/bootstrap/dist.rs

+9
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ pub struct Analysis {
679679

680680
impl Step for Analysis {
681681
type Output = Option<GeneratedTarball>;
682+
const DEFAULT: bool = true;
682683

683684
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
684685
let default = should_build_extended_tool(&run.builder, "analysis");
@@ -958,6 +959,7 @@ pub struct Cargo {
958959

959960
impl Step for Cargo {
960961
type Output = Option<GeneratedTarball>;
962+
const DEFAULT: bool = true;
961963
const ONLY_HOSTS: bool = true;
962964

963965
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
@@ -1014,6 +1016,7 @@ pub struct Rls {
10141016
impl Step for Rls {
10151017
type Output = Option<GeneratedTarball>;
10161018
const ONLY_HOSTS: bool = true;
1019+
const DEFAULT: bool = true;
10171020

10181021
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
10191022
let default = should_build_extended_tool(&run.builder, "rls");
@@ -1059,6 +1062,7 @@ pub struct RustAnalyzer {
10591062

10601063
impl Step for RustAnalyzer {
10611064
type Output = Option<GeneratedTarball>;
1065+
const DEFAULT: bool = true;
10621066
const ONLY_HOSTS: bool = true;
10631067

10641068
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
@@ -1114,6 +1118,7 @@ pub struct Clippy {
11141118

11151119
impl Step for Clippy {
11161120
type Output = Option<GeneratedTarball>;
1121+
const DEFAULT: bool = true;
11171122
const ONLY_HOSTS: bool = true;
11181123

11191124
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
@@ -1164,6 +1169,7 @@ pub struct Miri {
11641169

11651170
impl Step for Miri {
11661171
type Output = Option<GeneratedTarball>;
1172+
const DEFAULT: bool = true;
11671173
const ONLY_HOSTS: bool = true;
11681174

11691175
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
@@ -1223,6 +1229,7 @@ pub struct Rustfmt {
12231229

12241230
impl Step for Rustfmt {
12251231
type Output = Option<GeneratedTarball>;
1232+
const DEFAULT: bool = true;
12261233
const ONLY_HOSTS: bool = true;
12271234

12281235
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
@@ -1276,6 +1283,7 @@ pub struct RustDemangler {
12761283

12771284
impl Step for RustDemangler {
12781285
type Output = Option<GeneratedTarball>;
1286+
const DEFAULT: bool = true;
12791287
const ONLY_HOSTS: bool = true;
12801288

12811289
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
@@ -1975,6 +1983,7 @@ pub struct LlvmTools {
19751983
impl Step for LlvmTools {
19761984
type Output = Option<GeneratedTarball>;
19771985
const ONLY_HOSTS: bool = true;
1986+
const DEFAULT: bool = true;
19781987

19791988
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
19801989
let default = should_build_extended_tool(&run.builder, "llvm-tools");

0 commit comments

Comments
 (0)