Contributing to rustc: ./x.py test tidy gives a lot of errors

Hello rustaceans,
I'm trying to contribute to the rust compiler, and when I run ./x.py test tidy, I get a lot of errors:

$ ./x.py test tidy
Updating only changed submodules
Submodules updated in 0.02 seconds
    Finished dev [unoptimized + debuginfo] target(s) in 0.15s
Building stage0 tool tidy (x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.14s
tidy check
* 615 error codes
* highest error code: E0772
Checking which error codes lack tests...
Found 509 error codes
Found 0 error codes with no tests
Done!
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/annotate_snippet_emitter_writer.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/Cargo.toml
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/diagnostic.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/diagnostic_builder.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/emitter.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/json/tests.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/json.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/lib.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/lock.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/registry.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/snippet.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_errors/styled_buffer.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_middle/arena.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_middle/benches/lib.rs
tidy error: binary checked into source: /mnt/rust/src/librustc_middle/Cargo.toml
tidy error: binary checked into source: /mnt/rust/src/librustc_middle/dep_graph/dep_node.rs

Followed by about 22.900 similar errors. I tried it on my own branch, then in the master branch, but I still get this error. What am I doing wrong? Is this normal?

Can you give some information about your system?

I'm running NixOS stable, with rust installed from the mozilla overlay. I cloned the rust repository on a NTFS partition. Do you need more information?

From the tidy source, it looks like this is checking for files in git which have the executable permission bit set. I would imagine this is directly caused by running on NTFS, which doesn't have such an executable bit.

The test is disabled on windows, but apparently not on Linux running NTFS! I'd recommend filing a bug report on the rust-lang/rust repo.

In the meantime, cloning on a non-NTFS filesystem should work around the error.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.