1 # Run rustfmt with this config (it should be picked up automatically).
3 use_small_heuristics = "Max"
6 # by default we ignore everything in the repository
7 # tidy only checks files which are not ignored, each entry follows gitignore style
14 # tests for now are not formatted, as they are sometimes pretty-printing constrained
15 # (and generally rustfmt can move around comments in UI-testing incompatible ways)
18 # do not format submodules
20 "library/portable-simd",
22 "compiler/rustc_codegen_gcc",
24 "src/doc/edition-guide",
25 "src/doc/embedded-book",
28 "src/doc/rust-by-example",
29 "src/doc/rustc-dev-guide",
35 "src/tools/rust-analyzer",
37 "src/tools/rust-installer",
39 # these are ignored by a standard cargo fmt run
40 "compiler/rustc_codegen_cranelift/y.rs", # running rustfmt breaks this file
41 "compiler/rustc_codegen_cranelift/example",
42 "compiler/rustc_codegen_cranelift/scripts",