Skip to content

Commit d75dae2

Browse files
committed
Consider target_family as pal
Currently tidy does not consider code in target_family as platform-specific. I think this is erroneous and should be fixed. Signed-off-by: Ayush Singh <[email protected]>
1 parent 7c306f6 commit d75dae2

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)