mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
1cccf2dd4c
- Switch from `walkdir` to `ignore`. This required various changes to make `skip` thread-safe. - Ignore `build` anywhere in the source tree, not just at the top-level. We support this in bootstrap, we should support it in tidy too. As a nice side benefit, this also makes tidy a bit faster. Before: ``` ; hyperfine -i '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"' Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32" Time (mean ± σ): 1.080 s ± 0.008 s [User: 2.616 s, System: 3.243 s] Range (min … max): 1.069 s … 1.099 s 10 runs ``` After: ``` ; hyperfine '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"' Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32" Time (mean ± σ): 705.0 ms ± 1.4 ms [User: 3179.1 ms, System: 1517.5 ms] Range (min … max): 702.3 ms … 706.9 ms 10 runs ```
80 lines
1.3 KiB
Plaintext
80 lines
1.3 KiB
Plaintext
# This file should only ignore things that are generated during a `x.py` build,
|
|
# generated by common IDEs, and optional files controlled by the user that
|
|
# affect the build (such as config.toml).
|
|
# In particular, things like `mir_dump` should not be listed here; they are only
|
|
# created during manual debugging and many people like to clean up instead of
|
|
# having git ignore such leftovers. You can use `.git/info/exclude` to
|
|
# configure your local ignore list.
|
|
|
|
## File system
|
|
.DS_Store
|
|
desktop.ini
|
|
|
|
## Editor
|
|
*.swp
|
|
*.swo
|
|
Session.vim
|
|
.cproject
|
|
.idea
|
|
*.iml
|
|
.vscode
|
|
.project
|
|
.favorites.json
|
|
.settings/
|
|
|
|
## Tool
|
|
.valgrindrc
|
|
.cargo
|
|
# Included because it is part of the test case
|
|
!/tests/run-make/thumb-none-qemu/example/.cargo
|
|
|
|
## Configuration
|
|
/config.toml
|
|
/Makefile
|
|
config.mk
|
|
config.stamp
|
|
no_llvm_build
|
|
|
|
## Build
|
|
/dl/
|
|
/doc/
|
|
/inst/
|
|
/llvm/
|
|
/mingw-build/
|
|
build/
|
|
/build-rust-analyzer/
|
|
/dist/
|
|
/unicode-downloads
|
|
/target
|
|
/src/bootstrap/target
|
|
/src/tools/x/target
|
|
# Created by default with `src/ci/docker/run.sh`
|
|
/obj/
|
|
|
|
## Temporary files
|
|
*~
|
|
\#*
|
|
\#*\#
|
|
.#*
|
|
|
|
## Tags
|
|
tags
|
|
tags.*
|
|
TAGS
|
|
TAGS.*
|
|
|
|
## Python
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
|
|
## Node
|
|
node_modules
|
|
package-lock.json
|
|
package.json
|
|
|
|
## Rustdoc GUI tests
|
|
tests/rustdoc-gui/src/**.lock
|
|
|
|
# Before adding new lines, see the comment at the top.
|