| # 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 |
| # FIXME: sync submodule list with tidy/bootstrap/etc |
| # tidy/src/walk.rs:filter_dirs |
| "compiler/rustc_codegen_gcc", |
| "src/doc/rust-by-example", |
| "src/doc/rustc-dev-guide", |
| "src/tools/rust-analyzer", |
| # these are ignored by a standard cargo fmt run |
| "compiler/rustc_codegen_cranelift/scripts", |
| "compiler/rustc_codegen_cranelift/example/gen_block_iterate.rs", # uses edition 2024 |