Commit a916ac2
committed
Auto merge of rust-lang#67540 - Mark-Simulacrum:fmt-the-world, r=Centril
Format the world
This PR modifies the formatting infrastructure a bit in the first commit (to enable the forgotten 2018 edition), as well as removes most directories from the ignore list in rustfmt.toml. It then follows that up with the second commit which runs `x.py fmt` and formats the entire repository.
We continue to not format the test directory (`src/test`) because of interactions with pretty printing and, in part, because re-blessing all of those files is somewhat harder to review, so is best suited for a follow up PR in my opinion.File tree
1,168 files changed
+66411
-74803
lines changed- src
- bootstrap
- bin
- builder
- build_helper
- ci/scripts
- etc/test-float-parse
- liballoc
- benches
- collections
- btree
- rc
- sync
- tests
- btree
- libarena
- libcore
- array
- benches
- fmt
- iter
- adapters
- traits
- mem
- num
- ptr
- slice
- str
- sync
- tests
- fmt
- hash
- num
- dec2flt
- flt2dec
- libfmt_macros
- libgraphviz
- libpanic_abort
- libpanic_unwind
- dwarf
- libproc_macro
- bridge
- libprofiler_builtins
- librustc_apfloat
- tests
- librustc_asan
- librustc_codegen_llvm
- back
- debuginfo
- llvm
- librustc_codegen_ssa
- back
- rpath
- debuginfo
- mir
- traits
- librustc_codegen_utils
- symbol_names
- librustc_data_structures
- base_n
- graph
- dominators
- implementation
- iterate
- scc
- vec_graph
- obligation_forest
- owning_ref
- sip128
- snapshot_map
- sorted_map
- tiny_list
- transitive_relation
- librustc_driver
- librustc_errors
- json
- librustc_incremental
- persist
- fs
- librustc_index
- bit_set
- librustc_interface
- librustc_lexer/src
- librustc_lint
- librustc_llvm
- librustc_lsan
- librustc_macros/src
- librustc_metadata
- dynamic_lib
- rmeta
- decoder
- librustc_mir
- borrow_check
- constraints
- diagnostics
- region_infer
- type_check
- liveness
- build
- expr
- matches
- dataflow
- generic
- impls
- move_paths
- hair
- cx
- pattern
- interpret
- intrinsics
- monomorphize
- transform
- check_consts
- util
- librustc_msan
- librustc_parse
- lexer
- parser
- librustc_passes
- librustc_plugin_impl
- librustc_privacy
- librustc_resolve
- late
- librustc_save_analysis
- librustc_session
- librustc_target
- abi
- call
- spec
- librustc_traits
- chalk_context
- program_clauses
- lowering
- librustc_tsan
- librustc_typeck
- check
- method
- coherence
- outlives
- variance
- librustc
- benches
- dep_graph
- hir
- lowering
- map
- ich
- infer
- canonical
- error_reporting
- nice_region_error
- higher_ranked
- lexical_region_resolve
- nll_relate
- opaque_types
- outlives
- region_constraints
- lint
- middle
- mir
- interpret
- query
- traits
- codegen
- query
- type_op
- specialize
- ty
- inhabitedness
- print
- query
- util
- librustdoc
- clean
- cfg
- html
- render
- toc
- passes
- test
- theme
- libserialize
- hex
- json
- tests
- libstd
- collections/hash
- ffi
- io
- net
- sync
- sys_common
- sys
- cloudabi
- abi
- sgx
- unix
- ext
- process
- vxworks
- process
- wasi
- ext
- wasm
- windows
- tests
- thread
- libsyntax_expand
- mbe
- mut_visit
- tokenstream
- libsyntax_ext
- deriving
- cmp
- generic
- format_foreign
- printf
- shell
- libsyntax_pos
- analyze_source_file
- source_map
- libsyntax
- attr
- diagnostics
- expand
- feature_gate
- print
- pprust
- util
- lev_distance
- libterm
- terminfo
- parm
- parser
- libtest
- formatters
- helpers
- stats
- libunwind
- rtstartup
- rustc
- test
- rustdoc
- ui
- async-await/issues
- closures
- tools
- cargotest
- compiletest/src
- runtest
- error_index_generator
- linkchecker
- remote-test-client/src
- remote-test-server/src
- rustdoc-themes
- rustdoc
- tidy/src
- features
- unstable-book-gen/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,168 files changed
+66411
-74803
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
5 | 2 | | |
6 | 3 | | |
| 4 | + | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
72 | 57 | | |
73 | 58 | | |
74 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 58 | + | |
63 | 59 | | |
64 | 60 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 61 | + | |
| 62 | + | |
68 | 63 | | |
69 | 64 | | |
70 | 65 | | |
71 | | - | |
72 | | - | |
| 66 | + | |
| 67 | + | |
73 | 68 | | |
74 | 69 | | |
75 | 70 | | |
| |||
101 | 96 | | |
102 | 97 | | |
103 | 98 | | |
104 | | - | |
105 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
106 | 102 | | |
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
110 | 106 | | |
111 | 107 | | |
112 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
181 | | - | |
182 | | - | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | | - | |
| 57 | + | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
| |||
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
69 | | - | |
70 | | - | |
| 67 | + | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
| |||
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
80 | | - | |
81 | | - | |
| 77 | + | |
82 | 78 | | |
83 | 79 | | |
84 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments