about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-03-26 12:15:06 +0100
committergnzlbg <gonzalobg88@gmail.com>2019-03-26 13:42:48 +0100
commit1ea57aa3f98b9e7fffd49f95ed05503e9ddf2d7f (patch)
tree576d0498b2a2c48a45da15489694b81b59a5f1e6 /src
parentd189cab027bee94f4a4ef09484e30354c9843764 (diff)
downloadrust-1ea57aa3f98b9e7fffd49f95ed05503e9ddf2d7f.tar.gz
rust-1ea57aa3f98b9e7fffd49f95ed05503e9ddf2d7f.zip
Add exception for libcore/hint.rs to pal lint of tidy script
Diffstat (limited to 'src')
-rw-r--r--src/tools/tidy/src/pal.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/tidy/src/pal.rs b/src/tools/tidy/src/pal.rs
index ed2218f09d2..96dfb2f1acd 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