From 1ea57aa3f98b9e7fffd49f95ed05503e9ddf2d7f Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Tue, 26 Mar 2019 12:15:06 +0100 Subject: [PATCH] Add exception for libcore/hint.rs to pal lint of tidy script --- src/tools/tidy/src/pal.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/tidy/src/pal.rs b/src/tools/tidy/src/pal.rs index ed2218f09d26b..96dfb2f1acd9b 100644 --- a/src/tools/tidy/src/pal.rs +++ b/src/tools/tidy/src/pal.rs @@ -42,6 +42,10 @@ const EXCEPTION_PATHS: &[&str] = &[ "src/libpanic_abort", "src/libpanic_unwind", "src/libunwind", + // black_box implementation is LLVM-version specific and it uses + // target_os to tell targets with different LLVM-versions appart + // (e.g. `wasm32-unknown-emscripten` vs `wasm32-unknown-unknown`): + "src/libcore/hint.rs", "src/libstd/sys/", // Platform-specific code for std lives here. // This has the trailing slash so that sys_common is not excepted. "src/libstd/os", // Platform-specific public interfaces