Skip to content

Commit 972ea7f

Browse files
authored
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`
2 parents 506495a + d75dae2 commit 972ea7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tools/tidy/src/pal.rs

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ const EXCEPTION_PATHS: &[&str] = &[
6262
"library/std/src/panic.rs", // fuchsia-specific panic backtrace handling
6363
"library/std/src/personality.rs",
6464
"library/std/src/personality/",
65+
"library/std/src/thread/mod.rs",
66+
"library/std/src/thread/local.rs",
6567
];
6668

6769
pub fn check(path: &Path, bad: &mut bool) {
@@ -128,6 +130,7 @@ fn check_cfgs(
128130
|| cfg.contains("target_env")
129131
|| cfg.contains("target_abi")
130132
|| cfg.contains("target_vendor")
133+
|| cfg.contains("target_family")
131134
|| cfg.contains("unix")
132135
|| cfg.contains("windows");
133136

0 commit comments

Comments
 (0)