fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1014 B32 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    # tests for now are not formatted, as they are sometimes pretty-printing constrained
10    # (and generally rustfmt can move around comments in UI-testing incompatible ways)
11    "src/test",
12
13    # do not format submodules
14    "src/doc/book",
15    "src/doc/edition-guide",
16    "src/doc/embedded-book",
17    "src/doc/nomicon",
18    "src/doc/reference",
19    "src/doc/rust-by-example",
20    "src/doc/rustc-guide",
21    "src/llvm-project",
22    "src/stdarch",
23    "src/tools/cargo",
24    "src/tools/clippy",
25    "src/tools/miri",
26    "src/tools/rls",
27    "src/tools/rust-installer",
28    "src/tools/rustfmt",
29
30    # We do not format this file as it is externally sourced and auto-generated.
31    "src/libstd/sys/cloudabi/abi/cloudabi.rs",
32]