about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-01-12 20:01:36 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-01-17 08:10:10 +0000
commit7d59c0ccaa3aeb528a66ae3d2fec6a5ebbe44bc2 (patch)
tree875e5c0fa2b8e9e1a3ecf33d0c718991e8829e25 /src
parenta49f57180d8a677e44abe30346d216c192e92fd4 (diff)
downloadrust-7d59c0ccaa3aeb528a66ae3d2fec6a5ebbe44bc2.tar.gz
rust-7d59c0ccaa3aeb528a66ae3d2fec6a5ebbe44bc2.zip
Skip tidy style checks for `rustc_apfloat`
Diffstat (limited to 'src')
-rw-r--r--src/tools/tidy/src/style.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/tidy/src/style.rs b/src/tools/tidy/src/style.rs
index ae7e3d8d702..6a0855405ec 100644
--- a/src/tools/tidy/src/style.rs
+++ b/src/tools/tidy/src/style.rs
@@ -282,6 +282,10 @@ pub fn check(path: &Path, bad: &mut bool) {
         if filename.contains("ignore-tidy") {
             return;
         }
+        // apfloat shouldn't be changed because of license problems
+        if is_in(file, "compiler", "rustc_apfloat") {
+            return;
+        }
         let mut skip_cr = contains_ignore_directive(can_contain, &contents, "cr");
         let mut skip_undocumented_unsafe =
             contains_ignore_directive(can_contain, &contents, "undocumented-unsafe");