| # Run rustfmt with this config (it should be picked up automatically). |
| use_small_heuristics = "Max" |
| # by default we ignore everything in the repository |
| # tidy only checks files which are not ignored, each entry follows gitignore style |
| # tests for now are not formatted, as they are sometimes pretty-printing constrained |
| # (and generally rustfmt can move around comments in UI-testing incompatible ways) |
| # do not format submodules |
| "compiler/rustc_codegen_gcc", |
| "src/doc/rust-by-example", |
| "src/doc/rustc-dev-guide", |
| "src/tools/rust-analyzer", |
| "src/tools/rust-installer", |
| # these are ignored by a standard cargo fmt run |
| "compiler/rustc_codegen_cranelift/y.rs", # running rustfmt breaks this file |
| "compiler/rustc_codegen_cranelift/example", |
| "compiler/rustc_codegen_cranelift/scripts", |