fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.0 KiB35 linesraw
1# Run rustfmt with this config (it should be picked up automatically).
2version = "Two"
3use_small_heuristics = "Max"
4merge_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
8ignore = [
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-dev-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]