blob: 8c1d3b94f195b6567775077a3b2836fb5d2704bf [file] [log] [blame]
Mark Rousskov8eb7c582019-12-22 21:43:541# Run rustfmt with this config (it should be picked up automatically).
Aleksey Kladovce394612019-05-03 18:35:212version = "Two"
3use_small_heuristics = "Max"
Mark Rousskov8eb7c582019-12-22 21:43:544merge_derives = false
Adam Perry8369a1a2019-10-29 15:33:115
Nicholas Nethercotef1b0ca02024-05-28 00:03:006# Files to ignore. Each entry uses gitignore syntax, but `!` prefixes aren't allowed.
Adam Perry8369a1a2019-10-29 15:33:117ignore = [
Mark Rousskovd5b760b2021-01-09 17:00:458 "/build/",
Rich Kadel79020a82021-04-24 21:12:229 "/*-build/",
10 "/build-*/",
Eric Huss6575abc2020-02-11 03:08:2411 "/vendor/",
Jonas Schievink08e85aa2020-01-31 16:09:3412
Nicholas Nethercotec9c80d22024-06-03 00:18:3313 # Some tests are not formatted, for various reasons.
Nicholas Nethercote72800d32024-05-29 04:11:2014 "/tests/codegen/simd-intrinsic/", # Many types like `u8x64` are better hand-formatted.
Nicholas Nethercotec9c80d22024-06-03 00:18:3315 "/tests/crashes/", # Many of these tests contain syntax errors.
16 "/tests/debuginfo/", # These tests are somewhat sensitive to source code layout.
17 "/tests/incremental/", # These tests are somewhat sensitive to source code layout.
Nicholas Nethercote5875f3f2024-06-03 05:59:3118 "/tests/pretty/", # These tests are very sensitive to source code layout.
Nicholas Nethercotec9c80d22024-06-03 00:18:3319 "/tests/run-make/translation/test.rs", # This test contains syntax errors.
Nicholas Nethercotee372bf82024-06-03 07:30:0920 "/tests/rustdoc/", # Some have syntax errors, some are whitespace-sensitive.
Nicholas Nethercote98d65d62024-06-03 07:34:3921 "/tests/rustdoc-gui/", # Some tests are sensitive to source code layout.
Nicholas Nethercote1be65922024-06-04 00:17:5822 "/tests/rustdoc-ui/", # Some have syntax errors, some are whitespace-sensitive.
Nicholas Nethercote758d49e2024-06-04 00:22:4323 "/tests/ui/", # Some have syntax errors, some are whitespace-sensitive.
Nicholas Nethercoted2ea6922024-06-04 00:27:3024 "/tests/ui-fulldeps/", # Some are whitespace-sensitive (e.g. `// ~ERROR` comments).
Michael Gouletbd135e42024-07-11 23:50:0325 # #[cfg(bootstrap)] so that t-release sees this when they search for it
26 "/tests/rustdoc-json/impl-trait-precise-capturing.rs",
Mark Rousskov8eb7c582019-12-22 21:43:5427
Nicholas Nethercote4702a1c2024-05-28 00:36:3728 # Do not format submodules.
klensyf3d92482023-06-23 07:34:0629 # FIXME: sync submodule list with tidy/bootstrap/etc
30 # tidy/src/walk.rs:filter_dirs
Alex Crichton06d565c2020-05-13 21:22:3731 "library/backtrace",
Jubilee Young39cb8632021-10-22 07:12:0032 "library/portable-simd",
mark2c31b452020-06-12 02:31:4933 "library/stdarch",
Adam Perry8369a1a2019-10-29 15:33:1134 "src/doc/book",
35 "src/doc/edition-guide",
36 "src/doc/embedded-book",
37 "src/doc/nomicon",
38 "src/doc/reference",
39 "src/doc/rust-by-example",
Santiago Pastorino4387a8b2020-03-10 20:22:2540 "src/doc/rustc-dev-guide",
Adam Perry8369a1a2019-10-29 15:33:1141 "src/llvm-project",
Adam Perry8369a1a2019-10-29 15:33:1142 "src/tools/cargo",
43 "src/tools/clippy",
44 "src/tools/miri",
Aleksey Kladov058c1b62020-06-04 11:11:1545 "src/tools/rust-analyzer",
Bernardo Meurer Costae2870442024-05-14 18:47:1546 "src/tools/rustc-perf",
Adam Perry8369a1a2019-10-29 15:33:1147 "src/tools/rustfmt",
bjorn3bffe8802021-12-30 14:04:4748
Nicholas Nethercote4702a1c2024-05-28 00:36:3749 # These are ignored by a standard cargo fmt run.
bjorn3bffe8802021-12-30 14:04:4750 "compiler/rustc_codegen_cranelift/scripts",
bjorn3b7bc8d52023-11-23 20:02:4551 "compiler/rustc_codegen_cranelift/example/gen_block_iterate.rs", # uses edition 2024
Guillaume Gomeze1852d02024-07-12 12:25:3152 "compiler/rustc_codegen_gcc/tests",
53 # Code automatically generated and included.
54 "compiler/rustc_codegen_gcc/src/intrinsic/archs.rs",
Guillaume Gomez12bedc32024-07-17 18:21:5255 "compiler/rustc_codegen_gcc/example",
Adam Perry8369a1a2019-10-29 15:33:1156]