Skip to content

Commit 1ea57aa

Browse files
committed
Add exception for libcore/hint.rs to pal lint of tidy script
1 parent d189cab commit 1ea57aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tools/tidy/src/pal.rs

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ const EXCEPTION_PATHS: &[&str] = &[
4242
"src/libpanic_abort",
4343
"src/libpanic_unwind",
4444
"src/libunwind",
45+
// black_box implementation is LLVM-version specific and it uses
46+
// target_os to tell targets with different LLVM-versions appart
47+
// (e.g. `wasm32-unknown-emscripten` vs `wasm32-unknown-unknown`):
48+
"src/libcore/hint.rs",
4549
"src/libstd/sys/", // Platform-specific code for std lives here.
4650
// This has the trailing slash so that sys_common is not excepted.
4751
"src/libstd/os", // Platform-specific public interfaces

0 commit comments

Comments
 (0)