about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-07-29 20:19:52 +1000
committerGitHub <noreply@github.com>2025-07-29 20:19:52 +1000
commit0abc0c4201b6c6d892c3e280753c8ba07c1d8fd2 (patch)
tree5526614b126718f24264585a298fa1d5a8dc53a8
parentdf7da14690dfb34141212d964dcc2e267f86fdd1 (diff)
parent4096582662d38ca5d1692e0213ddf5574a40e0d6 (diff)
downloadrust-0abc0c4201b6c6d892c3e280753c8ba07c1d8fd2.tar.gz
rust-0abc0c4201b6c6d892c3e280753c8ba07c1d8fd2.zip
Rollup merge of #144599 - lolbinarycat:bootstrap-build.tidy-extra-checks-enable-for-tools, r=Kobzol
bootstrap: enable tidy auto extra checks on tools profile

alternative to https://github.com/rust-lang/rust/pull/144461

this won't affect CI or any `./configure` based workflows, and will also not affect every rust contributor like that PR will.  a slower rollout of this feature should reduce disruption if issues are discovered with it.

r? ``@Kobzol``
-rw-r--r--bootstrap.example.toml3
-rw-r--r--src/bootstrap/defaults/bootstrap.tools.toml2
2 files changed, 5 insertions, 0 deletions
diff --git a/bootstrap.example.toml b/bootstrap.example.toml
index 73e93ccbe42..ef49113b70f 100644
--- a/bootstrap.example.toml
+++ b/bootstrap.example.toml
@@ -475,6 +475,9 @@
 # Note that if any value is manually given to bootstrap such as
 # `./x test tidy --extra-checks=js`, this value is ignored.
 # Use `--extra-checks=''` to temporarily disable all extra checks.
+#
+# Automatically enabled in the "tools" profile.
+# Set to the empty string to force disable (recommeded for hdd systems).
 #build.tidy-extra-checks = ""
 
 # Indicates whether ccache is used when building certain artifacts (e.g. LLVM).
diff --git a/src/bootstrap/defaults/bootstrap.tools.toml b/src/bootstrap/defaults/bootstrap.tools.toml
index 57c2706f60a..5abe636bd96 100644
--- a/src/bootstrap/defaults/bootstrap.tools.toml
+++ b/src/bootstrap/defaults/bootstrap.tools.toml
@@ -14,6 +14,8 @@ test-stage = 2
 doc-stage = 2
 # Contributors working on tools will probably expect compiler docs to be generated, so they can figure out how to use the API.
 compiler-docs = true
+# Contributors working on tools are the most likely to change non-rust programs.
+tidy-extra-checks = "auto:js,auto:py,auto:cpp,auto:spellcheck"
 
 [llvm]
 # Will download LLVM from CI if available on your platform.