about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-04-05 15:48:46 +0200
committerGitHub <noreply@github.com>2021-04-05 15:48:46 +0200
commitd856a26770787ce20f46e8bfe036d42fac313502 (patch)
tree8cc9e203ddca741ce9899e6185e1aac39ec5bbfc
parent770bf3169b7c000bec770b0ae7f2e2fdca2ecec6 (diff)
parent1df9d498e19088c6bdd838b22cfd64397e42c43f (diff)
downloadrust-d856a26770787ce20f46e8bfe036d42fac313502.tar.gz
rust-d856a26770787ce20f46e8bfe036d42fac313502.zip
Rollup merge of #83878 - the8472:fix-concurrent-tidy-access, r=Mark-Simulacrum
Fix racing file access in tidy

That should fix the failure in https://github.com/rust-lang/rust/pull/83776#issuecomment-813311289

The file is only created for a brief moment during the bins checks in the source directories while other checks may also be visiting the same directory. By skipping it we avoid file not found errors.
-rw-r--r--src/tools/tidy/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/tidy/src/lib.rs b/src/tools/tidy/src/lib.rs
index cbcc01dc39a..fcb27dae9ea 100644
--- a/src/tools/tidy/src/lib.rs
+++ b/src/tools/tidy/src/lib.rs
@@ -53,6 +53,7 @@ pub mod unstable_book;
 
 fn filter_dirs(path: &Path) -> bool {
     let skip = [
+        "tidy-test-file",
         "compiler/rustc_codegen_cranelift",
         "src/llvm-project",
         "library/backtrace",