Skip to content

Commit c5a2a9a

Browse files
committed
Auto merge of #67596 - Mark-Simulacrum:tidy-silence-rustfmt, r=Centril
(Mostly) finish formatting the repository Silences tidy line length warnings on rustfmt-controlled files. This leaves two things out of formatting: CloudABI (mostly because it's not really ours to control, it's upstream code that's mostly generated), and tests. The latter is a hard problem and maybe not one to worry too much about, we rarely edit old tests and reformatting them as we go if possible isn't too bad (they're generally small).
2 parents a5bc786 + 8d6d0e7 commit c5a2a9a

File tree

49 files changed

+9702
-9873
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+9702
-9873
lines changed

rustfmt.toml

+3-45
Original file line numberDiff line numberDiff line change
@@ -10,51 +10,6 @@ ignore = [
1010
# (and generally rustfmt can move around comments in UI-testing incompatible ways)
1111
"src/test",
1212

13-
# tidy issues (line length, etc.)
14-
# to be fixed shortly
15-
"src/libcore/iter/adapters/mod.rs",
16-
"src/libcore/iter/traits/iterator.rs",
17-
"src/librustc/hir/lowering.rs",
18-
"src/librustc/infer/error_reporting/nice_region_error/outlives_closure.rs",
19-
"src/librustc/lint/mod.rs",
20-
"src/librustc/middle/resolve_lifetime.rs",
21-
"src/librustc/traits/mod.rs",
22-
"src/librustc/ty/constness.rs",
23-
"src/librustc/ty/context.rs",
24-
"src/librustc/ty/wf.rs",
25-
"src/librustc_codegen_llvm/back/write.rs",
26-
"src/librustc_codegen_llvm/consts.rs",
27-
"src/librustc_codegen_llvm/debuginfo/metadata.rs",
28-
"src/librustc_codegen_ssa/base.rs",
29-
"src/librustc_codegen_ssa/mir/place.rs",
30-
"src/librustc_codegen_utils/symbol_names/v0.rs",
31-
"src/librustc_errors/emitter.rs",
32-
"src/librustc_mir/borrow_check/diagnostics/mutability_errors.rs",
33-
"src/librustc_mir/borrow_check/type_check/mod.rs",
34-
"src/librustc_mir/build/expr/as_rvalue.rs",
35-
"src/librustc_mir/build/matches/mod.rs",
36-
"src/librustc_mir/build/mod.rs",
37-
"src/librustc_mir/const_eval.rs",
38-
"src/librustc_mir/interpret/place.rs",
39-
"src/librustc_mir/monomorphize/collector.rs",
40-
"src/librustc_passes/ast_validation.rs",
41-
"src/librustc_resolve/lib.rs",
42-
"src/librustc_resolve/resolve_imports.rs",
43-
"src/librustc_typeck/astconv.rs",
44-
"src/librustc_typeck/check/_match.rs",
45-
"src/librustc_typeck/check/coercion.rs",
46-
"src/librustc_typeck/check/method/confirm.rs",
47-
"src/librustc_typeck/check/mod.rs",
48-
"src/librustc_typeck/check/wfcheck.rs",
49-
"src/librustdoc/html/markdown/tests.rs",
50-
"src/libstd/sys/sgx/abi/mem.rs",
51-
"src/libstd/sys/unix/os.rs",
52-
"src/libsyntax_expand/parse/lexer/tests.rs",
53-
"src/libsyntax_expand/parse/tests.rs",
54-
"src/libsyntax_ext/test.rs",
55-
"src/tools/build-manifest/src/main.rs",
56-
"src/librustc_feature",
57-
5813
# do not format submodules
5914
"src/doc/book",
6015
"src/doc/edition-guide",
@@ -71,4 +26,7 @@ ignore = [
7126
"src/tools/rls",
7227
"src/tools/rust-installer",
7328
"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",
7432
]

0 commit comments

Comments
 (0)