about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-08-23 08:46:35 +0000
committerGitHub <noreply@github.com>2025-08-23 08:46:35 +0000
commitb7d76e299e0f03f3ab005fead1a83733398b5e88 (patch)
treee2a08bab0f2c130473150c62e2227617aa4e364a
parent5ce5b89f403720cab9aec80d28e47ad27c969288 (diff)
parent2c28135116a99f1939ffc7f1bcb3b8580f4153c6 (diff)
downloadrust-b7d76e299e0f03f3ab005fead1a83733398b5e88.tar.gz
rust-b7d76e299e0f03f3ab005fead1a83733398b5e88.zip
Use `.cargo/config.toml` for local compilation options (#15543)
This will be ignored when Clippy is part of the compiler workspace.
Using `Cargo.toml` would complain about profiles defined outside the
top-level when run from the compiler repository.

Suggested by Jakub Beránek.

changelog: none

r? flip1995
-rw-r--r--.cargo/config.toml7
-rw-r--r--Cargo.toml7
2 files changed, 7 insertions, 7 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
index d9c635df5dc..a09bf95e87b 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -23,3 +23,10 @@ split-debuginfo = "unpacked"
 rustflags = ["--remap-path-prefix", "=clippy_dev"]
 [profile.dev.package.lintcheck]
 rustflags = ["--remap-path-prefix", "=lintcheck"]
+
+# quine-mc_cluskey makes up a significant part of the runtime in dogfood
+# due to the number of conditions in the clippy_lints crate
+# and enabling optimizations for that specific dependency helps a bit
+# without increasing total build times.
+[profile.dev.package.quine-mc_cluskey]
+opt-level = 3
diff --git a/Cargo.toml b/Cargo.toml
index 2add525b7e8..b3618932ded 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -65,13 +65,6 @@ harness = false
 name = "dogfood"
 harness = false
 
-# quine-mc_cluskey makes up a significant part of the runtime in dogfood
-# due to the number of conditions in the clippy_lints crate
-# and enabling optimizations for that specific dependency helps a bit
-# without increasing total build times.
-[profile.dev.package.quine-mc_cluskey]
-opt-level = 3
-
 [lints.rust.unexpected_cfgs]
 level = "warn"
 check-cfg = ['cfg(bootstrap)']