]> git.lizzy.rs Git - rust.git/blob - rustfmt.toml
Index HIR after creating TyCtxt
[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     "src/doc/book",
18     "src/doc/edition-guide",
19     "src/doc/embedded-book",
20     "src/doc/nomicon",
21     "src/doc/reference",
22     "src/doc/rust-by-example",
23     "src/doc/rustc-guide",
24     "src/llvm-project",
25     "src/stdarch",
26     "src/tools/cargo",
27     "src/tools/clippy",
28     "src/tools/miri",
29     "src/tools/rls",
30     "src/tools/rust-installer",
31     "src/tools/rustfmt",
32
33     # We do not format this file as it is externally sourced and auto-generated.
34     "src/libstd/sys/cloudabi/abi/cloudabi.rs",
35 ]