]> git.lizzy.rs Git - rust.git/blob - rustfmt.toml
Auto merge of #82338 - RalfJung:interp-error-allocs, r=oli-obk
[rust.git] / rustfmt.toml
1 # Run rustfmt with this config (it should be picked up automatically).
2 version = "Two"
3 use_small_heuristics = "Max"
4 merge_derives = false
5
6 # by default we ignore everything in the repository
7 # tidy only checks files which are not ignored, each entry follows gitignore style
8 ignore = [
9     "/build/",
10     "/vendor/",
11
12     # tests for now are not formatted, as they are sometimes pretty-printing constrained
13     # (and generally rustfmt can move around comments in UI-testing incompatible ways)
14     "src/test",
15
16     # do not format submodules
17     "library/backtrace",
18     "library/stdarch",
19     "compiler/rustc_codegen_cranelift",
20     "src/doc/book",
21     "src/doc/edition-guide",
22     "src/doc/embedded-book",
23     "src/doc/nomicon",
24     "src/doc/reference",
25     "src/doc/rust-by-example",
26     "src/doc/rustc-dev-guide",
27     "src/llvm-project",
28     "src/tools/cargo",
29     "src/tools/clippy",
30     "src/tools/miri",
31     "src/tools/rls",
32     "src/tools/rust-analyzer",
33     "src/tools/rustfmt",
34     "src/tools/rust-installer",
35 ]