diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-03-09 12:11:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-09 12:11:54 +0100 |
| commit | 972ea7fd8409a6fca9a9f955214ecb659bc14ab9 (patch) | |
| tree | 65cf5af138450d84630d06454e088ea9655ef8a1 | |
| parent | 506495a4b37f2be981a6a5e7327631dd9589fad8 (diff) | |
| parent | d75dae2df200853aa498ac2083c68ff243be9666 (diff) | |
| download | rust-972ea7fd8409a6fca9a9f955214ecb659bc14ab9.tar.gz rust-972ea7fd8409a6fca9a9f955214ecb659bc14ab9.zip | |
Rollup merge of #108917 - Ayush1325:tidy-improve, r=workingjubilee
Consider target_family as pal Currently, tidy does not consider code in target_family as platform-specific. This is erroneous and should be fixed. r? `@workingjubilee`
| -rw-r--r-- | src/tools/tidy/src/pal.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/tidy/src/pal.rs b/src/tools/tidy/src/pal.rs index 33938ac9a0a..6d6d3c89a3c 100644 --- a/src/tools/tidy/src/pal.rs +++ b/src/tools/tidy/src/pal.rs @@ -62,6 +62,8 @@ const EXCEPTION_PATHS: &[&str] = &[ "library/std/src/panic.rs", // fuchsia-specific panic backtrace handling "library/std/src/personality.rs", "library/std/src/personality/", + "library/std/src/thread/mod.rs", + "library/std/src/thread/local.rs", ]; pub fn check(path: &Path, bad: &mut bool) { @@ -128,6 +130,7 @@ fn check_cfgs( || cfg.contains("target_env") || cfg.contains("target_abi") || cfg.contains("target_vendor") + || cfg.contains("target_family") || cfg.contains("unix") || cfg.contains("windows"); |
