From c24a73d20aad2aaab727a63aa47a8768f73d9adb Mon Sep 17 00:00:00 2001 From: rami3l Date: Fri, 11 Sep 2026 17:31:14 +0200 Subject: [PATCH 01/16] test(config): demonstrate `--config-path` searching behavior --- .../tools/rustfmt/.editorconfig | 0 .../tools/rustfmt/.gitattributes | 0 .../tools/rustfmt/.github}/FUNDING.yml | 0 .../rustfmt/.github}/ISSUE_TEMPLATE/bug.md | 0 .../ISSUE_TEMPLATE/feature-request.md | 0 .../rustfmt/.github}/ISSUE_TEMPLATE/ice.md | 0 .../.github}/ISSUE_TEMPLATE/regression.md | 0 .../rustfmt/.github}/pull_request_template.md | 0 .../rustfmt/.github}/workflows/check_diff.yml | 0 .../rustfmt/.github}/workflows/clippy.yml | 0 .../.github}/workflows/integration.yml | 0 .../.github}/workflows/rustdoc_check.yml | 0 .../tools/rustfmt/.github}/workflows/test.yml | 0 .../.github}/workflows/upload-assets.yml | 0 .gitignore => src/tools/rustfmt/.gitignore | 0 .../tools/rustfmt/CHANGELOG.md | 0 .../tools/rustfmt/CODE_OF_CONDUCT.md | 0 Cargo.lock => src/tools/rustfmt/Cargo.lock | 0 Cargo.toml => src/tools/rustfmt/Cargo.toml | 0 .../tools/rustfmt/Configurations.md | 0 .../tools/rustfmt/Contributing.md | 0 Design.md => src/tools/rustfmt/Design.md | 0 .../tools/rustfmt/LICENSE-APACHE | 0 LICENSE-MIT => src/tools/rustfmt/LICENSE-MIT | 0 .../tools/rustfmt/Processes.md | 0 README.md => src/tools/rustfmt/README.md | 0 .../tools/rustfmt/Subtree sync procedure.md | 0 atom.md => src/tools/rustfmt/atom.md | 0 .../tools/rustfmt/bootstrap.sh | 0 build.rs => src/tools/rustfmt/build.rs | 0 .../tools/rustfmt/check_diff}/.gitignore | 0 .../tools/rustfmt/check_diff}/Cargo.lock | 0 .../tools/rustfmt/check_diff}/Cargo.toml | 0 .../tools/rustfmt/check_diff}/src/lib.rs | 0 .../tools/rustfmt/check_diff}/src/main.rs | 0 .../check_diff}/tests/bash_commands.rs | 0 .../rustfmt/check_diff}/tests/check_diff.rs | 0 .../tools/rustfmt/check_diff}/tests/git.rs | 0 {ci => src/tools/rustfmt/ci}/Cargo.lock | 0 {ci => src/tools/rustfmt/ci}/Cargo.toml | 0 .../tools/rustfmt/ci}/src/build_and_test.rs | 0 .../rustfmt/ci}/src/clippy_config_check.rs | 0 {ci => src/tools/rustfmt/ci}/src/common.rs | 0 .../tools/rustfmt/ci}/src/integration.rs | 0 {ci => src/tools/rustfmt/ci}/src/main.rs | 0 .../rustfmt/config_proc_macro}/.gitignore | 0 .../rustfmt/config_proc_macro}/Cargo.lock | 0 .../rustfmt/config_proc_macro}/Cargo.toml | 0 .../rustfmt/config_proc_macro}/src/attrs.rs | 0 .../config_proc_macro}/src/config_type.rs | 0 .../config_proc_macro}/src/item_enum.rs | 0 .../config_proc_macro}/src/item_struct.rs | 0 .../rustfmt/config_proc_macro}/src/lib.rs | 0 .../rustfmt/config_proc_macro}/src/utils.rs | 0 .../rustfmt/config_proc_macro}/tests/smoke.rs | 0 {docs => src/tools/rustfmt/docs}/index.html | 0 intellij.md => src/tools/rustfmt/intellij.md | 0 .../tools/rustfmt/rust-toolchain | 0 .../tools/rustfmt/rustfmt.toml | 0 src/{ => tools/rustfmt/src}/attr.rs | 0 .../rustfmt/src}/attr/doc_comment.rs | 0 src/{ => tools/rustfmt/src}/bin/main.rs | 0 src/{ => tools/rustfmt/src}/cargo-fmt/main.rs | 0 .../src}/cargo-fmt/test/message_format.rs | 0 .../rustfmt/src}/cargo-fmt/test/mod.rs | 0 .../rustfmt/src}/cargo-fmt/test/targets.rs | 0 src/{ => tools/rustfmt/src}/chains.rs | 0 src/{ => tools/rustfmt/src}/closures.rs | 0 src/{ => tools/rustfmt/src}/comment.rs | 0 .../rustfmt/src}/config/config_type.rs | 0 .../rustfmt/src}/config/file_lines.rs | 0 src/{ => tools/rustfmt/src}/config/lists.rs | 0 .../rustfmt/src}/config/macro_names.rs | 0 src/{ => tools/rustfmt/src}/config/mod.rs | 0 src/{ => tools/rustfmt/src}/config/options.rs | 0 .../rustfmt/src}/config/style_edition.rs | 0 src/{ => tools/rustfmt/src}/coverage.rs | 0 src/{ => tools/rustfmt/src}/emitter.rs | 0 .../rustfmt/src}/emitter/checkstyle.rs | 0 .../rustfmt/src}/emitter/checkstyle/xml.rs | 0 src/{ => tools/rustfmt/src}/emitter/diff.rs | 0 src/{ => tools/rustfmt/src}/emitter/files.rs | 0 .../rustfmt/src}/emitter/files_with_backup.rs | 0 src/{ => tools/rustfmt/src}/emitter/json.rs | 0 .../rustfmt/src}/emitter/modified_lines.rs | 0 src/{ => tools/rustfmt/src}/emitter/stdout.rs | 0 src/{ => tools/rustfmt/src}/expr.rs | 0 .../rustfmt/src}/format-diff/main.rs | 0 .../src}/format-diff/test/bindgen.diff | 0 .../rustfmt/src}/format_report_formatter.rs | 0 src/{ => tools/rustfmt/src}/formatting.rs | 0 .../rustfmt/src}/formatting/generated.rs | 0 .../rustfmt/src}/formatting/newline_style.rs | 0 .../rustfmt/src}/git-rustfmt/main.rs | 0 src/{ => tools/rustfmt/src}/header.rs | 0 src/{ => tools/rustfmt/src}/ignore_path.rs | 0 src/{ => tools/rustfmt/src}/imports.rs | 0 src/{ => tools/rustfmt/src}/items.rs | 0 src/{ => tools/rustfmt/src}/lib.rs | 0 src/{ => tools/rustfmt/src}/lists.rs | 0 src/{ => tools/rustfmt/src}/macros.rs | 0 src/{ => tools/rustfmt/src}/matches.rs | 0 src/{ => tools/rustfmt/src}/missed_spans.rs | 0 src/{ => tools/rustfmt/src}/modules.rs | 0 .../rustfmt/src}/modules/visitor.rs | 0 src/{ => tools/rustfmt/src}/overflow.rs | 0 src/{ => tools/rustfmt/src}/pairs.rs | 0 .../rustfmt/src}/parse/macros/asm.rs | 0 .../rustfmt/src}/parse/macros/cfg_if.rs | 0 .../rustfmt/src}/parse/macros/cfg_select.rs | 0 .../rustfmt/src}/parse/macros/lazy_static.rs | 0 .../rustfmt/src}/parse/macros/mod.rs | 0 src/{ => tools/rustfmt/src}/parse/mod.rs | 0 src/{ => tools/rustfmt/src}/parse/parser.rs | 0 src/{ => tools/rustfmt/src}/parse/session.rs | 0 src/{ => tools/rustfmt/src}/patterns.rs | 0 src/{ => tools/rustfmt/src}/range.rs | 0 .../rustfmt/src}/release_channel.rs | 0 src/{ => tools/rustfmt/src}/reorder.rs | 0 src/{ => tools/rustfmt/src}/rewrite.rs | 0 src/{ => tools/rustfmt/src}/rustfmt_diff.rs | 0 src/{ => tools/rustfmt/src}/shape.rs | 0 src/{ => tools/rustfmt/src}/skip.rs | 0 src/{ => tools/rustfmt/src}/sort.rs | 0 src/{ => tools/rustfmt/src}/source_file.rs | 0 src/{ => tools/rustfmt/src}/source_map.rs | 0 src/{ => tools/rustfmt/src}/spanned.rs | 0 src/{ => tools/rustfmt/src}/stmt.rs | 0 src/{ => tools/rustfmt/src}/string.rs | 0 .../src}/test/configuration_snippet.rs | 0 src/{ => tools/rustfmt/src}/test/mod.rs | 0 .../rustfmt/src}/test/mod_resolver.rs | 0 src/{ => tools/rustfmt/src}/test/parser.rs | 0 src/{ => tools/rustfmt/src}/types.rs | 0 src/{ => tools/rustfmt/src}/utils.rs | 0 src/{ => tools/rustfmt/src}/vertical.rs | 0 src/{ => tools/rustfmt/src}/visitor.rs | 0 .../tools/rustfmt/tests}/cargo-fmt/main.rs | 0 .../divergent-crate-dir-names/Cargo.toml | 0 .../dependency-dir-name/Cargo.toml | 0 .../dependency-dir-name/src/lib.rs | 0 .../subdep-dir-name/Cargo.toml | 0 .../subdep-dir-name/src/lib.rs | 0 .../divergent-crate-dir-names/src/main.rs | 0 .../cargo-fmt/source/issue_3164/Cargo.toml | 0 .../cargo-fmt/source/issue_3164/src/main.rs | 0 .../cargo-fmt/source/issues_6517/Cargo.toml | 0 .../source/issues_6517/inner_bin/Cargo.toml | 0 .../source/issues_6517/inner_bin/src/main.rs | 0 .../source/issues_6517/inner_lib/Cargo.toml | 0 .../source/issues_6517/inner_lib/src/lib.rs | 0 .../workspaces/path-dep-above/e/Cargo.toml | 0 .../workspaces/path-dep-above/e/src/main.rs | 0 .../workspaces/path-dep-above/ws/Cargo.toml | 0 .../workspaces/path-dep-above/ws/a/Cargo.toml | 0 .../path-dep-above/ws/a/d/Cargo.toml | 0 .../path-dep-above/ws/a/d/f/Cargo.toml | 0 .../path-dep-above/ws/a/d/f/src/lib.rs | 0 .../path-dep-above/ws/a/d/src/lib.rs | 0 .../path-dep-above/ws/a/src/main.rs | 0 .../workspaces/path-dep-above/ws/b/Cargo.toml | 0 .../path-dep-above/ws/b/src/main.rs | 0 .../workspaces/path-dep-above/ws/c/Cargo.toml | 0 .../workspaces/path-dep-above/ws/c/src/lib.rs | 0 .../tests}/config/disable_all_formatting.toml | 0 .../rustfmt/tests}/config/issue-1111.toml | 0 .../rustfmt/tests}/config/issue-2641.toml | 0 .../rustfmt/tests}/config/issue-3779.toml | 0 .../rustfmt/tests}/config/issue-5801-v1.toml | 0 .../rustfmt/tests}/config/issue-5801-v2.toml | 0 .../rustfmt/tests}/config/issue-5816.toml | 0 .../rustfmt/tests}/config/issue-6302.toml | 0 .../tests/config/issue_4660/Cargo.lock | 7 ++++ .../tests/config/issue_4660/Cargo.toml | 2 ++ .../inner_bin/.rustfmt.unstable.toml | 1 + .../config/issue_4660/inner_bin/Cargo.toml | 6 ++++ .../config/issue_4660/inner_bin/src/main.rs | 1 + .../config/issue_4660/inner_lib/Cargo.toml | 6 ++++ .../config/issue_4660/inner_lib/rustfmt.toml | 1 + .../config/issue_4660/inner_lib/src/lib.rs | 1 + .../rustfmt/tests}/config/skip_children.toml | 0 .../rustfmt/tests}/config/small_tabs.toml | 0 .../just-style-edition/rustfmt.toml | 0 .../style-edition/just-version/rustfmt.toml | 0 .../style-edition/overrides/rustfmt.toml | 0 .../style-edition-and-edition/rustfmt.toml | 0 .../version-edition/rustfmt.toml | 0 .../rustfmt.toml | 0 .../version-style-edition/rustfmt.toml | 0 .../tests}/coverage/source/comments.rs | 0 .../tests}/coverage/target/comments.rs | 0 .../tests}/mod-resolver/issue-4874/bar/baz.rs | 0 .../tests}/mod-resolver/issue-4874/foo.rs | 0 .../tests}/mod-resolver/issue-4874/foo/qux.rs | 0 .../tests}/mod-resolver/issue-4874/main.rs | 0 .../tests}/mod-resolver/issue-5063/foo.rs | 0 .../mod-resolver/issue-5063/foo/bar/baz.rs | 0 .../tests}/mod-resolver/issue-5063/main.rs | 0 .../tests}/mod-resolver/issue-5167/src/a.rs | 0 .../mod-resolver/issue-5167/src/a/mod.rs | 0 .../tests}/mod-resolver/issue-5167/src/lib.rs | 0 .../tests}/mod-resolver/issue-5198/a.rs | 0 .../tests}/mod-resolver/issue-5198/lib.rs | 0 .../tests}/mod-resolver/issue-5198/lib/b.rs | 0 .../tests}/mod-resolver/issue-5198/lib/c/d.rs | 0 .../issue-5198/lib/c/d/explanation.txt | 0 .../mod-resolver/issue-5198/lib/c/d/f.rs | 0 .../mod-resolver/issue-5198/lib/c/d/g/mod.rs | 0 .../tests}/mod-resolver/issue-5198/lib/c/e.rs | 0 .../mod-resolver/issue-5198/lib/c/mod.rs | 0 .../issue-5198/lib/explanation.txt | 0 .../bad_path_attribute/lib.rs | 0 .../module-not-found/relative_module/a.rs | 0 .../module-not-found/relative_module/lib.rs | 0 .../module-not-found/sibling_module/lib.rs | 0 .../mod-resolver/skip-files-issue-5065/foo.rs | 0 .../skip-files-issue-5065/foo/bar/baz.rs | 0 .../skip-files-issue-5065/main.rs | 0 .../mod-resolver/skip-files-issue-5065/one.rs | 0 .../test-submodule-issue-5119/Cargo.toml | 0 .../test-submodule-issue-5119/src/lib.rs | 0 .../test-submodule-issue-5119/tests/test1.rs | 0 .../tests/test1/sub1.rs | 0 .../tests/test1/sub2.rs | 0 .../tests/test1/sub3/mod.rs | 0 .../tests/test1/sub3/sub4.rs | 0 .../tests}/parser/issue-4126/invalid.rs | 0 .../rustfmt/tests}/parser/issue-4126/lib.rs | 0 .../tools/rustfmt/tests}/parser/issue_4418.rs | 0 .../rustfmt/tests}/parser/stashed-diag.rs | 0 .../rustfmt/tests}/parser/stashed-diag2.rs | 0 .../parser/unclosed-delims/issue_4466.rs | 0 .../tools/rustfmt/tests}/rustfmt/main.rs | 35 +++++++++++++++++++ .../tools/rustfmt/tests}/source/5131_crate.rs | 0 .../rustfmt/tests}/source/5131_module.rs | 0 .../tools/rustfmt/tests}/source/5131_one.rs | 0 .../inner-block-doc-comment.rs | 0 .../naive-outer-block-comment.rs | 0 .../outer-block-doc-comment.rs | 0 .../rustc-sample-1.rs | 0 .../rustc-sample-2.rs | 0 .../source/alignment_2633/block_style.rs | 0 .../source/alignment_2633/visual_style.rs | 0 .../rustfmt/tests}/source/array_comment.rs | 0 .../arrow_in_single_comment.rs | 0 .../arrow_in_comments/multiple_arrows.rs | 0 .../tools/rustfmt/tests}/source/assignment.rs | 0 .../associated-types-bounds-wrapping.rs | 0 .../tests}/source/associated_type_bounds.rs | 0 .../rustfmt/tests}/source/async_block.rs | 0 .../tools/rustfmt/tests}/source/async_fn.rs | 0 .../tools/rustfmt/tests}/source/attrib.rs | 0 .../rustfmt/tests}/source/big-impl-block.rs | 0 .../rustfmt/tests}/source/big-impl-visual.rs | 0 .../rustfmt/tests}/source/binary-expr.rs | 0 .../source/binop-separator-back/bitwise.rs | 0 .../source/binop-separator-back/comp.rs | 0 .../source/binop-separator-back/logic.rs | 0 .../source/binop-separator-back/math.rs | 0 .../source/binop-separator-back/patterns.rs | 0 .../source/binop-separator-back/range.rs | 0 .../tests}/source/break-and-continue.rs | 0 .../tools/rustfmt/tests}/source/catch.rs | 0 .../source/cfg_if/detect/arch/aarch64.rs | 0 .../tests}/source/cfg_if/detect/arch/arm.rs | 0 .../tests}/source/cfg_if/detect/arch/mips.rs | 0 .../source/cfg_if/detect/arch/mips64.rs | 0 .../source/cfg_if/detect/arch/powerpc.rs | 0 .../source/cfg_if/detect/arch/powerpc64.rs | 0 .../tests}/source/cfg_if/detect/arch/x86.rs | 0 .../tests}/source/cfg_if/detect/bit.rs | 0 .../tests}/source/cfg_if/detect/cache.rs | 0 .../source/cfg_if/detect/error_macros.rs | 0 .../tests}/source/cfg_if/detect/mod.rs | 0 .../tests}/source/cfg_if/detect/os/aarch64.rs | 0 .../cfg_if/detect/os/freebsd/aarch64.rs | 0 .../source/cfg_if/detect/os/freebsd/arm.rs | 0 .../source/cfg_if/detect/os/freebsd/auxvec.rs | 0 .../source/cfg_if/detect/os/freebsd/mod.rs | 0 .../cfg_if/detect/os/freebsd/powerpc.rs | 0 .../source/cfg_if/detect/os/linux/aarch64.rs | 0 .../source/cfg_if/detect/os/linux/arm.rs | 0 .../source/cfg_if/detect/os/linux/auxvec.rs | 0 .../source/cfg_if/detect/os/linux/cpuinfo.rs | 0 .../source/cfg_if/detect/os/linux/mips.rs | 0 .../source/cfg_if/detect/os/linux/mod.rs | 0 .../source/cfg_if/detect/os/linux/powerpc.rs | 0 .../tests}/source/cfg_if/detect/os/other.rs | 0 .../tests}/source/cfg_if/detect/os/x86.rs | 0 .../tools/rustfmt/tests}/source/cfg_if/lib.rs | 0 .../tools/rustfmt/tests}/source/cfg_if/mod.rs | 0 .../rustfmt/tests}/source/cfg_mod/bar.rs | 0 .../source/cfg_mod/dir/dir1/dir2/wasm32.rs | 0 .../source/cfg_mod/dir/dir1/dir3/wasm32.rs | 0 .../rustfmt/tests}/source/cfg_mod/foo.rs | 0 .../rustfmt/tests}/source/cfg_mod/mod.rs | 0 .../rustfmt/tests}/source/cfg_mod/other.rs | 0 .../rustfmt/tests}/source/cfg_mod/wasm32.rs | 0 .../tools/rustfmt/tests}/source/cfg_select.rs | 0 .../source/cfg_select/format_me_please_1.rs | 0 .../source/cfg_select/format_me_please_2.rs | 0 .../source/cfg_select/format_me_please_3.rs | 0 .../source/cfg_select/format_me_please_4.rs | 0 .../rustfmt/tests}/source/cfg_select/lib.rs | 0 .../rustfmt/tests}/source/cfg_select/lib2.rs | 0 .../tests}/source/cfg_select_stable.rs | 0 .../source/chain_yield_with_comments.rs | 0 .../rustfmt/tests}/source/chains-visual.rs | 0 .../tools/rustfmt/tests}/source/chains.rs | 0 .../tests}/source/chains_with_comment.rs | 0 .../source/closure-block-inside-macro.rs | 0 .../tests}/source/closure-block-labels.rs | 0 .../tools/rustfmt/tests}/source/closure.rs | 0 .../tools/rustfmt/tests}/source/comment.rs | 0 .../tools/rustfmt/tests}/source/comment2.rs | 0 .../tools/rustfmt/tests}/source/comment3.rs | 0 .../tools/rustfmt/tests}/source/comment4.rs | 0 .../tools/rustfmt/tests}/source/comment5.rs | 0 .../tools/rustfmt/tests}/source/comment6.rs | 0 .../tests}/source/comment_crlf_newline.rs | 0 .../wrap-comments-not-normalized.rs | 0 .../comments-in-lists/wrap-comments-true.rs | 0 .../rustfmt/tests}/source/comments_unicode.rs | 0 .../configs/blank_lines_lower_bound/1.rs | 0 .../configs/blank_lines_upper_bound/1.rs | 0 .../configs/blank_lines_upper_bound/2.rs | 0 .../brace_style/fn_always_next_line.rs | 0 .../brace_style/fn_prefer_same_line.rs | 0 .../configs/brace_style/fn_same_line_where.rs | 0 .../brace_style/item_always_next_line.rs | 0 .../brace_style/item_prefer_same_line.rs | 0 .../brace_style/item_same_line_where.rs | 0 .../source/configs/chain_width/always.rs | 0 .../source/configs/chain_width/small.rs | 0 .../tests}/source/configs/chain_width/tiny.rs | 0 .../source/configs/comment_width/above.rs | 0 .../source/configs/comment_width/below.rs | 0 .../source/configs/comment_width/ignore.rs | 0 .../condense_wildcard_suffixes/false.rs | 0 .../condense_wildcard_suffixes/true.rs | 0 .../control_brace_style/always_next_line.rs | 0 .../control_brace_style/always_same_line.rs | 0 .../control_brace_style/closing_next_line.rs | 0 .../configs/disable_all_formatting/false.rs | 0 .../configs/disable_all_formatting/true.rs | 0 .../default-to-max.rs | 0 .../max-to-default.rs | 0 .../doc_comment_code_block_width/100.rs | 0 .../100_greater_max_width.rs | 0 .../doc_comment_code_block_width/50.rs | 0 .../configs/empty_item_single_line/false.rs | 0 .../configs/empty_item_single_line/true.rs | 0 .../enum_discrim_align_threshold/40.rs | 0 .../configs/error_on_line_overflow/false.rs | 0 .../float_literal_trailing_zero/always.rs | 0 .../if-no-postfix.rs | 0 .../float_literal_trailing_zero/never.rs | 0 .../configs/fn_params_layout/compressed.rs | 0 .../source/configs/fn_params_layout/tall.rs | 0 .../configs/fn_params_layout/vertical.rs | 0 .../fn_params_layout/vertical_style_2027.rs | 0 .../source/configs/fn_single_line/false.rs | 0 .../source/configs/fn_single_line/true.rs | 0 .../configs/force_explicit_abi/false.rs | 0 .../source/configs/force_explicit_abi/true.rs | 0 .../configs/force_multiline_block/false.rs | 0 .../configs/force_multiline_block/true.rs | 0 .../configs/format_generated_files/false.rs | 0 ...with_generated_marker_line_search_limit.rs | 0 .../false_with_marker_out_scope_size.rs | 0 .../false_with_zero_search_limit.rs | 0 .../configs/format_generated_files/true.rs | 0 .../true_with_marker_in_scope_size.rs | 0 .../true_with_marker_not_in_header.rs | 0 .../configs/format_macro_bodies/false.rs | 0 .../configs/format_macro_bodies/true.rs | 0 .../configs/format_macro_matchers/false.rs | 0 .../configs/format_macro_matchers/true.rs | 0 .../source/configs/format_strings/false.rs | 0 .../source/configs/format_strings/true.rs | 0 .../group_imports/One-merge_imports.rs | 0 .../configs/group_imports/One-nested.rs | 0 .../configs/group_imports/One-no_reorder.rs | 0 .../source/configs/group_imports/One.rs | 0 .../StdExternalCrate-merge_imports.rs | 0 .../group_imports/StdExternalCrate-nested.rs | 0 .../StdExternalCrate-no_reorder.rs | 0 .../StdExternalCrate-non_consecutive.rs | 0 .../configs/group_imports/StdExternalCrate.rs | 0 .../tests}/source/configs/hard_tabs/false.rs | 0 .../tests}/source/configs/hard_tabs/true.rs | 0 .../hex_literal_case/hex_literal_lower.rs | 0 .../hex_literal_case/hex_literal_preserve.rs | 0 .../hex_literal_case/hex_literal_upper.rs | 0 .../configs/imports_layout/merge_mixed.rs | 0 .../source/configs/indent_style/block_args.rs | 0 .../configs/indent_style/block_array.rs | 0 .../source/configs/indent_style/block_call.rs | 0 .../configs/indent_style/block_chain.rs | 0 .../configs/indent_style/block_generic.rs | 0 .../configs/indent_style/block_struct_lit.rs | 0 .../block_trailing_comma_call/one.rs | 0 .../block_trailing_comma_call/two.rs | 0 .../configs/indent_style/block_where_pred.rs | 0 .../source/configs/indent_style/default.rs | 0 .../source/configs/indent_style/rfc_where.rs | 0 .../configs/indent_style/visual_args.rs | 0 .../configs/indent_style/visual_array.rs | 0 .../configs/indent_style/visual_call.rs | 0 .../configs/indent_style/visual_chain.rs | 0 .../configs/indent_style/visual_generics.rs | 0 .../configs/indent_style/visual_struct_lit.rs | 0 .../indent_style/visual_trailing_comma.rs | 0 .../configs/indent_style/visual_where_pred.rs | 0 .../source/configs/match_arm_blocks/false.rs | 0 .../source/configs/match_arm_blocks/true.rs | 0 .../source/configs/match_arm_indent/attrs.rs | 0 .../source/configs/match_arm_indent/guards.rs | 0 .../configs/match_arm_indent/leading_pipes.rs | 0 .../source/configs/match_arm_indent/nested.rs | 0 .../configs/match_arm_indent/patterns.rs | 0 .../configs/match_arm_indent/unindent.rs | 0 .../configs/match_arm_leading_pipes/always.rs | 0 .../configs/match_arm_leading_pipes/never.rs | 0 .../match_arm_leading_pipes/preserve.rs | 0 .../match_block_trailing_comma/false.rs | 0 .../match_block_trailing_comma/true.rs | 0 .../source/configs/merge_derives/true.rs | 0 .../configs/normalize_comments/false.rs | 0 .../source/configs/normalize_comments/true.rs | 0 .../configs/normalize_doc_attributes/false.rs | 0 .../configs/normalize_doc_attributes/true.rs | 0 .../remove_nested_parens.rs | 0 .../configs/reorder_impl_items/false.rs | 0 .../source/configs/reorder_impl_items/true.rs | 0 .../source/configs/reorder_imports/false.rs | 0 .../source/configs/reorder_imports/true.rs | 0 .../configs/reorder_modules/dolor/mod.rs | 0 .../source/configs/reorder_modules/false.rs | 0 .../configs/reorder_modules/ipsum/mod.rs | 0 .../configs/reorder_modules/lorem/mod.rs | 0 .../source/configs/reorder_modules/sit/mod.rs | 0 .../source/configs/reorder_modules/true.rs | 0 .../short_array_element_width_threshold/10.rs | 0 .../short_array_element_width_threshold/20.rs | 0 .../greater_than_max_width.rs | 0 .../single_line_let_else_max_width/100.rs | 0 .../single_line_let_else_max_width/50.rs | 0 .../single_line_let_else_max_width/zero.rs | 0 .../source/configs/skip_children/foo/mod.rs | 0 .../source/configs/skip_children/true.rs | 0 .../source/configs/space_before_colon/true.rs | 0 .../configs/spaces_around_ranges/false.rs | 0 .../configs/spaces_around_ranges/true.rs | 0 .../struct_field_align_threshold/20.rs | 0 .../configs/struct_lit_single_line/false.rs | 0 .../style_edition/overflow_delim_expr_2015.rs | 0 .../style_edition/overflow_delim_expr_2024.rs | 0 .../tests}/source/configs/tab_spaces/2.rs | 0 .../tests}/source/configs/tab_spaces/4.rs | 0 .../source/configs/trailing_comma/always.rs | 0 .../source/configs/trailing_comma/never.rs | 0 .../source/configs/trailing_comma/vertical.rs | 0 .../type_punctuation_density/compressed.rs | 0 .../configs/type_punctuation_density/wide.rs | 0 .../configs/use_field_init_shorthand/false.rs | 0 .../configs/use_field_init_shorthand/true.rs | 0 .../configs/use_small_heuristics/default.rs | 0 .../configs/use_small_heuristics/max.rs | 0 .../configs/use_small_heuristics/off.rs | 0 .../source/configs/use_try_shorthand/false.rs | 0 .../source/configs/use_try_shorthand/true.rs | 0 .../source/configs/where_single_line/true.rs | 0 .../source/configs/wrap_comments/false.rs | 0 .../source/configs/wrap_comments/true.rs | 0 .../tests}/source/const-block-items.rs | 0 .../rustfmt/tests}/source/const_generics.rs | 0 .../control-brace-style-always-next-line.rs | 0 .../control-brace-style-always-same-line.rs | 0 .../tests}/source/default-field-values.rs | 0 .../rustfmt/tests}/source/direct_const_arg.rs | 0 .../tools/rustfmt/tests}/source/doc-attrib.rs | 0 .../tests}/source/doc-comment-with-example.rs | 0 .../tools/rustfmt/tests}/source/doc.rs | 0 .../tools/rustfmt/tests}/source/dyn_trait.rs | 0 .../else-if-brace-style-always-next-line.rs | 0 .../else-if-brace-style-always-same-line.rs | 0 .../else-if-brace-style-closing-next-line.rs | 0 .../source/empty-item-single-line-false.rs | 0 .../tools/rustfmt/tests}/source/empty_file.rs | 0 .../tools/rustfmt/tests}/source/enum.rs | 0 .../rustfmt/tests}/source/ergonomic_clones.rs | 0 .../rustfmt/tests}/source/existential_type.rs | 0 .../tools/rustfmt/tests}/source/expr-block.rs | 0 .../tests}/source/expr-overflow-delimited.rs | 0 .../tools/rustfmt/tests}/source/expr.rs | 0 .../tools/rustfmt/tests}/source/extern.rs | 0 .../tests}/source/extern_not_explicit.rs | 0 .../rustfmt/tests}/source/file-lines-1.rs | 0 .../rustfmt/tests}/source/file-lines-2.rs | 0 .../rustfmt/tests}/source/file-lines-3.rs | 0 .../rustfmt/tests}/source/file-lines-4.rs | 0 .../rustfmt/tests}/source/file-lines-5.rs | 0 .../rustfmt/tests}/source/file-lines-6.rs | 0 .../rustfmt/tests}/source/file-lines-7.rs | 0 .../rustfmt/tests}/source/file-lines-item.rs | 0 .../rustfmt/tests}/source/fn-custom-2.rs | 0 .../rustfmt/tests}/source/fn-custom-3.rs | 0 .../rustfmt/tests}/source/fn-custom-4.rs | 0 .../rustfmt/tests}/source/fn-custom-6.rs | 0 .../rustfmt/tests}/source/fn-custom-7.rs | 0 .../rustfmt/tests}/source/fn-custom-8.rs | 0 .../tools/rustfmt/tests}/source/fn-custom.rs | 0 .../tests}/source/fn-param-attributes.rs | 0 .../tools/rustfmt/tests}/source/fn-simple.rs | 0 .../source/fn-single-line/version_one.rs | 0 .../source/fn-single-line/version_two.rs | 0 .../tests}/source/fn_args_indent-block.rs | 0 .../tests}/source/fn_args_layout-vertical.rs | 0 .../tests}/source/frontmatter_compact.rs | 0 .../tests}/source/frontmatter_escaped.rs | 0 .../tests}/source/frontmatter_spaced.rs | 0 .../rustfmt/tests}/source/generic_static.rs | 0 .../tools/rustfmt/tests}/source/hard-tabs.rs | 0 .../tools/rustfmt/tests}/source/hello.rs | 0 .../tools/rustfmt/tests}/source/hello2.rs | 0 .../tests}/source/if_while_or_patterns.rs | 0 .../tests}/source/immovable_coroutines.rs | 0 .../rustfmt/tests}/source/impl-restriction.rs | 0 .../tools/rustfmt/tests}/source/impls.rs | 0 .../source/imports/imports-impl-only-use.rs | 0 .../imports-reorder-lines-and-items.rs | 0 .../source/imports/imports-reorder-lines.rs | 0 .../tests}/source/imports/imports-reorder.rs | 0 .../rustfmt/tests}/source/imports/imports.rs | 0 .../source/imports/imports_block_indent.rs | 0 .../imports/imports_granularity_crate.rs | 0 .../imports_granularity_default-with-dups.rs | 0 ...m-with-dups-StdExternalCrate-no-reorder.rs | 0 .../imports_granularity_item-with-dups.rs | 0 .../imports/imports_granularity_item.rs | 0 .../imports/imports_granularity_module.rs | 0 .../source/imports/imports_granularity_one.rs | 0 .../imports_raw_identifiers/version_One.rs | 0 .../imports_raw_identifiers/version_Two.rs | 0 .../invalid-rust-code-in-doc-comment.rs | 0 .../tools/rustfmt/tests}/source/issue-1021.rs | 0 .../tools/rustfmt/tests}/source/issue-1049.rs | 0 .../tools/rustfmt/tests}/source/issue-1111.rs | 0 .../tools/rustfmt/tests}/source/issue-1120.rs | 0 .../tools/rustfmt/tests}/source/issue-1124.rs | 0 .../tools/rustfmt/tests}/source/issue-1127.rs | 0 .../tools/rustfmt/tests}/source/issue-1158.rs | 0 .../tools/rustfmt/tests}/source/issue-1177.rs | 0 .../tools/rustfmt/tests}/source/issue-1192.rs | 0 .../rustfmt/tests}/source/issue-1210/a.rs | 0 .../rustfmt/tests}/source/issue-1210/b.rs | 0 .../rustfmt/tests}/source/issue-1210/c.rs | 0 .../rustfmt/tests}/source/issue-1210/d.rs | 0 .../rustfmt/tests}/source/issue-1210/e.rs | 0 .../tools/rustfmt/tests}/source/issue-1211.rs | 0 .../tools/rustfmt/tests}/source/issue-1216.rs | 0 .../tools/rustfmt/tests}/source/issue-1239.rs | 0 .../tools/rustfmt/tests}/source/issue-1278.rs | 0 .../tools/rustfmt/tests}/source/issue-1350.rs | 0 .../tools/rustfmt/tests}/source/issue-1366.rs | 0 .../tools/rustfmt/tests}/source/issue-1468.rs | 0 .../tools/rustfmt/tests}/source/issue-1693.rs | 0 .../tools/rustfmt/tests}/source/issue-1800.rs | 0 .../tools/rustfmt/tests}/source/issue-1914.rs | 0 .../tools/rustfmt/tests}/source/issue-2025.rs | 0 .../tools/rustfmt/tests}/source/issue-2111.rs | 0 .../tools/rustfmt/tests}/source/issue-2164.rs | 0 .../rustfmt/tests}/source/issue-2179/one.rs | 0 .../rustfmt/tests}/source/issue-2179/two.rs | 0 .../tools/rustfmt/tests}/source/issue-2256.rs | 0 .../tools/rustfmt/tests}/source/issue-2342.rs | 0 .../tools/rustfmt/tests}/source/issue-2445.rs | 0 .../tools/rustfmt/tests}/source/issue-2446.rs | 0 .../tools/rustfmt/tests}/source/issue-2479.rs | 0 .../rustfmt/tests}/source/issue-2482/a.rs | 0 .../rustfmt/tests}/source/issue-2482/b.rs | 0 .../rustfmt/tests}/source/issue-2482/c.rs | 0 .../tools/rustfmt/tests}/source/issue-2496.rs | 0 .../tools/rustfmt/tests}/source/issue-2520.rs | 0 .../tools/rustfmt/tests}/source/issue-2523.rs | 0 .../tools/rustfmt/tests}/source/issue-2582.rs | 0 .../tools/rustfmt/tests}/source/issue-2641.rs | 0 .../tools/rustfmt/tests}/source/issue-2644.rs | 0 .../tools/rustfmt/tests}/source/issue-2728.rs | 0 .../tools/rustfmt/tests}/source/issue-2761.rs | 0 .../tools/rustfmt/tests}/source/issue-2781.rs | 0 .../tools/rustfmt/tests}/source/issue-2794.rs | 0 .../tools/rustfmt/tests}/source/issue-2835.rs | 0 .../tools/rustfmt/tests}/source/issue-2863.rs | 0 .../tools/rustfmt/tests}/source/issue-2869.rs | 0 .../tools/rustfmt/tests}/source/issue-2896.rs | 0 .../tools/rustfmt/tests}/source/issue-2916.rs | 0 .../tests}/source/issue-2917/packed_simd.rs | 0 .../tools/rustfmt/tests}/source/issue-2922.rs | 0 .../rustfmt/tests}/source/issue-2927-2.rs | 0 .../tools/rustfmt/tests}/source/issue-2927.rs | 0 .../tools/rustfmt/tests}/source/issue-2930.rs | 0 .../tools/rustfmt/tests}/source/issue-2936.rs | 0 .../tools/rustfmt/tests}/source/issue-2955.rs | 0 .../tools/rustfmt/tests}/source/issue-2973.rs | 0 .../rustfmt/tests}/source/issue-2977/impl.rs | 0 .../rustfmt/tests}/source/issue-2977/trait.rs | 0 .../tools/rustfmt/tests}/source/issue-2985.rs | 0 .../tools/rustfmt/tests}/source/issue-2995.rs | 0 .../tools/rustfmt/tests}/source/issue-3029.rs | 0 .../tools/rustfmt/tests}/source/issue-3038.rs | 0 .../tools/rustfmt/tests}/source/issue-3049.rs | 0 .../tests}/source/issue-3055/original.rs | 0 .../tools/rustfmt/tests}/source/issue-3059.rs | 0 .../tools/rustfmt/tests}/source/issue-3066.rs | 0 .../tools/rustfmt/tests}/source/issue-3131.rs | 0 .../tools/rustfmt/tests}/source/issue-3153.rs | 0 .../tools/rustfmt/tests}/source/issue-3158.rs | 0 .../tools/rustfmt/tests}/source/issue-3194.rs | 0 .../tools/rustfmt/tests}/source/issue-3198.rs | 0 .../tests}/source/issue-3213/version_one.rs | 0 .../tests}/source/issue-3213/version_two.rs | 0 .../tools/rustfmt/tests}/source/issue-3217.rs | 0 .../rustfmt/tests}/source/issue-3227/two.rs | 0 .../tools/rustfmt/tests}/source/issue-3234.rs | 0 .../tools/rustfmt/tests}/source/issue-3241.rs | 0 .../rustfmt/tests}/source/issue-3253/bar.rs | 0 .../rustfmt/tests}/source/issue-3253/foo.rs | 0 .../rustfmt/tests}/source/issue-3253/lib.rs | 0 .../tests}/source/issue-3253/paths/bar_foo.rs | 0 .../source/issue-3253/paths/excluded.rs | 0 .../tests}/source/issue-3253/paths/foo_bar.rs | 0 .../tools/rustfmt/tests}/source/issue-3265.rs | 0 .../rustfmt/tests}/source/issue-3270/one.rs | 0 .../rustfmt/tests}/source/issue-3270/two.rs | 0 .../rustfmt/tests}/source/issue-3272/v1.rs | 0 .../rustfmt/tests}/source/issue-3272/v2.rs | 0 .../tests}/source/issue-3278/version_one.rs | 0 .../tests}/source/issue-3278/version_two.rs | 0 .../rustfmt/tests}/source/issue-3295/two.rs | 0 .../tools/rustfmt/tests}/source/issue-3302.rs | 0 .../tools/rustfmt/tests}/source/issue-3343.rs | 0 .../tools/rustfmt/tests}/source/issue-3423.rs | 0 .../rustfmt/tests}/source/issue-3434/lib.rs | 0 .../tests}/source/issue-3434/no_entry.rs | 0 .../source/issue-3434/not_skip_macro.rs | 0 .../tools/rustfmt/tests}/source/issue-3465.rs | 0 .../rustfmt/tests}/source/issue-3494/crlf.rs | 0 .../rustfmt/tests}/source/issue-3494/lf.rs | 0 .../tools/rustfmt/tests}/source/issue-3508.rs | 0 .../tools/rustfmt/tests}/source/issue-3515.rs | 0 .../tools/rustfmt/tests}/source/issue-3532.rs | 0 .../tests}/source/issue-3585/extern_crate.rs | 0 .../issue-3585/reorder_imports_disabled.rs | 0 .../issue-3585/reorder_imports_enabled.rs | 0 .../rustfmt/tests}/source/issue-3585/use.rs | 0 .../tools/rustfmt/tests}/source/issue-3636.rs | 0 .../tools/rustfmt/tests}/source/issue-3639.rs | 0 .../tools/rustfmt/tests}/source/issue-3651.rs | 0 .../rustfmt/tests}/source/issue-3665/lib.rs | 0 .../source/issue-3665/not_skip_attribute.rs | 0 .../tests}/source/issue-3665/sub_mod.rs | 0 .../tools/rustfmt/tests}/source/issue-3672.rs | 0 .../tools/rustfmt/tests}/source/issue-3675.rs | 0 .../rustfmt/tests}/source/issue-3701/one.rs | 0 .../rustfmt/tests}/source/issue-3701/two.rs | 0 .../tools/rustfmt/tests}/source/issue-3709.rs | 0 .../tools/rustfmt/tests}/source/issue-3740.rs | 0 .../tools/rustfmt/tests}/source/issue-3750.rs | 0 .../tools/rustfmt/tests}/source/issue-3751.rs | 0 .../rustfmt/tests}/source/issue-3779/ice.rs | 0 .../rustfmt/tests}/source/issue-3779/lib.rs | 0 .../tools/rustfmt/tests}/source/issue-3786.rs | 0 .../tools/rustfmt/tests}/source/issue-3787.rs | 0 .../tools/rustfmt/tests}/source/issue-3805.rs | 0 .../issue-3840/version-one_hard-tabs.rs | 0 .../issue-3840/version-one_soft-tabs.rs | 0 .../issue-3840/version-two_hard-tabs.rs | 0 .../issue-3840/version-two_soft-tabs.rs | 0 .../tools/rustfmt/tests}/source/issue-3984.rs | 0 .../issue-3987/format_macro_bodies_true.rs | 0 .../tools/rustfmt/tests}/source/issue-4018.rs | 0 .../rustfmt/tests}/source/issue-4036/one.rs | 0 .../rustfmt/tests}/source/issue-4036/three.rs | 0 .../rustfmt/tests}/source/issue-4036/two.rs | 0 .../tools/rustfmt/tests}/source/issue-4041.rs | 0 .../tools/rustfmt/tests}/source/issue-4079.rs | 0 .../tools/rustfmt/tests}/source/issue-4120.rs | 0 .../tools/rustfmt/tests}/source/issue-4243.rs | 0 .../tools/rustfmt/tests}/source/issue-4244.rs | 0 .../tools/rustfmt/tests}/source/issue-4245.rs | 0 .../tools/rustfmt/tests}/source/issue-4312.rs | 0 .../source/issue-4381/style_edition_2015.rs | 0 .../tools/rustfmt/tests}/source/issue-4382.rs | 0 .../tools/rustfmt/tests}/source/issue-4398.rs | 0 .../tools/rustfmt/tests}/source/issue-4427.rs | 0 .../tools/rustfmt/tests}/source/issue-447.rs | 0 .../tools/rustfmt/tests}/source/issue-4530.rs | 0 .../tools/rustfmt/tests}/source/issue-4577.rs | 0 .../tools/rustfmt/tests}/source/issue-4603.rs | 0 .../source/issue-4615/minimum_example.rs | 0 .../tools/rustfmt/tests}/source/issue-4643.rs | 0 .../tools/rustfmt/tests}/source/issue-4646.rs | 0 .../source/issue-4656/format_me_please.rs | 0 .../rustfmt/tests}/source/issue-4656/lib.rs | 0 .../rustfmt/tests}/source/issue-4656/lib2.rs | 0 .../rustfmt/tests}/source/issue-4689/one.rs | 0 .../rustfmt/tests}/source/issue-4689/two.rs | 0 .../rustfmt/tests}/source/issue-4791/buggy.rs | 0 .../source/issue-4791/trailing_comma.rs | 0 .../tools/rustfmt/tests}/source/issue-4808.rs | 0 .../rustfmt/tests}/source/issue-4816/lib.rs | 0 .../source/issue-4926/deeply_nested_struct.rs | 0 ...ply_nested_struct_with_long_field_names.rs | 0 .../deeply_nested_struct_with_many_fields.rs | 0 .../source/issue-4926/enum_struct_field.rs | 0 .../source/issue-4926/minimum_example.rs | 0 .../struct_with_long_field_names.rs | 0 .../issue-4926/struct_with_many_fields.rs | 0 .../source/issue-4984/minimum_example.rs | 0 .../source/issue-4984/multi_line_derive.rs | 0 .../issue-4984/multiple_comments_within.rs | 0 .../tools/rustfmt/tests}/source/issue-5011.rs | 0 .../tools/rustfmt/tests}/source/issue-5023.rs | 0 .../tools/rustfmt/tests}/source/issue-5030.rs | 0 .../multi-line_comment_with_trailing_comma.rs | 0 ...lti-line_comment_without_trailing_comma.rs | 0 ...single-line_comment_with_trailing_comma.rs | 0 ...gle-line_comment_without_trailing_comma.rs | 0 ..._nested_long_comment_wrap_comments_true.rs | 0 ..._long_itemized_block_wrap_comments_true.rs | 0 .../very_long_comment_wrap_comments_true.rs | 0 .../tools/rustfmt/tests}/source/issue-510.rs | 0 .../rustfmt/tests}/source/issue-5136-1.rs | 0 .../rustfmt/tests}/source/issue-5136-2.rs | 0 .../rustfmt/tests}/source/issue-5136-3.rs | 0 .../rustfmt/tests}/source/issue-5136-4.rs | 0 .../rustfmt/tests}/source/issue-5136-5.rs | 0 .../indented_itemized_markdown_blockquote.rs | 0 .../nested_itemized_markdown_blockquote.rs | 0 .../support_itemized_markdown_blockquote.rs | 0 .../tools/rustfmt/tests}/source/issue-5234.rs | 0 .../markdown_header_wrap_comments_false.rs | 0 .../markdown_header_wrap_comments_true.rs | 0 .../tools/rustfmt/tests}/source/issue-5260.rs | 0 .../source/issue-5270/merge_derives_true.rs | 0 .../tools/rustfmt/tests}/source/issue-539.rs | 0 .../tools/rustfmt/tests}/source/issue-5488.rs | 0 .../tools/rustfmt/tests}/source/issue-5586.rs | 0 .../rustfmt/tests}/source/issue-5655/one.rs | 0 .../rustfmt/tests}/source/issue-5655/two.rs | 0 .../tools/rustfmt/tests}/source/issue-5791.rs | 0 ...ute_unexpectedly_wraps_before_max_width.rs | 0 ...ent_unexpectedly_wraps_before_max_width.rs | 0 .../tools/rustfmt/tests}/source/issue-5835.rs | 0 .../tests}/source/issue-5852/default.rs | 0 .../tests}/source/issue-5852/horizontal.rs | 0 .../source/issue-5852/horizontal_vertical.rs | 0 .../tests}/source/issue-5852/issue_example.rs | 0 .../rustfmt/tests}/source/issue-5852/split.rs | 0 .../tests}/source/issue-5852/vertical.rs | 0 .../tools/rustfmt/tests}/source/issue-5935.rs | 0 .../rustfmt/tests}/source/issue-5987/two.rs | 0 .../rustfmt/tests}/source/issue-6059/repro.rs | 0 .../source/issue-6147/case_rustfmt_v1.rs | 0 .../source/issue-6147/case_rustfmt_v2.rs | 0 .../tests}/source/issue-6202/long_pat.rs | 0 .../tools/rustfmt/tests}/source/issue-6243.rs | 0 .../tools/rustfmt/tests}/source/issue-6333.rs | 0 .../tests}/source/issue-6561/trait-fn.rs | 0 .../tests}/source/issue-6561/variadic.rs | 0 .../tests}/source/issue-6607/fn-type.rs | 0 .../tests}/source/issue-6651/custom_width.rs | 0 .../tests}/source/issue-6651/default.rs | 0 .../tools/rustfmt/tests}/source/issue-6788.rs | 0 .../tools/rustfmt/tests}/source/issue-6795.rs | 0 .../tools/rustfmt/tests}/source/issue-6825.rs | 0 .../tools/rustfmt/tests}/source/issue-683.rs | 0 .../tests}/source/issue-6863/empty-stmt.rs | 0 .../tests}/source/issue-6863/fn-stmts.rs | 0 .../tools/rustfmt/tests}/source/issue-6985.rs | 0 .../tools/rustfmt/tests}/source/issue-7011.rs | 0 .../tools/rustfmt/tests}/source/issue-7054.rs | 0 .../tools/rustfmt/tests}/source/issue-7056.rs | 0 .../tools/rustfmt/tests}/source/issue-811.rs | 0 .../tools/rustfmt/tests}/source/issue-850.rs | 0 .../tools/rustfmt/tests}/source/issue-855.rs | 0 .../tools/rustfmt/tests}/source/issue-913.rs | 0 .../tools/rustfmt/tests}/source/issue-945.rs | 0 .../tools/rustfmt/tests}/source/issue-977.rs | 0 .../tools/rustfmt/tests}/source/issue_1306.rs | 0 .../tools/rustfmt/tests}/source/issue_3245.rs | 0 .../tools/rustfmt/tests}/source/issue_3561.rs | 0 .../tools/rustfmt/tests}/source/issue_3839.rs | 0 .../tools/rustfmt/tests}/source/issue_3844.rs | 0 .../tools/rustfmt/tests}/source/issue_3853.rs | 0 .../tools/rustfmt/tests}/source/issue_3868.rs | 0 .../tools/rustfmt/tests}/source/issue_4032.rs | 0 .../tools/rustfmt/tests}/source/issue_4037.rs | 0 .../tools/rustfmt/tests}/source/issue_4057.rs | 0 .../tools/rustfmt/tests}/source/issue_4086.rs | 0 .../tools/rustfmt/tests}/source/issue_4257.rs | 0 .../tools/rustfmt/tests}/source/issue_4322.rs | 0 .../tools/rustfmt/tests}/source/issue_4374.rs | 0 .../tools/rustfmt/tests}/source/issue_4475.rs | 0 .../tools/rustfmt/tests}/source/issue_4528.rs | 0 .../tools/rustfmt/tests}/source/issue_4579.rs | 0 .../tools/rustfmt/tests}/source/issue_4584.rs | 0 .../tools/rustfmt/tests}/source/issue_4636.rs | 0 .../tools/rustfmt/tests}/source/issue_4675.rs | 0 .../tools/rustfmt/tests}/source/issue_4823.rs | 0 .../tools/rustfmt/tests}/source/issue_4854.rs | 0 .../tools/rustfmt/tests}/source/issue_4911.rs | 0 .../tools/rustfmt/tests}/source/issue_4943.rs | 0 .../tools/rustfmt/tests}/source/issue_4954.rs | 0 .../tools/rustfmt/tests}/source/issue_4963.rs | 0 .../tools/rustfmt/tests}/source/issue_5027.rs | 0 .../tools/rustfmt/tests}/source/issue_5086.rs | 0 .../tools/rustfmt/tests}/source/issue_5686.rs | 0 .../tools/rustfmt/tests}/source/issue_5721.rs | 0 .../tools/rustfmt/tests}/source/issue_5730.rs | 0 .../tools/rustfmt/tests}/source/issue_5735.rs | 0 .../tools/rustfmt/tests}/source/issue_5739.rs | 0 .../tools/rustfmt/tests}/source/issue_5882.rs | 0 .../tools/rustfmt/tests}/source/issue_5912.rs | 0 .../source/issue_5920_style_edition_2024.rs | 0 .../source/issue_5920_style_edition_2027.rs | 0 .../source/issue_5982_style_edition_2024.rs | 0 .../source/issue_5982_style_edition_2027.rs | 0 .../tools/rustfmt/tests}/source/issue_6209.rs | 0 .../source/issue_6381_style_edition_2027.rs | 0 .../tools/rustfmt/tests}/source/issue_6558.rs | 0 .../tools/rustfmt/tests}/source/issue_6801.rs | 0 .../source/issue_6831_style_edition_2021.rs | 0 .../source/issue_6831_style_edition_2024.rs | 0 .../source/issue_6831_style_edition_2027.rs | 0 .../source/issue_7003_style_edition_2024.rs | 0 .../source/issue_7003_style_edition_2027.rs | 0 .../tools/rustfmt/tests}/source/issue_7036.rs | 0 .../source/issue_7055_style_edition_2024.rs | 0 .../source/issue_7055_style_edition_2027.rs | 0 .../tests}/source/issue_7088_stable.rs | 0 .../tests}/source/issue_7088_unstable.rs | 0 .../item-brace-style-always-next-line.rs | 0 .../item-brace-style-prefer-same-line.rs | 0 .../item-brace-style-same-line-where.rs | 0 .../tests}/source/itemized-blocks/no_wrap.rs | 0 .../source/itemized-blocks/rewrite_fail.rs | 0 .../tests}/source/itemized-blocks/urls.rs | 0 .../tests}/source/itemized-blocks/wrap.rs | 0 .../rustfmt/tests}/source/label_break.rs | 0 .../rustfmt/tests}/source/large-block.rs | 0 .../tools/rustfmt/tests}/source/large_vec.rs | 0 .../tests}/source/lazy_staic_before_2027.rs | 0 .../rustfmt/tests}/source/lazy_static.rs | 0 .../tools/rustfmt/tests}/source/let_chains.rs | 0 .../tools/rustfmt/tests}/source/let_else.rs | 0 .../rustfmt/tests}/source/let_else_v2.rs | 0 .../tests}/source/long-fn-1/version_one.rs | 0 .../tests}/source/long-fn-1/version_two.rs | 0 .../source/long-match-arms-brace-newline.rs | 0 .../source/long-use-statement-issue-3154.rs | 0 .../tests}/source/long_field_access.rs | 0 .../tools/rustfmt/tests}/source/loop.rs | 0 .../rustfmt/tests}/source/macro_not_expr.rs | 0 .../rustfmt/tests}/source/macro_rules.rs | 0 .../tools/rustfmt/tests}/source/macros.rs | 0 .../source/macros/rewrite-const-item.rs | 0 .../source/markdown-comment-with-options.rs | 0 .../rustfmt/tests}/source/markdown-comment.rs | 0 .../source/match-block-trailing-comma.rs | 0 .../rustfmt/tests}/source/match-flattening.rs | 0 .../source/match-nowrap-trailing-comma.rs | 0 .../rustfmt/tests}/source/match-nowrap.rs | 0 .../tools/rustfmt/tests}/source/match.rs | 0 .../tests}/source/match_overflow_expr.rs | 0 .../tests}/source/max-line-length-in-chars.rs | 0 .../source/merge_imports_true_compat.rs | 0 .../tools/rustfmt/tests}/source/mod-1.rs | 0 .../tools/rustfmt/tests}/source/mod-2.rs | 0 .../rustfmt/tests}/source/mod_skip_child.rs | 0 .../tools/rustfmt/tests}/source/multiple.rs | 0 .../rustfmt/tests}/source/mut-restriction.rs | 0 .../tools/rustfmt/tests}/source/mut_ref.rs | 0 .../rustfmt/tests}/source/negative-impl.rs | 0 .../rustfmt/tests}/source/nested-if-else.rs | 0 .../tests}/source/nested_skipped/mod.rs | 0 .../rustfmt/tests}/source/nestedmod/mod.rs | 0 .../rustfmt/tests}/source/nestedmod/mod2a.rs | 0 .../rustfmt/tests}/source/nestedmod/mod2b.rs | 0 .../rustfmt/tests}/source/nestedmod/mod2c.rs | 0 .../tests}/source/nestedmod/mymod1/mod3a.rs | 0 .../tests}/source/nestedmod/submod2/a.rs | 0 .../tests}/source/nestedmod/submod2/mod.rs | 0 .../tests}/source/no_arg_with_comment.rs | 0 .../tests}/source/no_new_line_beginning.rs | 0 .../tests}/source/non-lifetime-binders.rs | 0 ...on_ascii_numerics_import_asciibetically.rs | 0 .../non_ascii_numerics_import_versionsort.rs | 0 ...es_should_not_imply_format_doc_comments.rs | 0 .../normalize_multiline_doc_attribute.rs | 0 .../rustfmt/tests}/source/one_line_if_v1.rs | 0 .../rustfmt/tests}/source/one_line_if_v2.rs | 0 .../tools/rustfmt/tests}/source/other.rs | 0 .../tools/rustfmt/tests}/source/paren.rs | 0 .../rustfmt/tests}/source/path_clarity/foo.rs | 0 .../tests}/source/path_clarity/foo/bar.rs | 0 .../tools/rustfmt/tests}/source/paths.rs | 0 .../source/pattern-condense-wildcards.rs | 0 .../tools/rustfmt/tests}/source/pattern.rs | 0 .../tools/rustfmt/tests}/source/pin_sugar.rs | 0 .../tests}/source/postfix-match/pf-match.rs | 0 .../tests}/source/precise-capturing.rs | 0 .../preserves_carriage_return_for_unix.rs | 0 .../preserves_carriage_return_for_windows.rs | 0 .../rustfmt/tests}/source/pub-restricted.rs | 0 .../tests}/source/remove_blank_lines.rs | 0 .../tests}/source/reorder-impl-items.rs | 0 .../tests}/source/reorder_modules/A2/mod.rs | 0 .../tests}/source/reorder_modules/ABCD/mod.rs | 0 .../tests}/source/reorder_modules/ZYXW/mod.rs | 0 .../source/reorder_modules/ZYXW_/mod.rs | 0 .../source/reorder_modules/ZY_XW/mod.rs | 0 .../source/reorder_modules/Z_YXW/mod.rs | 0 .../source/reorder_modules/_ZYXW/mod.rs | 0 .../source/reorder_modules/_abcd/mod.rs | 0 .../tests}/source/reorder_modules/a1/mod.rs | 0 .../source/reorder_modules/abcde/mod.rs | 0 .../disabled_style_edition_2024.rs | 0 .../disabled_style_edition_2027.rs | 0 .../enabled_style_edition_2015.rs | 0 .../enabled_style_edition_2024.rs | 0 .../enabled_style_edition_2027.rs | 0 .../tests}/source/reorder_modules/u128/mod.rs | 0 .../tests}/source/reorder_modules/u16/mod.rs | 0 .../tests}/source/reorder_modules/u256/mod.rs | 0 .../tests}/source/reorder_modules/u32/mod.rs | 0 .../tests}/source/reorder_modules/u64/mod.rs | 0 .../tests}/source/reorder_modules/u8/mod.rs | 0 .../source/reorder_modules/u_zzz/mod.rs | 0 .../tests}/source/reorder_modules/ua/mod.rs | 0 .../source/reorder_modules/usize/mod.rs | 0 .../tests}/source/reorder_modules/uz/mod.rs | 0 .../tests}/source/reorder_modules/v0/mod.rs | 0 .../tests}/source/reorder_modules/v00/mod.rs | 0 .../tests}/source/reorder_modules/v000/mod.rs | 0 .../tests}/source/reorder_modules/v001/mod.rs | 0 .../tests}/source/reorder_modules/v009/mod.rs | 0 .../tests}/source/reorder_modules/v00t/mod.rs | 0 .../tests}/source/reorder_modules/v01/mod.rs | 0 .../tests}/source/reorder_modules/v010/mod.rs | 0 .../tests}/source/reorder_modules/v09/mod.rs | 0 .../tests}/source/reorder_modules/v0s/mod.rs | 0 .../tests}/source/reorder_modules/v0u/mod.rs | 0 .../tests}/source/reorder_modules/v1/mod.rs | 0 .../tests}/source/reorder_modules/v10/mod.rs | 0 .../tests}/source/reorder_modules/v9/mod.rs | 0 .../source/reorder_modules/w005s09t/mod.rs | 0 .../source/reorder_modules/w5s009t/mod.rs | 0 .../tests}/source/reorder_modules/x64/mod.rs | 0 .../tests}/source/reorder_modules/x86/mod.rs | 0 .../source/reorder_modules/x86_128/mod.rs | 0 .../source/reorder_modules/x86_32/mod.rs | 0 .../source/reorder_modules/x86_64/mod.rs | 0 .../tests}/source/reorder_modules/x87/mod.rs | 0 .../source/reorder_modules/zyxwv/mod.rs | 0 .../source/reorder_modules_2027/abcde/mod.rs | 0 .../source/reorder_modules_2027/zyxwv/mod.rs | 0 .../tests}/source/single-line-if-else.rs | 0 .../tests}/source/single-line-macro/v1.rs | 0 .../tests}/source/single-line-macro/v2.rs | 0 .../source/skip_macro_invocations/all.rs | 0 .../skip_macro_invocations/all_and_name.rs | 0 .../skip_macro_invocations/config_file.rs | 0 .../source/skip_macro_invocations/empty.rs | 0 .../source/skip_macro_invocations/name.rs | 0 .../skip_macro_invocations/name_unknown.rs | 0 .../source/skip_macro_invocations/names.rs | 0 .../path_qualified_invocation_mismatch.rs | 0 .../path_qualified_match.rs | 0 .../path_qualified_name_mismatch.rs | 0 .../use_alias_examples.rs | 0 .../rustfmt/tests}/source/soft-wrapping.rs | 0 .../tests}/source/space-not-before-newline.rs | 0 .../tests}/source/spaces-around-ranges.rs | 0 .../tools/rustfmt/tests}/source/statements.rs | 0 .../tools/rustfmt/tests}/source/static.rs | 0 .../rustfmt/tests}/source/string-lit-2.rs | 0 .../tools/rustfmt/tests}/source/string-lit.rs | 0 .../tests}/source/string_lit_unicode_ws.rs | 0 .../tests}/source/string_punctuation.rs | 0 .../tests}/source/struct-field-attributes.rs | 0 .../tests}/source/struct_field_doc_comment.rs | 0 .../rustfmt/tests}/source/struct_lits.rs | 0 .../tests}/source/struct_lits_multiline.rs | 0 .../tests}/source/struct_lits_visual.rs | 0 .../source/struct_lits_visual_multiline.rs | 0 .../tests}/source/struct_tuple_visual.rs | 0 .../tools/rustfmt/tests}/source/structs.rs | 0 .../tools/rustfmt/tests}/source/super_let.rs | 0 .../tests}/source/trailing-comma-never.rs | 0 ...-bodies-edition-2021-style-edition-2027.rs | 0 ...-bodies-edition-2024-style-edition-2024.rs | 0 .../source/trailing-semicolon/loop-bodies.rs | 0 .../rustfmt/tests}/source/trailing_commas.rs | 0 .../source/trailing_comments/hard_tabs.rs | 0 .../source/trailing_comments/soft_tabs.rs | 0 .../tools/rustfmt/tests}/source/trait.rs | 0 .../rustfmt/tests}/source/try-conversion.rs | 0 .../tools/rustfmt/tests}/source/try_block.rs | 0 .../tests}/source/try_blocks_heterogeneous.rs | 0 .../tools/rustfmt/tests}/source/tuple.rs | 0 .../tools/rustfmt/tests}/source/tuple_v2.rs | 0 .../type-alias-where-clauses-with-comments.rs | 0 .../tests}/source/type-alias-where-clauses.rs | 0 .../tools/rustfmt/tests}/source/type.rs | 0 .../tools/rustfmt/tests}/source/type_alias.rs | 0 .../tools/rustfmt/tests}/source/unicode.rs | 0 .../tools/rustfmt/tests}/source/unions.rs | 0 .../rustfmt/tests}/source/unsafe-binders.rs | 0 .../rustfmt/tests}/source/unsafe-field.rs | 0 .../tools/rustfmt/tests}/source/unsafe-mod.rs | 0 .../use-identifier-order-mixed-edition.rs | 0 .../tests}/source/use-identifier-order.rs | 0 .../tools/rustfmt/tests}/source/visibility.rs | 0 .../rustfmt/tests}/source/visual-fn-type.rs | 0 .../rustfmt/tests}/source/where-clause-rfc.rs | 0 .../rustfmt/tests}/source/where-clause.rs | 0 .../rustfmt/tests}/source/width-heuristics.rs | 0 ...ts_should_not_imply_format_doc_comments.rs | 0 .../tools/rustfmt/tests}/target/5131_crate.rs | 0 .../rustfmt/tests}/target/5131_module.rs | 0 .../tools/rustfmt/tests}/target/5131_one.rs | 0 .../inner-block-doc-comment.rs | 0 .../naive-outer-block-comment.rs | 0 .../outer-block-doc-comment.rs | 0 .../rustc-sample-1.rs | 0 .../rustc-sample-2.rs | 0 .../target/alignment_2633/block_style.rs | 0 .../alignment_2633/horizontal_tactic.rs | 0 .../target/alignment_2633/visual_style.rs | 0 .../rustfmt/tests}/target/array_comment.rs | 0 .../arrow_in_single_comment.rs | 0 .../arrow_in_comments/multiple_arrows.rs | 0 .../tools/rustfmt/tests}/target/assignment.rs | 0 .../rustfmt/tests}/target/associated-items.rs | 0 .../associated-types-bounds-wrapping.rs | 0 .../tests}/target/associated_type_bounds.rs | 0 .../tests}/target/associated_type_defaults.rs | 0 .../rustfmt/tests}/target/async_block.rs | 0 .../rustfmt/tests}/target/async_closure.rs | 0 .../tools/rustfmt/tests}/target/async_fn.rs | 0 .../tools/rustfmt/tests}/target/asyncness.rs | 0 .../tests}/target/attrib-block-expr.rs | 0 .../tests}/target/attrib-extern-crate.rs | 0 .../tools/rustfmt/tests}/target/attrib.rs | 0 .../rustfmt/tests}/target/big-impl-block.rs | 0 .../rustfmt/tests}/target/big-impl-visual.rs | 0 .../rustfmt/tests}/target/binary-expr.rs | 0 .../target/binop-separator-back/bitwise.rs | 0 .../target/binop-separator-back/comp.rs | 0 .../target/binop-separator-back/logic.rs | 0 .../target/binop-separator-back/math.rs | 0 .../target/binop-separator-back/patterns.rs | 0 .../target/binop-separator-back/range.rs | 0 .../tests}/target/break-and-continue.rs | 0 .../tools/rustfmt/tests}/target/catch.rs | 0 .../tests}/target/cfg_attribute_in_where.rs | 0 .../target/cfg_if/detect/arch/aarch64.rs | 0 .../tests}/target/cfg_if/detect/arch/arm.rs | 0 .../tests}/target/cfg_if/detect/arch/mips.rs | 0 .../target/cfg_if/detect/arch/mips64.rs | 0 .../target/cfg_if/detect/arch/powerpc.rs | 0 .../target/cfg_if/detect/arch/powerpc64.rs | 0 .../tests}/target/cfg_if/detect/arch/x86.rs | 0 .../tests}/target/cfg_if/detect/bit.rs | 0 .../tests}/target/cfg_if/detect/cache.rs | 0 .../target/cfg_if/detect/error_macros.rs | 0 .../tests}/target/cfg_if/detect/mod.rs | 0 .../tests}/target/cfg_if/detect/os/aarch64.rs | 0 .../cfg_if/detect/os/freebsd/aarch64.rs | 0 .../target/cfg_if/detect/os/freebsd/arm.rs | 0 .../target/cfg_if/detect/os/freebsd/auxvec.rs | 0 .../target/cfg_if/detect/os/freebsd/mod.rs | 0 .../cfg_if/detect/os/freebsd/powerpc.rs | 0 .../target/cfg_if/detect/os/linux/aarch64.rs | 0 .../target/cfg_if/detect/os/linux/arm.rs | 0 .../target/cfg_if/detect/os/linux/auxvec.rs | 0 .../target/cfg_if/detect/os/linux/cpuinfo.rs | 0 .../target/cfg_if/detect/os/linux/mips.rs | 0 .../target/cfg_if/detect/os/linux/mod.rs | 0 .../target/cfg_if/detect/os/linux/powerpc.rs | 0 .../tests}/target/cfg_if/detect/os/other.rs | 0 .../tests}/target/cfg_if/detect/os/x86.rs | 0 .../tools/rustfmt/tests}/target/cfg_if/lib.rs | 0 .../tools/rustfmt/tests}/target/cfg_if/mod.rs | 0 .../rustfmt/tests}/target/cfg_mod/bar.rs | 0 .../target/cfg_mod/dir/dir1/dir2/wasm32.rs | 0 .../target/cfg_mod/dir/dir1/dir3/wasm32.rs | 0 .../rustfmt/tests}/target/cfg_mod/foo.rs | 0 .../rustfmt/tests}/target/cfg_mod/mod.rs | 0 .../rustfmt/tests}/target/cfg_mod/other.rs | 0 .../rustfmt/tests}/target/cfg_mod/wasm32.rs | 0 .../tools/rustfmt/tests}/target/cfg_select.rs | 0 .../target/cfg_select/format_me_please_1.rs | 0 .../target/cfg_select/format_me_please_2.rs | 0 .../target/cfg_select/format_me_please_3.rs | 0 .../target/cfg_select/format_me_please_4.rs | 0 .../rustfmt/tests}/target/cfg_select/lib.rs | 0 .../rustfmt/tests}/target/cfg_select/lib2.rs | 0 .../tests}/target/cfg_select_stable.rs | 0 .../target/chain_yield_with_comments.rs | 0 .../rustfmt/tests}/target/chains-visual.rs | 0 .../tools/rustfmt/tests}/target/chains.rs | 0 .../tests}/target/chains_with_comment.rs | 0 .../target/closure-block-inside-macro.rs | 0 .../tests}/target/closure-block-labels.rs | 0 .../tools/rustfmt/tests}/target/closure.rs | 0 .../tests}/target/comment-inside-const.rs | 0 .../tests}/target/comment-not-disappear.rs | 0 .../tools/rustfmt/tests}/target/comment.rs | 0 .../tools/rustfmt/tests}/target/comment2.rs | 0 .../tools/rustfmt/tests}/target/comment3.rs | 0 .../tools/rustfmt/tests}/target/comment4.rs | 0 .../tools/rustfmt/tests}/target/comment5.rs | 0 .../tools/rustfmt/tests}/target/comment6.rs | 0 .../tests}/target/comment_crlf_newline.rs | 0 .../rustfmt/tests}/target/comments-fn.rs | 0 .../comments-in-lists/format-doc-comments.rs | 0 .../comments-in-lists/wrap-comments-false.rs | 0 .../wrap-comments-not-normalized.rs | 0 .../comments-in-lists/wrap-comments-true.rs | 0 .../rustfmt/tests}/target/comments_unicode.rs | 0 .../configs/blank_lines_lower_bound/1.rs | 0 .../configs/blank_lines_upper_bound/1.rs | 0 .../configs/blank_lines_upper_bound/2.rs | 0 .../brace_style/fn_always_next_line.rs | 0 .../brace_style/fn_prefer_same_line.rs | 0 .../configs/brace_style/fn_same_line_where.rs | 0 .../brace_style/item_always_next_line.rs | 0 .../brace_style/item_prefer_same_line.rs | 0 .../brace_style/item_same_line_where.rs | 0 .../target/configs/chain_width/always.rs | 0 .../target/configs/chain_width/small.rs | 0 .../tests}/target/configs/chain_width/tiny.rs | 0 .../configs/combine_control_expr/false.rs | 0 .../configs/combine_control_expr/true.rs | 0 .../target/configs/comment_width/above.rs | 0 .../target/configs/comment_width/below.rs | 0 .../target/configs/comment_width/ignore.rs | 0 .../condense_wildcard_suffixes/false.rs | 0 .../condense_wildcard_suffixes/true.rs | 0 .../control_brace_style/always_next_line.rs | 0 .../control_brace_style/always_same_line.rs | 0 .../control_brace_style/closing_next_line.rs | 0 .../configs/disable_all_formatting/false.rs | 0 .../configs/disable_all_formatting/true.rs | 0 .../default-to-max.rs | 0 .../max-to-default.rs | 0 .../doc_comment_code_block_width/100.rs | 0 .../100_greater_max_width.rs | 0 .../doc_comment_code_block_width/50.rs | 0 .../configs/empty_item_single_line/false.rs | 0 .../configs/empty_item_single_line/true.rs | 0 .../enum_discrim_align_threshold/40.rs | 0 .../configs/error_on_line_overflow/false.rs | 0 .../configs/error_on_unformatted/false.rs | 0 .../float_literal_trailing_zero/always.rs | 0 .../always_spaces_around_ranges_true.rs | 0 .../if-no-postfix.rs | 0 ...if-no-postfix_spaces_around_ranges_true.rs | 0 .../float_literal_trailing_zero/never.rs | 0 .../never_spaces_around_ranges_true.rs | 0 .../float_literal_trailing_zero/preserve.rs | 0 .../preserve_spaces_around_ranges_true.rs | 0 .../configs/fn_params_layout/compressed.rs | 0 .../target/configs/fn_params_layout/tall.rs | 0 .../configs/fn_params_layout/vertical.rs | 0 .../fn_params_layout/vertical_style_2027.rs | 0 .../target/configs/fn_single_line/false.rs | 0 .../target/configs/fn_single_line/true.rs | 0 .../configs/force_explicit_abi/false.rs | 0 .../target/configs/force_explicit_abi/true.rs | 0 .../configs/force_multiline_block/false.rs | 0 .../configs/force_multiline_block/true.rs | 0 .../configs/format_generated_files/false.rs | 0 ...with_generated_marker_line_search_limit.rs | 0 .../false_with_marker_out_scope_size.rs | 0 .../false_with_zero_search_limit.rs | 0 .../configs/format_generated_files/true.rs | 0 .../true_with_marker_in_scope_size.rs | 0 .../true_with_marker_not_in_header.rs | 0 .../configs/format_macro_bodies/false.rs | 0 .../configs/format_macro_bodies/true.rs | 0 .../configs/format_macro_matchers/false.rs | 0 .../configs/format_macro_matchers/true.rs | 0 .../target/configs/format_strings/false.rs | 0 .../target/configs/format_strings/true.rs | 0 .../group_imports/One-merge_imports.rs | 0 .../configs/group_imports/One-nested.rs | 0 .../configs/group_imports/One-no_reorder.rs | 0 .../target/configs/group_imports/One.rs | 0 .../StdExternalCrate-merge_imports.rs | 0 .../group_imports/StdExternalCrate-nested.rs | 0 .../StdExternalCrate-no_reorder.rs | 0 .../StdExternalCrate-non_consecutive.rs | 0 .../configs/group_imports/StdExternalCrate.rs | 0 .../tests}/target/configs/hard_tabs/false.rs | 0 .../tests}/target/configs/hard_tabs/true.rs | 0 .../hex_literal_case/hex_literal_lower.rs | 0 .../hex_literal_case/hex_literal_preserve.rs | 0 .../hex_literal_case/hex_literal_upper.rs | 0 .../target/configs/imports_indent/block.rs | 0 .../imports_layout/horizontal_vertical.rs | 0 .../configs/imports_layout/merge_mixed.rs | 0 .../target/configs/imports_layout/mixed.rs | 0 .../target/configs/indent_style/block_args.rs | 0 .../configs/indent_style/block_array.rs | 0 .../target/configs/indent_style/block_call.rs | 0 .../configs/indent_style/block_chain.rs | 0 .../configs/indent_style/block_generic.rs | 0 .../configs/indent_style/block_struct_lit.rs | 0 .../indent_style/block_tab_spaces_call.rs | 0 .../block_trailing_comma_call/one.rs | 0 .../block_trailing_comma_call/two.rs | 0 .../configs/indent_style/block_where_pred.rs | 0 .../target/configs/indent_style/default.rs | 0 .../configs/indent_style/rfc_control.rs | 0 .../target/configs/indent_style/rfc_where.rs | 0 .../configs/indent_style/visual_args.rs | 0 .../configs/indent_style/visual_array.rs | 0 .../configs/indent_style/visual_call.rs | 0 .../configs/indent_style/visual_chain.rs | 0 .../configs/indent_style/visual_generics.rs | 0 .../configs/indent_style/visual_struct_lit.rs | 0 .../indent_style/visual_trailing_comma.rs | 0 .../configs/indent_style/visual_where_pred.rs | 0 .../target/configs/match_arm_blocks/false.rs | 0 .../target/configs/match_arm_blocks/true.rs | 0 .../target/configs/match_arm_indent/attrs.rs | 0 .../target/configs/match_arm_indent/guards.rs | 0 .../configs/match_arm_indent/leading_pipes.rs | 0 .../target/configs/match_arm_indent/nested.rs | 0 .../configs/match_arm_indent/noindent-tabs.rs | 0 .../configs/match_arm_indent/noindent.rs | 0 .../configs/match_arm_indent/patterns.rs | 0 .../configs/match_arm_indent/unindent.rs | 0 .../configs/match_arm_leading_pipes/always.rs | 0 .../configs/match_arm_leading_pipes/never.rs | 0 .../match_arm_leading_pipes/preserve.rs | 0 .../match_block_trailing_comma/false.rs | 0 .../match_block_trailing_comma/true.rs | 0 .../target/configs/merge_derives/true.rs | 0 .../configs/normalize_comments/false.rs | 0 .../target/configs/normalize_comments/true.rs | 0 .../configs/normalize_doc_attributes/false.rs | 0 .../configs/normalize_doc_attributes/true.rs | 0 .../remove_nested_parens.rs | 0 .../configs/reorder_impl_items/false.rs | 0 .../target/configs/reorder_impl_items/true.rs | 0 .../target/configs/reorder_imports/false.rs | 0 .../target/configs/reorder_imports/true.rs | 0 .../configs/reorder_modules/dolor/mod.rs | 0 .../target/configs/reorder_modules/false.rs | 0 .../configs/reorder_modules/ipsum/mod.rs | 0 .../configs/reorder_modules/lorem/mod.rs | 0 .../target/configs/reorder_modules/sit/mod.rs | 0 .../target/configs/reorder_modules/true.rs | 0 .../short_array_element_width_threshold/10.rs | 0 .../short_array_element_width_threshold/20.rs | 0 .../greater_than_max_width.rs | 0 .../single_line_let_else_max_width/100.rs | 0 .../single_line_let_else_max_width/50.rs | 0 .../single_line_let_else_max_width/zero.rs | 0 .../target/configs/skip_children/foo/mod.rs | 0 .../target/configs/skip_children/true.rs | 0 .../target/configs/space_before_colon/true.rs | 0 .../configs/spaces_around_ranges/false.rs | 0 .../configs/spaces_around_ranges/true.rs | 0 .../struct_field_align_threshold/20.rs | 0 .../configs/struct_lit_single_line/false.rs | 0 .../style_edition/overflow_delim_expr_2015.rs | 0 .../style_edition/overflow_delim_expr_2024.rs | 0 .../tests}/target/configs/tab_spaces/2.rs | 0 .../tests}/target/configs/tab_spaces/4.rs | 0 .../target/configs/trailing_comma/always.rs | 0 .../target/configs/trailing_comma/never.rs | 0 .../target/configs/trailing_comma/vertical.rs | 0 .../configs/trailing_semicolon/false.rs | 0 .../target/configs/trailing_semicolon/true.rs | 0 .../type_punctuation_density/compressed.rs | 0 .../configs/type_punctuation_density/wide.rs | 0 .../configs/use_field_init_shorthand/false.rs | 0 .../configs/use_field_init_shorthand/true.rs | 0 .../configs/use_small_heuristics/default.rs | 0 .../configs/use_small_heuristics/max.rs | 0 .../configs/use_small_heuristics/off.rs | 0 .../target/configs/use_try_shorthand/false.rs | 0 .../target/configs/use_try_shorthand/true.rs | 0 .../tests}/target/configs/version/mapped.rs | 0 .../true-with-brace-style.rs | 0 .../target/configs/where_single_line/true.rs | 0 .../target/configs/wrap_comments/false.rs | 0 .../target/configs/wrap_comments/true.rs | 0 .../tests}/target/const-block-items.rs | 0 .../rustfmt/tests}/target/const-generics.rs | 0 .../rustfmt/tests}/target/const_generics.rs | 0 .../rustfmt/tests}/target/const_trait.rs | 0 .../control-brace-style-always-next-line.rs | 0 .../control-brace-style-always-same-line.rs | 0 .../tests}/target/default-field-values.rs | 0 .../rustfmt/tests}/target/direct_const_arg.rs | 0 .../tools/rustfmt/tests}/target/doc-attrib.rs | 0 .../tests}/target/doc-comment-with-example.rs | 0 .../tests}/target/doc-of-generic-item.rs | 0 .../tools/rustfmt/tests}/target/doc.rs | 0 .../tools/rustfmt/tests}/target/dyn_trait.rs | 0 .../else-if-brace-style-always-next-line.rs | 0 .../else-if-brace-style-always-same-line.rs | 0 .../else-if-brace-style-closing-next-line.rs | 0 .../target/empty-item-single-line-false.rs | 0 ...mpty-tuple-no-conversion-to-unit-struct.rs | 0 .../tools/rustfmt/tests}/target/empty_file.rs | 0 .../tools/rustfmt/tests}/target/enum.rs | 0 .../rustfmt/tests}/target/ergonomic_clones.rs | 0 .../rustfmt/tests}/target/existential_type.rs | 0 .../tools/rustfmt/tests}/target/expr-block.rs | 0 .../tests}/target/expr-overflow-delimited.rs | 0 .../tools/rustfmt/tests}/target/expr.rs | 0 .../rustfmt/tests}/target/extern-rust.rs | 0 .../tools/rustfmt/tests}/target/extern.rs | 0 .../tests}/target/extern_not_explicit.rs | 0 .../tests}/target/field-representing-types.rs | 0 .../rustfmt/tests}/target/file-lines-1.rs | 0 .../rustfmt/tests}/target/file-lines-2.rs | 0 .../rustfmt/tests}/target/file-lines-3.rs | 0 .../rustfmt/tests}/target/file-lines-4.rs | 0 .../rustfmt/tests}/target/file-lines-5.rs | 0 .../rustfmt/tests}/target/file-lines-6.rs | 0 .../rustfmt/tests}/target/file-lines-7.rs | 0 .../rustfmt/tests}/target/file-lines-item.rs | 0 .../tools/rustfmt/tests}/target/final-kw.rs | 0 .../target/fn-args-with-last-line-comment.rs | 0 .../rustfmt/tests}/target/fn-custom-2.rs | 0 .../rustfmt/tests}/target/fn-custom-3.rs | 0 .../rustfmt/tests}/target/fn-custom-4.rs | 0 .../rustfmt/tests}/target/fn-custom-6.rs | 0 .../rustfmt/tests}/target/fn-custom-7.rs | 0 .../rustfmt/tests}/target/fn-custom-8.rs | 0 .../tools/rustfmt/tests}/target/fn-custom.rs | 0 .../tests}/target/fn-param-attributes.rs | 0 .../tools/rustfmt/tests}/target/fn-simple.rs | 0 .../target/fn-single-line/version_one.rs | 0 .../target/fn-single-line/version_two.rs | 0 .../tools/rustfmt/tests}/target/fn-ty.rs | 0 .../tools/rustfmt/tests}/target/fn.rs | 0 .../tests}/target/fn_args_indent-block.rs | 0 .../tests}/target/fn_args_layout-vertical.rs | 0 .../tools/rustfmt/tests}/target/fn_once.rs | 0 .../tests}/target/format_strings/issue-202.rs | 0 .../target/format_strings/issue-2833.rs | 0 .../target/format_strings/issue-3263.rs | 0 .../tests}/target/format_strings/issue-687.rs | 0 .../tests}/target/format_strings/issue564.rs | 0 .../tests}/target/frontmatter_compact.rs | 0 .../tests}/target/frontmatter_escaped.rs | 0 .../tests}/target/frontmatter_spaced.rs | 0 .../rustfmt/tests}/target/generic_static.rs | 0 .../rustfmt/tests}/target/guard_patterns.rs | 0 .../tools/rustfmt/tests}/target/hard-tabs.rs | 0 .../tools/rustfmt/tests}/target/hello.rs | 0 .../tests}/target/if_while_or_patterns.rs | 0 .../tests}/target/immovable_coroutines.rs | 0 .../rustfmt/tests}/target/impl-restriction.rs | 0 .../tools/rustfmt/tests}/target/impl.rs | 0 .../tools/rustfmt/tests}/target/impls.rs | 0 .../target/imports/import-fencepost-length.rs | 0 .../target/imports/imports-impl-only-use.rs | 0 .../imports-reorder-lines-and-items.rs | 0 .../target/imports/imports-reorder-lines.rs | 0 .../tests}/target/imports/imports-reorder.rs | 0 .../rustfmt/tests}/target/imports/imports.rs | 0 .../target/imports/imports_2021_edition.rs | 0 .../target/imports/imports_block_indent.rs | 0 .../imports/imports_granularity_crate.rs | 0 .../imports_granularity_default-with-dups.rs | 0 ...m-with-dups-StdExternalCrate-no-reorder.rs | 0 .../imports_granularity_item-with-dups.rs | 0 .../imports/imports_granularity_item.rs | 0 .../imports/imports_granularity_module.rs | 0 .../target/imports/imports_granularity_one.rs | 0 .../imports_raw_identifiers/version_One.rs | 0 .../imports_raw_identifiers/version_Two.rs | 0 .../rustfmt/tests}/target/indented-impl.rs | 0 .../tests}/target/inner-module-path/b.rs | 0 .../tests}/target/inner-module-path/c/d.rs | 0 .../tests}/target/inner-module-path/lib.rs | 0 .../invalid-rust-code-in-doc-comment.rs | 0 .../tools/rustfmt/tests}/target/issue-1021.rs | 0 .../tools/rustfmt/tests}/target/issue-1049.rs | 0 .../tools/rustfmt/tests}/target/issue-1055.rs | 0 .../tools/rustfmt/tests}/target/issue-1096.rs | 0 .../tools/rustfmt/tests}/target/issue-1111.rs | 0 .../tools/rustfmt/tests}/target/issue-1113.rs | 0 .../tools/rustfmt/tests}/target/issue-1120.rs | 0 .../tools/rustfmt/tests}/target/issue-1124.rs | 0 .../tools/rustfmt/tests}/target/issue-1127.rs | 0 .../tools/rustfmt/tests}/target/issue-1158.rs | 0 .../tools/rustfmt/tests}/target/issue-1177.rs | 0 .../tools/rustfmt/tests}/target/issue-1192.rs | 0 .../rustfmt/tests}/target/issue-1210/a.rs | 0 .../rustfmt/tests}/target/issue-1210/b.rs | 0 .../rustfmt/tests}/target/issue-1210/c.rs | 0 .../rustfmt/tests}/target/issue-1210/d.rs | 0 .../rustfmt/tests}/target/issue-1210/e.rs | 0 .../tools/rustfmt/tests}/target/issue-1211.rs | 0 .../tools/rustfmt/tests}/target/issue-1214.rs | 0 .../tools/rustfmt/tests}/target/issue-1216.rs | 0 .../tools/rustfmt/tests}/target/issue-1239.rs | 0 .../tools/rustfmt/tests}/target/issue-1247.rs | 0 .../tools/rustfmt/tests}/target/issue-1255.rs | 0 .../tools/rustfmt/tests}/target/issue-1278.rs | 0 .../tools/rustfmt/tests}/target/issue-1350.rs | 0 .../tools/rustfmt/tests}/target/issue-1366.rs | 0 .../tools/rustfmt/tests}/target/issue-1397.rs | 0 .../tools/rustfmt/tests}/target/issue-1468.rs | 0 .../tools/rustfmt/tests}/target/issue-1598.rs | 0 .../tools/rustfmt/tests}/target/issue-1624.rs | 0 .../tools/rustfmt/tests}/target/issue-1681.rs | 0 .../tools/rustfmt/tests}/target/issue-1693.rs | 0 .../tools/rustfmt/tests}/target/issue-1703.rs | 0 .../tools/rustfmt/tests}/target/issue-1800.rs | 0 .../tools/rustfmt/tests}/target/issue-1802.rs | 0 .../tools/rustfmt/tests}/target/issue-1824.rs | 0 .../tools/rustfmt/tests}/target/issue-1914.rs | 0 .../tools/rustfmt/tests}/target/issue-2025.rs | 0 .../tools/rustfmt/tests}/target/issue-2103.rs | 0 .../tools/rustfmt/tests}/target/issue-2111.rs | 0 .../tools/rustfmt/tests}/target/issue-2123.rs | 0 .../tools/rustfmt/tests}/target/issue-2164.rs | 0 .../rustfmt/tests}/target/issue-2179/one.rs | 0 .../rustfmt/tests}/target/issue-2179/two.rs | 0 .../tools/rustfmt/tests}/target/issue-2197.rs | 0 .../tools/rustfmt/tests}/target/issue-2256.rs | 0 .../tools/rustfmt/tests}/target/issue-2324.rs | 0 .../tools/rustfmt/tests}/target/issue-2329.rs | 0 .../tools/rustfmt/tests}/target/issue-2342.rs | 0 .../tools/rustfmt/tests}/target/issue-2346.rs | 0 .../tools/rustfmt/tests}/target/issue-2401.rs | 0 .../tools/rustfmt/tests}/target/issue-2445.rs | 0 .../tools/rustfmt/tests}/target/issue-2446.rs | 0 .../tools/rustfmt/tests}/target/issue-2479.rs | 0 .../rustfmt/tests}/target/issue-2482/a.rs | 0 .../rustfmt/tests}/target/issue-2482/b.rs | 0 .../rustfmt/tests}/target/issue-2482/c.rs | 0 .../tools/rustfmt/tests}/target/issue-2496.rs | 0 .../tools/rustfmt/tests}/target/issue-2520.rs | 0 .../tools/rustfmt/tests}/target/issue-2523.rs | 0 .../tools/rustfmt/tests}/target/issue-2526.rs | 0 .../issue-2534/format_macro_matchers_false.rs | 0 .../issue-2534/format_macro_matchers_true.rs | 0 .../tools/rustfmt/tests}/target/issue-2551.rs | 0 .../tools/rustfmt/tests}/target/issue-2554.rs | 0 .../tools/rustfmt/tests}/target/issue-2582.rs | 0 .../tools/rustfmt/tests}/target/issue-2641.rs | 0 .../tools/rustfmt/tests}/target/issue-2644.rs | 0 .../target/issue-2673-nonmodrs-mods/foo.rs | 0 .../issue-2673-nonmodrs-mods/foo/bar.rs | 0 .../target/issue-2673-nonmodrs-mods/lib.rs | 0 .../tools/rustfmt/tests}/target/issue-2728.rs | 0 .../tools/rustfmt/tests}/target/issue-2759.rs | 0 .../tools/rustfmt/tests}/target/issue-2761.rs | 0 .../tools/rustfmt/tests}/target/issue-2781.rs | 0 .../tools/rustfmt/tests}/target/issue-2794.rs | 0 .../tools/rustfmt/tests}/target/issue-2810.rs | 0 .../tools/rustfmt/tests}/target/issue-2835.rs | 0 .../tools/rustfmt/tests}/target/issue-2863.rs | 0 .../tools/rustfmt/tests}/target/issue-2869.rs | 0 .../tools/rustfmt/tests}/target/issue-2896.rs | 0 .../tools/rustfmt/tests}/target/issue-2916.rs | 0 .../tests}/target/issue-2917/minimal.rs | 0 .../tests}/target/issue-2917/packed_simd.rs | 0 .../tools/rustfmt/tests}/target/issue-2922.rs | 0 .../rustfmt/tests}/target/issue-2927-2.rs | 0 .../tools/rustfmt/tests}/target/issue-2927.rs | 0 .../tools/rustfmt/tests}/target/issue-2930.rs | 0 .../tools/rustfmt/tests}/target/issue-2936.rs | 0 .../tools/rustfmt/tests}/target/issue-2941.rs | 0 .../tools/rustfmt/tests}/target/issue-2955.rs | 0 .../tools/rustfmt/tests}/target/issue-2973.rs | 0 .../tools/rustfmt/tests}/target/issue-2976.rs | 0 .../rustfmt/tests}/target/issue-2977/block.rs | 0 .../rustfmt/tests}/target/issue-2977/impl.rs | 0 .../rustfmt/tests}/target/issue-2977/item.rs | 0 .../rustfmt/tests}/target/issue-2977/trait.rs | 0 .../tools/rustfmt/tests}/target/issue-2985.rs | 0 .../tools/rustfmt/tests}/target/issue-2995.rs | 0 .../tools/rustfmt/tests}/target/issue-3029.rs | 0 .../tools/rustfmt/tests}/target/issue-3032.rs | 0 .../tools/rustfmt/tests}/target/issue-3038.rs | 0 .../tools/rustfmt/tests}/target/issue-3043.rs | 0 .../tools/rustfmt/tests}/target/issue-3049.rs | 0 .../tests}/target/issue-3055/backtick.rs | 0 .../target/issue-3055/empty-code-block.rs | 0 .../tests}/target/issue-3055/original.rs | 0 .../tools/rustfmt/tests}/target/issue-3059.rs | 0 .../tools/rustfmt/tests}/target/issue-3066.rs | 0 .../tools/rustfmt/tests}/target/issue-3105.rs | 0 .../tools/rustfmt/tests}/target/issue-3118.rs | 0 .../tools/rustfmt/tests}/target/issue-3124.rs | 0 .../tools/rustfmt/tests}/target/issue-3131.rs | 0 .../tools/rustfmt/tests}/target/issue-3132.rs | 0 .../tools/rustfmt/tests}/target/issue-3153.rs | 0 .../tools/rustfmt/tests}/target/issue-3158.rs | 0 .../tools/rustfmt/tests}/target/issue-3182.rs | 0 .../tools/rustfmt/tests}/target/issue-3184.rs | 0 .../tools/rustfmt/tests}/target/issue-3194.rs | 0 .../tools/rustfmt/tests}/target/issue-3198.rs | 0 .../tests}/target/issue-3213/version_one.rs | 0 .../tests}/target/issue-3213/version_two.rs | 0 .../tools/rustfmt/tests}/target/issue-3217.rs | 0 .../tools/rustfmt/tests}/target/issue-3224.rs | 0 .../rustfmt/tests}/target/issue-3227/one.rs | 0 .../rustfmt/tests}/target/issue-3227/two.rs | 0 .../tools/rustfmt/tests}/target/issue-3234.rs | 0 .../tools/rustfmt/tests}/target/issue-3241.rs | 0 .../rustfmt/tests}/target/issue-3253/bar.rs | 0 .../rustfmt/tests}/target/issue-3253/foo.rs | 0 .../rustfmt/tests}/target/issue-3253/lib.rs | 0 .../tests}/target/issue-3253/paths/bar_foo.rs | 0 .../target/issue-3253/paths/excluded.rs | 0 .../tests}/target/issue-3253/paths/foo_bar.rs | 0 .../tools/rustfmt/tests}/target/issue-3265.rs | 0 .../rustfmt/tests}/target/issue-3270/one.rs | 0 .../rustfmt/tests}/target/issue-3270/two.rs | 0 .../rustfmt/tests}/target/issue-3270/wrap.rs | 0 .../rustfmt/tests}/target/issue-3272/v1.rs | 0 .../rustfmt/tests}/target/issue-3272/v2.rs | 0 .../tests}/target/issue-3278/version_one.rs | 0 .../tests}/target/issue-3278/version_two.rs | 0 .../rustfmt/tests}/target/issue-3295/two.rs | 0 .../tools/rustfmt/tests}/target/issue-3302.rs | 0 .../tools/rustfmt/tests}/target/issue-3304.rs | 0 .../tools/rustfmt/tests}/target/issue-3314.rs | 0 .../tools/rustfmt/tests}/target/issue-3343.rs | 0 .../tools/rustfmt/tests}/target/issue-3423.rs | 0 .../rustfmt/tests}/target/issue-3434/lib.rs | 0 .../tests}/target/issue-3434/no_entry.rs | 0 .../target/issue-3434/not_skip_macro.rs | 0 .../tools/rustfmt/tests}/target/issue-3442.rs | 0 .../tools/rustfmt/tests}/target/issue-3465.rs | 0 .../rustfmt/tests}/target/issue-3494/crlf.rs | 0 .../rustfmt/tests}/target/issue-3494/lf.rs | 0 .../tools/rustfmt/tests}/target/issue-3499.rs | 0 .../tools/rustfmt/tests}/target/issue-3508.rs | 0 .../tools/rustfmt/tests}/target/issue-3515.rs | 0 .../tools/rustfmt/tests}/target/issue-3532.rs | 0 .../tools/rustfmt/tests}/target/issue-3539.rs | 0 .../tools/rustfmt/tests}/target/issue-3554.rs | 0 .../tools/rustfmt/tests}/target/issue-3567.rs | 0 .../tools/rustfmt/tests}/target/issue-3568.rs | 0 .../tests}/target/issue-3585/extern_crate.rs | 0 .../issue-3585/reorder_imports_disabled.rs | 0 .../issue-3585/reorder_imports_enabled.rs | 0 .../rustfmt/tests}/target/issue-3585/use.rs | 0 .../tools/rustfmt/tests}/target/issue-3595.rs | 0 .../tools/rustfmt/tests}/target/issue-3601.rs | 0 .../tests}/target/issue-3614/version_one.rs | 0 .../tests}/target/issue-3614/version_two.rs | 0 .../tools/rustfmt/tests}/target/issue-3636.rs | 0 .../tools/rustfmt/tests}/target/issue-3639.rs | 0 .../tools/rustfmt/tests}/target/issue-3645.rs | 0 .../tools/rustfmt/tests}/target/issue-3651.rs | 0 .../rustfmt/tests}/target/issue-3665/lib.rs | 0 .../target/issue-3665/not_skip_attribute.rs | 0 .../tests}/target/issue-3665/sub_mod.rs | 0 .../tools/rustfmt/tests}/target/issue-3672.rs | 0 .../tools/rustfmt/tests}/target/issue-3675.rs | 0 .../rustfmt/tests}/target/issue-3701/one.rs | 0 .../rustfmt/tests}/target/issue-3701/two.rs | 0 .../tools/rustfmt/tests}/target/issue-3709.rs | 0 .../tools/rustfmt/tests}/target/issue-3711.rs | 0 .../tools/rustfmt/tests}/target/issue-3717.rs | 0 .../tools/rustfmt/tests}/target/issue-3718.rs | 0 .../tools/rustfmt/tests}/target/issue-3740.rs | 0 .../tools/rustfmt/tests}/target/issue-3741.rs | 0 .../tools/rustfmt/tests}/target/issue-3750.rs | 0 .../tools/rustfmt/tests}/target/issue-3751.rs | 0 .../tools/rustfmt/tests}/target/issue-3759.rs | 0 .../rustfmt/tests}/target/issue-3779/ice.rs | 0 .../rustfmt/tests}/target/issue-3779/lib.rs | 0 .../tools/rustfmt/tests}/target/issue-3786.rs | 0 .../tools/rustfmt/tests}/target/issue-3787.rs | 0 .../tools/rustfmt/tests}/target/issue-3805.rs | 0 .../tools/rustfmt/tests}/target/issue-3815.rs | 0 .../issue-3840/version-one_hard-tabs.rs | 0 .../issue-3840/version-one_soft-tabs.rs | 0 .../issue-3840/version-two_hard-tabs.rs | 0 .../issue-3840/version-two_soft-tabs.rs | 0 .../tools/rustfmt/tests}/target/issue-3845.rs | 0 .../tools/rustfmt/tests}/target/issue-3882.rs | 0 .../tools/rustfmt/tests}/target/issue-3974.rs | 0 .../tools/rustfmt/tests}/target/issue-3984.rs | 0 .../issue-3987/format_macro_bodies_false.rs | 0 .../issue-3987/format_macro_bodies_true.rs | 0 .../tools/rustfmt/tests}/target/issue-4018.rs | 0 .../tools/rustfmt/tests}/target/issue-4020.rs | 0 .../tools/rustfmt/tests}/target/issue-4029.rs | 0 .../rustfmt/tests}/target/issue-4036/one.rs | 0 .../rustfmt/tests}/target/issue-4036/three.rs | 0 .../rustfmt/tests}/target/issue-4036/two.rs | 0 .../tools/rustfmt/tests}/target/issue-4041.rs | 0 .../tools/rustfmt/tests}/target/issue-4068.rs | 0 .../tools/rustfmt/tests}/target/issue-4079.rs | 0 .../tools/rustfmt/tests}/target/issue-4115.rs | 0 .../tools/rustfmt/tests}/target/issue-4120.rs | 0 .../tools/rustfmt/tests}/target/issue-4152.rs | 0 .../tools/rustfmt/tests}/target/issue-4159.rs | 0 .../tests}/target/issue-4210-disabled.rs | 0 .../tools/rustfmt/tests}/target/issue-4210.rs | 0 .../tools/rustfmt/tests}/target/issue-4243.rs | 0 .../tools/rustfmt/tests}/target/issue-4244.rs | 0 .../tools/rustfmt/tests}/target/issue-4245.rs | 0 .../tools/rustfmt/tests}/target/issue-4310.rs | 0 .../tools/rustfmt/tests}/target/issue-4312.rs | 0 .../tools/rustfmt/tests}/target/issue-4313.rs | 0 .../target/issue-4381/style_edition_2015.rs | 0 .../target/issue-4381/style_edition_2024.rs | 0 .../tools/rustfmt/tests}/target/issue-4382.rs | 0 .../tools/rustfmt/tests}/target/issue-4398.rs | 0 .../tools/rustfmt/tests}/target/issue-4427.rs | 0 .../tools/rustfmt/tests}/target/issue-447.rs | 0 .../tools/rustfmt/tests}/target/issue-4530.rs | 0 .../tools/rustfmt/tests}/target/issue-4577.rs | 0 .../tools/rustfmt/tests}/target/issue-4603.rs | 0 .../target/issue-4615/minimum_example.rs | 0 .../tools/rustfmt/tests}/target/issue-4643.rs | 0 .../tools/rustfmt/tests}/target/issue-4646.rs | 0 .../target/issue-4656/format_me_please.rs | 0 .../rustfmt/tests}/target/issue-4656/lib.rs | 0 .../rustfmt/tests}/target/issue-4656/lib2.rs | 0 .../rustfmt/tests}/target/issue-4689/one.rs | 0 .../rustfmt/tests}/target/issue-4689/two.rs | 0 .../rustfmt/tests}/target/issue-4791/buggy.rs | 0 .../tests}/target/issue-4791/issue_4928.rs | 0 .../target/issue-4791/no_trailing_comma.rs | 0 .../target/issue-4791/trailing_comma.rs | 0 .../tools/rustfmt/tests}/target/issue-4808.rs | 0 .../rustfmt/tests}/target/issue-4816/lib.rs | 0 .../rustfmt/tests}/target/issue-4908-2.rs | 0 .../tools/rustfmt/tests}/target/issue-4908.rs | 0 .../target/issue-4926/deeply_nested_struct.rs | 0 ...ply_nested_struct_with_long_field_names.rs | 0 .../deeply_nested_struct_with_many_fields.rs | 0 .../target/issue-4926/enum_struct_field.rs | 0 .../target/issue-4926/minimum_example.rs | 0 .../struct_with_long_field_names.rs | 0 .../issue-4926/struct_with_many_fields.rs | 0 .../target/issue-4984/minimum_example.rs | 0 .../target/issue-4984/multi_line_derive.rs | 0 .../issue-4984/multiple_comments_within.rs | 0 .../target/issue-4984/should_not_change.rs | 0 .../target/issue-5005/minimum_example.rs | 0 .../target/issue-5009/1_minimum_example.rs | 0 .../2_many_in_connectors_in_pattern.rs | 0 ...sted_for_loop_with_connector_in_pattern.rs | 0 .../4_nested_for_loop_with_if_elseif_else.rs | 0 ...r_loop_with_connector_in_if_elseif_else.rs | 0 ...sted_for_loop_with_connector_in_pattern.rs | 0 .../tools/rustfmt/tests}/target/issue-5011.rs | 0 .../issue-5012/trailing_comma_always.rs | 0 .../target/issue-5012/trailing_comma_never.rs | 0 .../tools/rustfmt/tests}/target/issue-5023.rs | 0 .../tools/rustfmt/tests}/target/issue-5030.rs | 0 .../target/issue-5033/minimum_example.rs | 0 .../target/issue-5033/nested_modules.rs | 0 .../multi-line_comment_with_trailing_comma.rs | 0 ...lti-line_comment_without_trailing_comma.rs | 0 ...single-line_comment_with_trailing_comma.rs | 0 ...gle-line_comment_without_trailing_comma.rs | 0 ...railing_comma_always_struct_lit_width_0.rs | 0 ...trailing_comma_never_struct_lit_width_0.rs | 0 ..._line_struct_with_trailing_comma_always.rs | 0 ...i_line_struct_with_trailing_comma_never.rs | 0 .../issue-5066/with_trailing_comma_always.rs | 0 .../issue-5066/with_trailing_comma_never.rs | 0 ...nested_long_comment_wrap_comments_false.rs | 0 ..._nested_long_comment_wrap_comments_true.rs | 0 ...line_itemized_block_wrap_comments_false.rs | 0 ..._line_itemized_block_wrap_comments_true.rs | 0 ...with_itemized_block_wrap_comments_false.rs | 0 ..._with_itemized_block_wrap_comments_true.rs | 0 ...line_itemized_block_wrap_comments_false.rs | 0 ..._line_itemized_block_wrap_comments_true.rs | 0 ...long_itemized_block_wrap_comments_false.rs | 0 ..._long_itemized_block_wrap_comments_true.rs | 0 ..._with_empty_comment_wrap_comments_false.rs | 0 ...t_with_empty_comment_wrap_comments_true.rs | 0 .../very_long_comment_wrap_comments_false.rs | 0 .../very_long_comment_wrap_comments_true.rs | 0 .../tools/rustfmt/tests}/target/issue-5095.rs | 0 .../tools/rustfmt/tests}/target/issue-510.rs | 0 .../attributes_in_formal_fuction_parameter.rs | 0 .../long_parameter_in_different_positions.rs | 0 .../target/issue-5125/minimum_example.rs | 0 .../with_leading_and_inline_comments.rs | 0 .../rustfmt/tests}/target/issue-5136-1.rs | 0 .../rustfmt/tests}/target/issue-5136-2.rs | 0 .../rustfmt/tests}/target/issue-5136-3.rs | 0 .../rustfmt/tests}/target/issue-5136-4.rs | 0 .../rustfmt/tests}/target/issue-5136-5.rs | 0 .../target/issue-5151/minimum_example.rs | 0 .../indented_itemized_markdown_blockquote.rs | 0 .../nested_itemized_markdown_blockquote.rs | 0 .../support_itemized_markdown_blockquote.rs | 0 .../tools/rustfmt/tests}/target/issue-5234.rs | 0 .../markdown_header_wrap_comments_false.rs | 0 .../markdown_header_wrap_comments_true.rs | 0 .../tests}/target/issue-5244/unwrapped.rs | 0 .../tests}/target/issue-5244/wrapped.rs | 0 .../tools/rustfmt/tests}/target/issue-5260.rs | 0 .../target/issue-5270/merge_derives_false.rs | 0 .../target/issue-5270/merge_derives_true.rs | 0 .../tools/rustfmt/tests}/target/issue-5358.rs | 0 .../tools/rustfmt/tests}/target/issue-539.rs | 0 .../tools/rustfmt/tests}/target/issue-5488.rs | 0 .../tools/rustfmt/tests}/target/issue-5568.rs | 0 .../tools/rustfmt/tests}/target/issue-5586.rs | 0 .../rustfmt/tests}/target/issue-5655/one.rs | 0 .../rustfmt/tests}/target/issue-5655/two.rs | 0 .../tools/rustfmt/tests}/target/issue-5791.rs | 0 .../issue-5797/retain_trailing_semicolon.rs | 0 ...ttribute_does_not_wrap_within_max_width.rs | 0 ...ute_unexpectedly_wraps_before_max_width.rs | 0 .../comment_does_not_wrap_within_max_width.rs | 0 ...ent_unexpectedly_wraps_before_max_width.rs | 0 .../tools/rustfmt/tests}/target/issue-5835.rs | 0 .../tests}/target/issue-5852/default.rs | 0 .../tests}/target/issue-5852/horizontal.rs | 0 .../target/issue-5852/horizontal_vertical.rs | 0 .../tests}/target/issue-5852/issue_example.rs | 0 .../rustfmt/tests}/target/issue-5852/split.rs | 0 .../tests}/target/issue-5852/vertical.rs | 0 .../tools/rustfmt/tests}/target/issue-5871.rs | 0 .../tools/rustfmt/tests}/target/issue-5885.rs | 0 .../tools/rustfmt/tests}/target/issue-5935.rs | 0 .../rustfmt/tests}/target/issue-5987/one.rs | 0 .../rustfmt/tests}/target/issue-5987/two.rs | 0 .../tests}/target/issue-6059/additional.rs | 0 .../rustfmt/tests}/target/issue-6059/repro.rs | 0 .../tools/rustfmt/tests}/target/issue-6105.rs | 0 .../tools/rustfmt/tests}/target/issue-6109.rs | 0 .../target/issue-6147/case_rustfmt_v1.rs | 0 .../target/issue-6147/case_rustfmt_v2.rs | 0 .../tests}/target/issue-6202/long_pat.rs | 0 .../tools/rustfmt/tests}/target/issue-6243.rs | 0 .../rustfmt/tests}/target/issue-6333-2024.rs | 0 .../tools/rustfmt/tests}/target/issue-6333.rs | 0 .../tools/rustfmt/tests}/target/issue-64.rs | 0 .../tools/rustfmt/tests}/target/issue-6411.rs | 0 .../tests}/target/issue-6561/trait-fn.rs | 0 .../tests}/target/issue-6561/variadic.rs | 0 .../tests}/target/issue-6607/fn-type.rs | 0 .../tests}/target/issue-6651/custom_width.rs | 0 .../tests}/target/issue-6651/default.rs | 0 .../tools/rustfmt/tests}/target/issue-6788.rs | 0 .../tools/rustfmt/tests}/target/issue-6795.rs | 0 .../tools/rustfmt/tests}/target/issue-6825.rs | 0 .../tools/rustfmt/tests}/target/issue-683.rs | 0 .../tests}/target/issue-6863/empty-stmt.rs | 0 .../tests}/target/issue-6863/fn-stmts.rs | 0 .../tools/rustfmt/tests}/target/issue-691.rs | 0 .../tools/rustfmt/tests}/target/issue-6985.rs | 0 .../tools/rustfmt/tests}/target/issue-7011.rs | 0 .../tools/rustfmt/tests}/target/issue-7054.rs | 0 .../tools/rustfmt/tests}/target/issue-7056.rs | 0 .../tools/rustfmt/tests}/target/issue-770.rs | 0 .../tools/rustfmt/tests}/target/issue-811.rs | 0 .../tools/rustfmt/tests}/target/issue-831.rs | 0 .../tools/rustfmt/tests}/target/issue-850.rs | 0 .../tools/rustfmt/tests}/target/issue-855.rs | 0 .../tools/rustfmt/tests}/target/issue-913.rs | 0 .../tools/rustfmt/tests}/target/issue-945.rs | 0 .../tools/rustfmt/tests}/target/issue-977.rs | 0 .../tools/rustfmt/tests}/target/issue_1306.rs | 0 .../tools/rustfmt/tests}/target/issue_3033.rs | 0 .../tools/rustfmt/tests}/target/issue_3245.rs | 0 .../tools/rustfmt/tests}/target/issue_3561.rs | 0 .../tools/rustfmt/tests}/target/issue_3839.rs | 0 .../tools/rustfmt/tests}/target/issue_3844.rs | 0 .../tools/rustfmt/tests}/target/issue_3853.rs | 0 .../tools/rustfmt/tests}/target/issue_3854.rs | 0 .../tools/rustfmt/tests}/target/issue_3868.rs | 0 .../tools/rustfmt/tests}/target/issue_3934.rs | 0 .../tools/rustfmt/tests}/target/issue_3937.rs | 0 .../tools/rustfmt/tests}/target/issue_4031.rs | 0 .../tools/rustfmt/tests}/target/issue_4032.rs | 0 .../tools/rustfmt/tests}/target/issue_4037.rs | 0 .../tools/rustfmt/tests}/target/issue_4049.rs | 0 .../tools/rustfmt/tests}/target/issue_4057.rs | 0 .../tools/rustfmt/tests}/target/issue_4086.rs | 0 .../tools/rustfmt/tests}/target/issue_4110.rs | 0 .../tools/rustfmt/tests}/target/issue_4257.rs | 0 .../tools/rustfmt/tests}/target/issue_4322.rs | 0 .../tools/rustfmt/tests}/target/issue_4350.rs | 0 .../tools/rustfmt/tests}/target/issue_4374.rs | 0 .../tools/rustfmt/tests}/target/issue_4467.rs | 0 .../tools/rustfmt/tests}/target/issue_4475.rs | 0 .../tools/rustfmt/tests}/target/issue_4522.rs | 0 .../tools/rustfmt/tests}/target/issue_4528.rs | 0 .../tools/rustfmt/tests}/target/issue_4545.rs | 0 .../tools/rustfmt/tests}/target/issue_4573.rs | 0 .../tools/rustfmt/tests}/target/issue_4579.rs | 0 .../tools/rustfmt/tests}/target/issue_4584.rs | 0 .../tools/rustfmt/tests}/target/issue_4635.rs | 0 .../tools/rustfmt/tests}/target/issue_4636.rs | 0 .../tools/rustfmt/tests}/target/issue_4675.rs | 0 .../tools/rustfmt/tests}/target/issue_4823.rs | 0 .../tools/rustfmt/tests}/target/issue_4850.rs | 0 .../tools/rustfmt/tests}/target/issue_4854.rs | 0 .../tools/rustfmt/tests}/target/issue_4868.rs | 0 .../tools/rustfmt/tests}/target/issue_4911.rs | 0 .../tools/rustfmt/tests}/target/issue_4936.rs | 0 .../tools/rustfmt/tests}/target/issue_4943.rs | 0 .../tools/rustfmt/tests}/target/issue_4954.rs | 0 .../tools/rustfmt/tests}/target/issue_4963.rs | 0 .../tools/rustfmt/tests}/target/issue_5027.rs | 0 .../tools/rustfmt/tests}/target/issue_5086.rs | 0 .../tools/rustfmt/tests}/target/issue_5273.rs | 0 .../tools/rustfmt/tests}/target/issue_5399.rs | 0 .../tools/rustfmt/tests}/target/issue_5533.rs | 0 .../tools/rustfmt/tests}/target/issue_5668.rs | 0 .../tools/rustfmt/tests}/target/issue_5676.rs | 0 .../tools/rustfmt/tests}/target/issue_5686.rs | 0 .../tools/rustfmt/tests}/target/issue_5691.rs | 0 .../tools/rustfmt/tests}/target/issue_5721.rs | 0 .../tools/rustfmt/tests}/target/issue_5728.rs | 0 .../tools/rustfmt/tests}/target/issue_5729.rs | 0 .../tools/rustfmt/tests}/target/issue_5730.rs | 0 .../tools/rustfmt/tests}/target/issue_5735.rs | 0 .../tools/rustfmt/tests}/target/issue_5739.rs | 0 .../tools/rustfmt/tests}/target/issue_5882.rs | 0 .../tools/rustfmt/tests}/target/issue_5907.rs | 0 .../tools/rustfmt/tests}/target/issue_5912.rs | 0 .../target/issue_5920_style_edition_2024.rs | 0 .../target/issue_5920_style_edition_2027.rs | 0 .../tools/rustfmt/tests}/target/issue_5973.rs | 0 .../target/issue_5982_style_edition_2024.rs | 0 .../target/issue_5982_style_edition_2027.rs | 0 .../tools/rustfmt/tests}/target/issue_6069.rs | 0 .../tools/rustfmt/tests}/target/issue_6082.rs | 0 .../tools/rustfmt/tests}/target/issue_6158.rs | 0 .../tools/rustfmt/tests}/target/issue_6159.rs | 0 .../tools/rustfmt/tests}/target/issue_6209.rs | 0 .../target/issue_6381_style_edition_2024.rs | 0 .../target/issue_6381_style_edition_2027.rs | 0 .../tools/rustfmt/tests}/target/issue_6513.rs | 0 .../tools/rustfmt/tests}/target/issue_6558.rs | 0 .../tools/rustfmt/tests}/target/issue_6801.rs | 0 .../target/issue_6831_style_edition_2021.rs | 0 .../target/issue_6831_style_edition_2024.rs | 0 .../target/issue_6831_style_edition_2027.rs | 0 .../target/issue_6859_hard_tab_breaks.rs | 0 .../tools/rustfmt/tests}/target/issue_6869.rs | 0 .../tools/rustfmt/tests}/target/issue_6959.rs | 0 .../target/issue_6984_style_edition_2024.rs | 0 .../target/issue_6984_style_edition_2027.rs | 0 .../target/issue_7003_style_edition_2024.rs | 0 .../target/issue_7003_style_edition_2027.rs | 0 .../tools/rustfmt/tests}/target/issue_7036.rs | 0 .../target/issue_7055_style_edition_2024.rs | 0 .../target/issue_7055_style_edition_2027.rs | 0 .../tools/rustfmt/tests}/target/issue_7057.rs | 0 .../tools/rustfmt/tests}/target/issue_7062.rs | 0 .../tests}/target/issue_7088_stable.rs | 0 .../tests}/target/issue_7088_unstable.rs | 0 .../item-brace-style-always-next-line.rs | 0 .../item-brace-style-prefer-same-line.rs | 0 .../item-brace-style-same-line-where.rs | 0 .../tests}/target/itemized-blocks/no_wrap.rs | 0 .../target/itemized-blocks/rewrite_fail.rs | 0 .../tests}/target/itemized-blocks/urls.rs | 0 .../tests}/target/itemized-blocks/wrap.rs | 0 .../tools/rustfmt/tests}/target/keywords.rs | 0 .../rustfmt/tests}/target/label_break.rs | 0 .../rustfmt/tests}/target/large-block.rs | 0 .../tools/rustfmt/tests}/target/large_vec.rs | 0 .../tests}/target/lazy_staic_before_2027.rs | 0 .../rustfmt/tests}/target/lazy_static.rs | 0 .../tools/rustfmt/tests}/target/let_chains.rs | 0 .../tools/rustfmt/tests}/target/let_else.rs | 0 .../rustfmt/tests}/target/let_else_v2.rs | 0 .../tests}/target/long-fn-1/version_one.rs | 0 .../tests}/target/long-fn-1/version_two.rs | 0 .../target/long-match-arms-brace-newline.rs | 0 .../target/long-use-statement-issue-3154.rs | 0 .../tests}/target/long_field_access.rs | 0 .../tools/rustfmt/tests}/target/loop.rs | 0 .../rustfmt/tests}/target/macro_not_expr.rs | 0 .../rustfmt/tests}/target/macro_rules.rs | 0 .../rustfmt/tests}/target/macro_rules_semi.rs | 0 .../tools/rustfmt/tests}/target/macros.rs | 0 .../target/macros/rewrite-const-item.rs | 0 .../target/markdown-comment-with-options.rs | 0 .../rustfmt/tests}/target/markdown-comment.rs | 0 .../target/match-block-trailing-comma.rs | 0 .../rustfmt/tests}/target/match-flattening.rs | 0 .../target/match-nowrap-trailing-comma.rs | 0 .../rustfmt/tests}/target/match-nowrap.rs | 0 .../tools/rustfmt/tests}/target/match.rs | 0 .../tests}/target/match_overflow_expr.rs | 0 .../tests}/target/max-line-length-in-chars.rs | 0 .../target/merge_imports_true_compat.rs | 0 .../tools/rustfmt/tests}/target/mod-1.rs | 0 .../tools/rustfmt/tests}/target/mod-2.rs | 0 .../rustfmt/tests}/target/mod_skip_child.rs | 0 .../tools/rustfmt/tests}/target/mulit-file.rs | 0 .../target/multiline_string_in_macro_def.rs | 0 .../tools/rustfmt/tests}/target/multiple.rs | 0 .../rustfmt/tests}/target/mut-restriction.rs | 0 .../tools/rustfmt/tests}/target/mut_ref.rs | 0 .../target/named-fn-trait-parameters.rs | 0 .../rustfmt/tests}/target/negative-bounds.rs | 0 .../rustfmt/tests}/target/negative-impl.rs | 0 .../rustfmt/tests}/target/nested-if-else.rs | 0 .../tests}/target/nested-visual-block.rs | 0 .../tests}/target/nested_skipped/mod.rs | 0 .../rustfmt/tests}/target/nestedmod/mod.rs | 0 .../rustfmt/tests}/target/nestedmod/mod2a.rs | 0 .../rustfmt/tests}/target/nestedmod/mod2b.rs | 0 .../rustfmt/tests}/target/nestedmod/mod2c.rs | 0 .../tests}/target/nestedmod/mymod1/mod3a.rs | 0 .../tests}/target/nestedmod/submod2/a.rs | 0 .../tests}/target/nestedmod/submod2/mod.rs | 0 .../tests}/target/no_arg_with_comment.rs | 0 .../tests}/target/no_new_line_beginning.rs | 0 .../tests}/target/non-lifetime-binders.rs | 0 ...on_ascii_numerics_import_asciibetically.rs | 0 .../non_ascii_numerics_import_versionsort.rs | 0 ...es_should_not_imply_format_doc_comments.rs | 0 .../normalize_multiline_doc_attribute.rs | 0 .../tests}/target/obsolete_in_place.rs | 0 .../rustfmt/tests}/target/one_line_if_v1.rs | 0 .../rustfmt/tests}/target/one_line_if_v2.rs | 0 .../tools/rustfmt/tests}/target/other.rs | 0 .../tools/rustfmt/tests}/target/paren.rs | 0 .../rustfmt/tests}/target/path_clarity/foo.rs | 0 .../tests}/target/path_clarity/foo/bar.rs | 0 .../tools/rustfmt/tests}/target/paths.rs | 0 .../target/pattern-condense-wildcards.rs | 0 .../tools/rustfmt/tests}/target/pattern.rs | 0 .../tools/rustfmt/tests}/target/pin_sugar.rs | 0 .../tests}/target/postfix-match/pf-match.rs | 0 .../rustfmt/tests}/target/postfix-yield.rs | 0 .../tests}/target/precise-capturing.rs | 0 .../preserves_carriage_return_for_unix.rs | 0 .../preserves_carriage_return_for_windows.rs | 0 .../rustfmt/tests}/target/pub-restricted.rs | 0 .../rustfmt/tests}/target/raw-lifetimes.rs | 0 .../rustfmt/tests}/target/raw_identifiers.rs | 0 .../tests}/target/remove_blank_lines.rs | 0 .../tests}/target/reorder-impl-items.rs | 0 .../tests}/target/reorder_modules/A2/mod.rs | 0 .../tests}/target/reorder_modules/ABCD/mod.rs | 0 .../tests}/target/reorder_modules/ZYXW/mod.rs | 0 .../target/reorder_modules/ZYXW_/mod.rs | 0 .../target/reorder_modules/ZY_XW/mod.rs | 0 .../target/reorder_modules/Z_YXW/mod.rs | 0 .../target/reorder_modules/_ZYXW/mod.rs | 0 .../target/reorder_modules/_abcd/mod.rs | 0 .../tests}/target/reorder_modules/a1/mod.rs | 0 .../target/reorder_modules/abcde/mod.rs | 0 .../disabled_style_edition_2024.rs | 0 .../disabled_style_edition_2027.rs | 0 .../enabled_style_edition_2015.rs | 0 .../enabled_style_edition_2024.rs | 0 .../enabled_style_edition_2027.rs | 0 .../tests}/target/reorder_modules/u128/mod.rs | 0 .../tests}/target/reorder_modules/u16/mod.rs | 0 .../tests}/target/reorder_modules/u256/mod.rs | 0 .../tests}/target/reorder_modules/u32/mod.rs | 0 .../tests}/target/reorder_modules/u64/mod.rs | 0 .../tests}/target/reorder_modules/u8/mod.rs | 0 .../target/reorder_modules/u_zzz/mod.rs | 0 .../tests}/target/reorder_modules/ua/mod.rs | 0 .../target/reorder_modules/usize/mod.rs | 0 .../tests}/target/reorder_modules/uz/mod.rs | 0 .../tests}/target/reorder_modules/v0/mod.rs | 0 .../tests}/target/reorder_modules/v00/mod.rs | 0 .../tests}/target/reorder_modules/v000/mod.rs | 0 .../tests}/target/reorder_modules/v001/mod.rs | 0 .../tests}/target/reorder_modules/v009/mod.rs | 0 .../tests}/target/reorder_modules/v00t/mod.rs | 0 .../tests}/target/reorder_modules/v01/mod.rs | 0 .../tests}/target/reorder_modules/v010/mod.rs | 0 .../tests}/target/reorder_modules/v09/mod.rs | 0 .../tests}/target/reorder_modules/v0s/mod.rs | 0 .../tests}/target/reorder_modules/v0u/mod.rs | 0 .../tests}/target/reorder_modules/v1/mod.rs | 0 .../tests}/target/reorder_modules/v10/mod.rs | 0 .../tests}/target/reorder_modules/v9/mod.rs | 0 .../target/reorder_modules/w005s09t/mod.rs | 0 .../target/reorder_modules/w5s009t/mod.rs | 0 .../tests}/target/reorder_modules/x64/mod.rs | 0 .../tests}/target/reorder_modules/x86/mod.rs | 0 .../target/reorder_modules/x86_128/mod.rs | 0 .../target/reorder_modules/x86_32/mod.rs | 0 .../target/reorder_modules/x86_64/mod.rs | 0 .../tests}/target/reorder_modules/x87/mod.rs | 0 .../target/reorder_modules/zyxwv/mod.rs | 0 .../target/reorder_modules_2027/abcde/mod.rs | 0 .../target/reorder_modules_2027/zyxwv/mod.rs | 0 .../tests}/target/return-type-notation.rs | 0 ...t_string_when_format_strings_is_not_set.rs | 0 .../tests}/target/single-line-if-else.rs | 0 .../tests}/target/single-line-macro/v1.rs | 0 .../tests}/target/single-line-macro/v2.rs | 0 .../tools/rustfmt/tests}/target/skip.rs | 0 .../tools/rustfmt/tests}/target/skip/foo.rs | 0 .../tools/rustfmt/tests}/target/skip/main.rs | 0 .../target/skip/preserve_trailing_comment.rs | 0 .../target/skip_macro_invocations/all.rs | 0 .../skip_macro_invocations/all_and_name.rs | 0 .../skip_macro_invocations/config_file.rs | 0 .../target/skip_macro_invocations/empty.rs | 0 .../target/skip_macro_invocations/name.rs | 0 .../skip_macro_invocations/name_unknown.rs | 0 .../target/skip_macro_invocations/names.rs | 0 .../path_qualified_invocation_mismatch.rs | 0 .../path_qualified_match.rs | 0 .../path_qualified_name_mismatch.rs | 0 .../use_alias_examples.rs | 0 .../tools/rustfmt/tests}/target/skip_mod.rs | 0 .../rustfmt/tests}/target/soft-wrapping.rs | 0 .../tests}/target/space-not-before-newline.rs | 0 .../tests}/target/spaces-around-ranges.rs | 0 .../tools/rustfmt/tests}/target/splat.rs | 0 .../tools/rustfmt/tests}/target/statements.rs | 0 .../tools/rustfmt/tests}/target/static.rs | 0 .../rustfmt/tests}/target/string-lit-2.rs | 0 .../tests}/target/string-lit-custom.rs | 0 .../tools/rustfmt/tests}/target/string-lit.rs | 0 .../tests}/target/string_lit_unicode_ws.rs | 0 .../tests}/target/string_punctuation.rs | 0 .../tests}/target/struct-field-attributes.rs | 0 .../tests}/target/struct_field_doc_comment.rs | 0 .../rustfmt/tests}/target/struct_lits.rs | 0 .../tests}/target/struct_lits_multiline.rs | 0 .../tests}/target/struct_lits_visual.rs | 0 .../target/struct_lits_visual_multiline.rs | 0 .../tests}/target/struct_tuple_visual.rs | 0 .../tools/rustfmt/tests}/target/structs.rs | 0 .../tests}/target/style_edition/default.rs | 0 .../target/style_edition/follows_edition.rs | 0 .../overrides_edition_when_set.rs | 0 .../tools/rustfmt/tests}/target/super_let.rs | 0 .../tests}/target/trailing-comma-never.rs | 0 ...-bodies-edition-2021-style-edition-2027.rs | 0 ...-bodies-edition-2024-style-edition-2024.rs | 0 .../target/trailing-semicolon/loop-bodies.rs | 0 .../rustfmt/tests}/target/trailing_commas.rs | 0 .../target/trailing_comments/hard_tabs.rs | 0 .../target/trailing_comments/soft_tabs.rs | 0 .../tools/rustfmt/tests}/target/trait.rs | 0 .../rustfmt/tests}/target/try-conversion.rs | 0 .../tools/rustfmt/tests}/target/try_block.rs | 0 .../tests}/target/try_blocks_heterogeneous.rs | 0 .../tools/rustfmt/tests}/target/tuple.rs | 0 .../tools/rustfmt/tests}/target/tuple_v2.rs | 0 .../type-alias-where-clauses-with-comments.rs | 0 .../tests}/target/type-alias-where-clauses.rs | 0 .../tools/rustfmt/tests}/target/type.rs | 0 .../tools/rustfmt/tests}/target/type_alias.rs | 0 .../tools/rustfmt/tests}/target/unicode.rs | 0 .../target/unindent_if_else_cond_comment.rs | 0 .../tools/rustfmt/tests}/target/unions.rs | 0 .../rustfmt/tests}/target/unsafe-binders.rs | 0 .../rustfmt/tests}/target/unsafe-field.rs | 0 .../tools/rustfmt/tests}/target/unsafe-mod.rs | 0 .../tests}/target/unsafe_attributes.rs | 0 .../tests}/target/unsafe_extern_blocks.rs | 0 .../use-identifier-order-mixed-edition.rs | 0 .../tests}/target/use-identifier-order.rs | 0 .../tools/rustfmt/tests}/target/visibility.rs | 0 .../rustfmt/tests}/target/visual-fn-type.rs | 0 .../rustfmt/tests}/target/where-clause-rfc.rs | 0 .../rustfmt/tests}/target/where-clause.rs | 0 .../rustfmt/tests}/target/width-heuristics.rs | 0 ...ts_should_not_imply_format_doc_comments.rs | 0 .../warning/snapshots/deprecated_skip.snap | 0 .../warning/snapshots/invalid_attribute.snap | 0 .../tests}/warning/snapshots/issue_3950.snap | 0 .../tests}/warning/snapshots/issue_4968.snap | 0 .../tests}/warning/snapshots/issue_6442.snap | 0 .../tests}/warning/snapshots/issue_6632.snap | 0 .../tests}/warning/snapshots/issue_6826.snap | 0 .../tests}/warning/snapshots/issue_6850.snap | 0 .../warning/snapshots/line_overflow.snap | 0 .../warning/snapshots/line_overflow_tabs.snap | 0 ...ine_overflow_with_trailing_whitespace.snap | 0 .../warning/snapshots/lost_comment.snap | 0 .../warning/snapshots/multiple_errors.snap | 0 .../snapshots/trailing_whitespace.snap | 0 .../trailing_whitespace_overflow.snap | 0 .../unicode_trailing_whitespace.snap | 0 .../tests}/warning/source/deprecated_skip.rs | 0 .../warning/source/invalid_attribute.rs | 0 .../tests}/warning/source/issue_3950.rs | 0 .../tests}/warning/source/issue_4968.rs | 0 .../tests}/warning/source/issue_6442.rs | 0 .../tests}/warning/source/issue_6632.rs | 0 .../tests}/warning/source/issue_6826.rs | 0 .../tests}/warning/source/issue_6850.rs | 0 .../tests}/warning/source/line_overflow.rs | 0 .../warning/source/line_overflow_tabs.rs | 0 .../line_overflow_with_trailing_whitespace.rs | 0 .../tests}/warning/source/lost_comment.rs | 0 .../tests}/warning/source/multiple_errors.rs | 0 .../warning/source/trailing_whitespace.rs | 0 .../source/trailing_whitespace_overflow.rs | 0 .../source/unicode_trailing_whitespace.rs | 0 .../tests}/writemode/source/fn-single-line.rs | 0 .../rustfmt/tests}/writemode/source/json.rs | 0 .../tests}/writemode/source/modified.rs | 0 .../rustfmt/tests}/writemode/source/stdin.rs | 0 .../tests}/writemode/target/checkstyle.xml | 0 .../tests}/writemode/target/modified.txt | 0 .../tests}/writemode/target/output.json | 0 .../tests}/writemode/target/stdin.json | 0 .../rustfmt/tests}/writemode/target/stdin.xml | 0 .../tools/rustfmt/triagebot.toml | 0 2132 files changed, 60 insertions(+) rename .editorconfig => src/tools/rustfmt/.editorconfig (100%) rename .gitattributes => src/tools/rustfmt/.gitattributes (100%) rename {.github => src/tools/rustfmt/.github}/FUNDING.yml (100%) rename {.github => src/tools/rustfmt/.github}/ISSUE_TEMPLATE/bug.md (100%) rename {.github => src/tools/rustfmt/.github}/ISSUE_TEMPLATE/feature-request.md (100%) rename {.github => src/tools/rustfmt/.github}/ISSUE_TEMPLATE/ice.md (100%) rename {.github => src/tools/rustfmt/.github}/ISSUE_TEMPLATE/regression.md (100%) rename {.github => src/tools/rustfmt/.github}/pull_request_template.md (100%) rename {.github => src/tools/rustfmt/.github}/workflows/check_diff.yml (100%) rename {.github => src/tools/rustfmt/.github}/workflows/clippy.yml (100%) rename {.github => src/tools/rustfmt/.github}/workflows/integration.yml (100%) rename {.github => src/tools/rustfmt/.github}/workflows/rustdoc_check.yml (100%) rename {.github => src/tools/rustfmt/.github}/workflows/test.yml (100%) rename {.github => src/tools/rustfmt/.github}/workflows/upload-assets.yml (100%) rename .gitignore => src/tools/rustfmt/.gitignore (100%) rename CHANGELOG.md => src/tools/rustfmt/CHANGELOG.md (100%) rename CODE_OF_CONDUCT.md => src/tools/rustfmt/CODE_OF_CONDUCT.md (100%) rename Cargo.lock => src/tools/rustfmt/Cargo.lock (100%) rename Cargo.toml => src/tools/rustfmt/Cargo.toml (100%) rename Configurations.md => src/tools/rustfmt/Configurations.md (100%) rename Contributing.md => src/tools/rustfmt/Contributing.md (100%) rename Design.md => src/tools/rustfmt/Design.md (100%) rename LICENSE-APACHE => src/tools/rustfmt/LICENSE-APACHE (100%) rename LICENSE-MIT => src/tools/rustfmt/LICENSE-MIT (100%) rename Processes.md => src/tools/rustfmt/Processes.md (100%) rename README.md => src/tools/rustfmt/README.md (100%) rename Subtree sync procedure.md => src/tools/rustfmt/Subtree sync procedure.md (100%) rename atom.md => src/tools/rustfmt/atom.md (100%) rename bootstrap.sh => src/tools/rustfmt/bootstrap.sh (100%) rename build.rs => src/tools/rustfmt/build.rs (100%) rename {check_diff => src/tools/rustfmt/check_diff}/.gitignore (100%) rename {check_diff => src/tools/rustfmt/check_diff}/Cargo.lock (100%) rename {check_diff => src/tools/rustfmt/check_diff}/Cargo.toml (100%) rename {check_diff => src/tools/rustfmt/check_diff}/src/lib.rs (100%) rename {check_diff => src/tools/rustfmt/check_diff}/src/main.rs (100%) rename {check_diff => src/tools/rustfmt/check_diff}/tests/bash_commands.rs (100%) rename {check_diff => src/tools/rustfmt/check_diff}/tests/check_diff.rs (100%) rename {check_diff => src/tools/rustfmt/check_diff}/tests/git.rs (100%) rename {ci => src/tools/rustfmt/ci}/Cargo.lock (100%) rename {ci => src/tools/rustfmt/ci}/Cargo.toml (100%) rename {ci => src/tools/rustfmt/ci}/src/build_and_test.rs (100%) rename {ci => src/tools/rustfmt/ci}/src/clippy_config_check.rs (100%) rename {ci => src/tools/rustfmt/ci}/src/common.rs (100%) rename {ci => src/tools/rustfmt/ci}/src/integration.rs (100%) rename {ci => src/tools/rustfmt/ci}/src/main.rs (100%) rename {config_proc_macro => src/tools/rustfmt/config_proc_macro}/.gitignore (100%) rename {config_proc_macro => src/tools/rustfmt/config_proc_macro}/Cargo.lock (100%) rename {config_proc_macro => src/tools/rustfmt/config_proc_macro}/Cargo.toml (100%) rename {config_proc_macro => src/tools/rustfmt/config_proc_macro}/src/attrs.rs (100%) rename {config_proc_macro => src/tools/rustfmt/config_proc_macro}/src/config_type.rs (100%) rename {config_proc_macro => src/tools/rustfmt/config_proc_macro}/src/item_enum.rs (100%) rename {config_proc_macro => src/tools/rustfmt/config_proc_macro}/src/item_struct.rs (100%) rename {config_proc_macro => src/tools/rustfmt/config_proc_macro}/src/lib.rs (100%) rename {config_proc_macro => src/tools/rustfmt/config_proc_macro}/src/utils.rs (100%) rename {config_proc_macro => src/tools/rustfmt/config_proc_macro}/tests/smoke.rs (100%) rename {docs => src/tools/rustfmt/docs}/index.html (100%) rename intellij.md => src/tools/rustfmt/intellij.md (100%) rename rust-toolchain => src/tools/rustfmt/rust-toolchain (100%) rename rustfmt.toml => src/tools/rustfmt/rustfmt.toml (100%) rename src/{ => tools/rustfmt/src}/attr.rs (100%) rename src/{ => tools/rustfmt/src}/attr/doc_comment.rs (100%) rename src/{ => tools/rustfmt/src}/bin/main.rs (100%) rename src/{ => tools/rustfmt/src}/cargo-fmt/main.rs (100%) rename src/{ => tools/rustfmt/src}/cargo-fmt/test/message_format.rs (100%) rename src/{ => tools/rustfmt/src}/cargo-fmt/test/mod.rs (100%) rename src/{ => tools/rustfmt/src}/cargo-fmt/test/targets.rs (100%) rename src/{ => tools/rustfmt/src}/chains.rs (100%) rename src/{ => tools/rustfmt/src}/closures.rs (100%) rename src/{ => tools/rustfmt/src}/comment.rs (100%) rename src/{ => tools/rustfmt/src}/config/config_type.rs (100%) rename src/{ => tools/rustfmt/src}/config/file_lines.rs (100%) rename src/{ => tools/rustfmt/src}/config/lists.rs (100%) rename src/{ => tools/rustfmt/src}/config/macro_names.rs (100%) rename src/{ => tools/rustfmt/src}/config/mod.rs (100%) rename src/{ => tools/rustfmt/src}/config/options.rs (100%) rename src/{ => tools/rustfmt/src}/config/style_edition.rs (100%) rename src/{ => tools/rustfmt/src}/coverage.rs (100%) rename src/{ => tools/rustfmt/src}/emitter.rs (100%) rename src/{ => tools/rustfmt/src}/emitter/checkstyle.rs (100%) rename src/{ => tools/rustfmt/src}/emitter/checkstyle/xml.rs (100%) rename src/{ => tools/rustfmt/src}/emitter/diff.rs (100%) rename src/{ => tools/rustfmt/src}/emitter/files.rs (100%) rename src/{ => tools/rustfmt/src}/emitter/files_with_backup.rs (100%) rename src/{ => tools/rustfmt/src}/emitter/json.rs (100%) rename src/{ => tools/rustfmt/src}/emitter/modified_lines.rs (100%) rename src/{ => tools/rustfmt/src}/emitter/stdout.rs (100%) rename src/{ => tools/rustfmt/src}/expr.rs (100%) rename src/{ => tools/rustfmt/src}/format-diff/main.rs (100%) rename src/{ => tools/rustfmt/src}/format-diff/test/bindgen.diff (100%) rename src/{ => tools/rustfmt/src}/format_report_formatter.rs (100%) rename src/{ => tools/rustfmt/src}/formatting.rs (100%) rename src/{ => tools/rustfmt/src}/formatting/generated.rs (100%) rename src/{ => tools/rustfmt/src}/formatting/newline_style.rs (100%) rename src/{ => tools/rustfmt/src}/git-rustfmt/main.rs (100%) rename src/{ => tools/rustfmt/src}/header.rs (100%) rename src/{ => tools/rustfmt/src}/ignore_path.rs (100%) rename src/{ => tools/rustfmt/src}/imports.rs (100%) rename src/{ => tools/rustfmt/src}/items.rs (100%) rename src/{ => tools/rustfmt/src}/lib.rs (100%) rename src/{ => tools/rustfmt/src}/lists.rs (100%) rename src/{ => tools/rustfmt/src}/macros.rs (100%) rename src/{ => tools/rustfmt/src}/matches.rs (100%) rename src/{ => tools/rustfmt/src}/missed_spans.rs (100%) rename src/{ => tools/rustfmt/src}/modules.rs (100%) rename src/{ => tools/rustfmt/src}/modules/visitor.rs (100%) rename src/{ => tools/rustfmt/src}/overflow.rs (100%) rename src/{ => tools/rustfmt/src}/pairs.rs (100%) rename src/{ => tools/rustfmt/src}/parse/macros/asm.rs (100%) rename src/{ => tools/rustfmt/src}/parse/macros/cfg_if.rs (100%) rename src/{ => tools/rustfmt/src}/parse/macros/cfg_select.rs (100%) rename src/{ => tools/rustfmt/src}/parse/macros/lazy_static.rs (100%) rename src/{ => tools/rustfmt/src}/parse/macros/mod.rs (100%) rename src/{ => tools/rustfmt/src}/parse/mod.rs (100%) rename src/{ => tools/rustfmt/src}/parse/parser.rs (100%) rename src/{ => tools/rustfmt/src}/parse/session.rs (100%) rename src/{ => tools/rustfmt/src}/patterns.rs (100%) rename src/{ => tools/rustfmt/src}/range.rs (100%) rename src/{ => tools/rustfmt/src}/release_channel.rs (100%) rename src/{ => tools/rustfmt/src}/reorder.rs (100%) rename src/{ => tools/rustfmt/src}/rewrite.rs (100%) rename src/{ => tools/rustfmt/src}/rustfmt_diff.rs (100%) rename src/{ => tools/rustfmt/src}/shape.rs (100%) rename src/{ => tools/rustfmt/src}/skip.rs (100%) rename src/{ => tools/rustfmt/src}/sort.rs (100%) rename src/{ => tools/rustfmt/src}/source_file.rs (100%) rename src/{ => tools/rustfmt/src}/source_map.rs (100%) rename src/{ => tools/rustfmt/src}/spanned.rs (100%) rename src/{ => tools/rustfmt/src}/stmt.rs (100%) rename src/{ => tools/rustfmt/src}/string.rs (100%) rename src/{ => tools/rustfmt/src}/test/configuration_snippet.rs (100%) rename src/{ => tools/rustfmt/src}/test/mod.rs (100%) rename src/{ => tools/rustfmt/src}/test/mod_resolver.rs (100%) rename src/{ => tools/rustfmt/src}/test/parser.rs (100%) rename src/{ => tools/rustfmt/src}/types.rs (100%) rename src/{ => tools/rustfmt/src}/utils.rs (100%) rename src/{ => tools/rustfmt/src}/vertical.rs (100%) rename src/{ => tools/rustfmt/src}/visitor.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/main.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/divergent-crate-dir-names/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/src/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/subdep-dir-name/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/subdep-dir-name/src/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/divergent-crate-dir-names/src/main.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/issue_3164/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/issue_3164/src/main.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/issues_6517/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/issues_6517/inner_bin/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/issues_6517/inner_bin/src/main.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/issues_6517/inner_lib/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/issues_6517/inner_lib/src/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/e/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/e/src/main.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/ws/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/ws/a/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/f/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/f/src/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/src/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/ws/a/src/main.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/ws/b/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/ws/b/src/main.rs (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/ws/c/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/cargo-fmt/source/workspaces/path-dep-above/ws/c/src/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/config/disable_all_formatting.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/issue-1111.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/issue-2641.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/issue-3779.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/issue-5801-v1.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/issue-5801-v2.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/issue-5816.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/issue-6302.toml (100%) create mode 100644 src/tools/rustfmt/tests/config/issue_4660/Cargo.lock create mode 100644 src/tools/rustfmt/tests/config/issue_4660/Cargo.toml create mode 100644 src/tools/rustfmt/tests/config/issue_4660/inner_bin/.rustfmt.unstable.toml create mode 100644 src/tools/rustfmt/tests/config/issue_4660/inner_bin/Cargo.toml create mode 100644 src/tools/rustfmt/tests/config/issue_4660/inner_bin/src/main.rs create mode 100644 src/tools/rustfmt/tests/config/issue_4660/inner_lib/Cargo.toml create mode 100644 src/tools/rustfmt/tests/config/issue_4660/inner_lib/rustfmt.toml create mode 100644 src/tools/rustfmt/tests/config/issue_4660/inner_lib/src/lib.rs rename {tests => src/tools/rustfmt/tests}/config/skip_children.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/small_tabs.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/style-edition/just-style-edition/rustfmt.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/style-edition/just-version/rustfmt.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/style-edition/overrides/rustfmt.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/style-edition/style-edition-and-edition/rustfmt.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/style-edition/version-edition/rustfmt.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/style-edition/version-style-edition-and-edition/rustfmt.toml (100%) rename {tests => src/tools/rustfmt/tests}/config/style-edition/version-style-edition/rustfmt.toml (100%) rename {tests => src/tools/rustfmt/tests}/coverage/source/comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/coverage/target/comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-4874/bar/baz.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-4874/foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-4874/foo/qux.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-4874/main.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5063/foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5063/foo/bar/baz.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5063/main.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5167/src/a.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5167/src/a/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5167/src/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5198/a.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5198/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5198/lib/b.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5198/lib/c/d.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5198/lib/c/d/explanation.txt (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5198/lib/c/d/f.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5198/lib/c/d/g/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5198/lib/c/e.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5198/lib/c/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/issue-5198/lib/explanation.txt (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/module-not-found/bad_path_attribute/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/module-not-found/relative_module/a.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/module-not-found/relative_module/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/module-not-found/sibling_module/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/skip-files-issue-5065/foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/skip-files-issue-5065/foo/bar/baz.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/skip-files-issue-5065/main.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/skip-files-issue-5065/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/test-submodule-issue-5119/Cargo.toml (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/test-submodule-issue-5119/src/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/test-submodule-issue-5119/tests/test1.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/test-submodule-issue-5119/tests/test1/sub1.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/test-submodule-issue-5119/tests/test1/sub2.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/test-submodule-issue-5119/tests/test1/sub3/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/mod-resolver/test-submodule-issue-5119/tests/test1/sub3/sub4.rs (100%) rename {tests => src/tools/rustfmt/tests}/parser/issue-4126/invalid.rs (100%) rename {tests => src/tools/rustfmt/tests}/parser/issue-4126/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/parser/issue_4418.rs (100%) rename {tests => src/tools/rustfmt/tests}/parser/stashed-diag.rs (100%) rename {tests => src/tools/rustfmt/tests}/parser/stashed-diag2.rs (100%) rename {tests => src/tools/rustfmt/tests}/parser/unclosed-delims/issue_4466.rs (100%) rename {tests => src/tools/rustfmt/tests}/rustfmt/main.rs (92%) rename {tests => src/tools/rustfmt/tests}/source/5131_crate.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/5131_module.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/5131_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/6639-non-idempotent-block-doc-comments/inner-block-doc-comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/6639-non-idempotent-block-doc-comments/naive-outer-block-comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/6639-non-idempotent-block-doc-comments/outer-block-doc-comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/6639-non-idempotent-block-doc-comments/rustc-sample-1.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/6639-non-idempotent-block-doc-comments/rustc-sample-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/alignment_2633/block_style.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/alignment_2633/visual_style.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/array_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/arrow_in_comments/arrow_in_single_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/arrow_in_comments/multiple_arrows.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/assignment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/associated-types-bounds-wrapping.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/associated_type_bounds.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/async_block.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/async_fn.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/attrib.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/big-impl-block.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/big-impl-visual.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/binary-expr.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/binop-separator-back/bitwise.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/binop-separator-back/comp.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/binop-separator-back/logic.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/binop-separator-back/math.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/binop-separator-back/patterns.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/binop-separator-back/range.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/break-and-continue.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/catch.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/arch/aarch64.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/arch/arm.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/arch/mips.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/arch/mips64.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/arch/powerpc.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/arch/powerpc64.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/arch/x86.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/bit.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/cache.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/error_macros.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/aarch64.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/freebsd/aarch64.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/freebsd/arm.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/freebsd/auxvec.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/freebsd/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/freebsd/powerpc.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/linux/aarch64.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/linux/arm.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/linux/auxvec.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/linux/cpuinfo.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/linux/mips.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/linux/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/linux/powerpc.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/other.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/detect/os/x86.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_if/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_mod/bar.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_mod/dir/dir1/dir2/wasm32.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_mod/dir/dir1/dir3/wasm32.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_mod/foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_mod/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_mod/other.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_mod/wasm32.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_select.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_select/format_me_please_1.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_select/format_me_please_2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_select/format_me_please_3.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_select/format_me_please_4.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_select/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_select/lib2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/cfg_select_stable.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/chain_yield_with_comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/chains-visual.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/chains.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/chains_with_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/closure-block-inside-macro.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/closure-block-labels.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/closure.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/comment2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/comment3.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/comment4.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/comment5.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/comment6.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/comment_crlf_newline.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/comments-in-lists/wrap-comments-not-normalized.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/comments-in-lists/wrap-comments-true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/comments_unicode.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/blank_lines_lower_bound/1.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/blank_lines_upper_bound/1.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/blank_lines_upper_bound/2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/brace_style/fn_always_next_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/brace_style/fn_prefer_same_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/brace_style/fn_same_line_where.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/brace_style/item_always_next_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/brace_style/item_prefer_same_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/brace_style/item_same_line_where.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/chain_width/always.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/chain_width/small.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/chain_width/tiny.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/comment_width/above.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/comment_width/below.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/comment_width/ignore.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/condense_wildcard_suffixes/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/condense_wildcard_suffixes/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/control_brace_style/always_next_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/control_brace_style/always_same_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/control_brace_style/closing_next_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/disable_all_formatting/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/disable_all_formatting/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/doc_comment_code_block_small_heuristics/default-to-max.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/doc_comment_code_block_small_heuristics/max-to-default.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/doc_comment_code_block_width/100.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/doc_comment_code_block_width/100_greater_max_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/doc_comment_code_block_width/50.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/empty_item_single_line/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/empty_item_single_line/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/enum_discrim_align_threshold/40.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/error_on_line_overflow/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/float_literal_trailing_zero/always.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/float_literal_trailing_zero/if-no-postfix.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/float_literal_trailing_zero/never.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/fn_params_layout/compressed.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/fn_params_layout/tall.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/fn_params_layout/vertical.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/fn_params_layout/vertical_style_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/fn_single_line/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/fn_single_line/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/force_explicit_abi/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/force_explicit_abi/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/force_multiline_block/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/force_multiline_block/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_generated_files/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_generated_files/false_with_generated_marker_line_search_limit.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_generated_files/false_with_marker_out_scope_size.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_generated_files/false_with_zero_search_limit.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_generated_files/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_generated_files/true_with_marker_in_scope_size.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_generated_files/true_with_marker_not_in_header.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_macro_bodies/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_macro_bodies/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_macro_matchers/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_macro_matchers/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_strings/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/format_strings/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/group_imports/One-merge_imports.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/group_imports/One-nested.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/group_imports/One-no_reorder.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/group_imports/One.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/group_imports/StdExternalCrate-merge_imports.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/group_imports/StdExternalCrate-nested.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/group_imports/StdExternalCrate-no_reorder.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/group_imports/StdExternalCrate-non_consecutive.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/group_imports/StdExternalCrate.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/hard_tabs/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/hard_tabs/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/hex_literal_case/hex_literal_lower.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/hex_literal_case/hex_literal_preserve.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/hex_literal_case/hex_literal_upper.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/imports_layout/merge_mixed.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/block_args.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/block_array.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/block_call.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/block_chain.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/block_generic.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/block_struct_lit.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/block_trailing_comma_call/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/block_trailing_comma_call/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/block_where_pred.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/default.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/rfc_where.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/visual_args.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/visual_array.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/visual_call.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/visual_chain.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/visual_generics.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/visual_struct_lit.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/visual_trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/indent_style/visual_where_pred.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_arm_blocks/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_arm_blocks/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_arm_indent/attrs.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_arm_indent/guards.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_arm_indent/leading_pipes.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_arm_indent/nested.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_arm_indent/patterns.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_arm_indent/unindent.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_arm_leading_pipes/always.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_arm_leading_pipes/never.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_arm_leading_pipes/preserve.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_block_trailing_comma/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/match_block_trailing_comma/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/merge_derives/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/normalize_comments/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/normalize_comments/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/normalize_doc_attributes/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/normalize_doc_attributes/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/remove_nested_parens/remove_nested_parens.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/reorder_impl_items/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/reorder_impl_items/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/reorder_imports/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/reorder_imports/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/reorder_modules/dolor/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/reorder_modules/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/reorder_modules/ipsum/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/reorder_modules/lorem/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/reorder_modules/sit/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/reorder_modules/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/short_array_element_width_threshold/10.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/short_array_element_width_threshold/20.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/short_array_element_width_threshold/greater_than_max_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/single_line_let_else_max_width/100.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/single_line_let_else_max_width/50.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/single_line_let_else_max_width/zero.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/skip_children/foo/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/skip_children/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/space_before_colon/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/spaces_around_ranges/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/spaces_around_ranges/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/struct_field_align_threshold/20.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/struct_lit_single_line/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/style_edition/overflow_delim_expr_2015.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/style_edition/overflow_delim_expr_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/tab_spaces/2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/tab_spaces/4.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/trailing_comma/always.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/trailing_comma/never.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/trailing_comma/vertical.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/type_punctuation_density/compressed.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/type_punctuation_density/wide.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/use_field_init_shorthand/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/use_field_init_shorthand/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/use_small_heuristics/default.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/use_small_heuristics/max.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/use_small_heuristics/off.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/use_try_shorthand/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/use_try_shorthand/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/where_single_line/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/wrap_comments/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/configs/wrap_comments/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/const-block-items.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/const_generics.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/control-brace-style-always-next-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/control-brace-style-always-same-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/default-field-values.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/direct_const_arg.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/doc-attrib.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/doc-comment-with-example.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/doc.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/dyn_trait.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/else-if-brace-style-always-next-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/else-if-brace-style-always-same-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/else-if-brace-style-closing-next-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/empty-item-single-line-false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/empty_file.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/enum.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/ergonomic_clones.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/existential_type.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/expr-block.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/expr-overflow-delimited.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/expr.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/extern.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/extern_not_explicit.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/file-lines-1.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/file-lines-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/file-lines-3.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/file-lines-4.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/file-lines-5.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/file-lines-6.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/file-lines-7.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/file-lines-item.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn-custom-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn-custom-3.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn-custom-4.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn-custom-6.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn-custom-7.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn-custom-8.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn-custom.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn-param-attributes.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn-simple.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn-single-line/version_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn-single-line/version_two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn_args_indent-block.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/fn_args_layout-vertical.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/frontmatter_compact.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/frontmatter_escaped.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/frontmatter_spaced.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/generic_static.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/hard-tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/hello.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/hello2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/if_while_or_patterns.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/immovable_coroutines.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/impl-restriction.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/impls.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports-impl-only-use.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports-reorder-lines-and-items.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports-reorder-lines.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports-reorder.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports_block_indent.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports_granularity_crate.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports_granularity_default-with-dups.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports_granularity_item-with-dups-StdExternalCrate-no-reorder.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports_granularity_item-with-dups.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports_granularity_item.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports_granularity_module.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports/imports_granularity_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports_raw_identifiers/version_One.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/imports_raw_identifiers/version_Two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/invalid-rust-code-in-doc-comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1021.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1049.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1111.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1120.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1124.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1127.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1158.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1177.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1192.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1210/a.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1210/b.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1210/c.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1210/d.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1210/e.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1211.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1216.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1239.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1278.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1350.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1366.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1468.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1693.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1800.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-1914.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2025.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2111.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2164.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2179/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2179/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2256.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2342.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2445.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2446.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2479.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2482/a.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2482/b.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2482/c.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2496.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2520.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2523.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2582.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2641.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2644.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2728.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2761.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2781.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2794.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2835.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2863.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2869.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2896.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2916.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2917/packed_simd.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2922.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2927-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2927.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2930.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2936.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2955.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2973.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2977/impl.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2977/trait.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2985.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-2995.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3029.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3038.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3049.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3055/original.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3059.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3066.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3131.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3153.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3158.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3194.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3198.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3213/version_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3213/version_two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3217.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3227/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3234.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3241.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3253/bar.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3253/foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3253/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3253/paths/bar_foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3253/paths/excluded.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3253/paths/foo_bar.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3265.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3270/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3270/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3272/v1.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3272/v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3278/version_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3278/version_two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3295/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3302.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3343.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3423.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3434/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3434/no_entry.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3434/not_skip_macro.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3465.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3494/crlf.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3494/lf.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3508.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3515.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3532.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3585/extern_crate.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3585/reorder_imports_disabled.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3585/reorder_imports_enabled.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3585/use.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3636.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3639.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3651.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3665/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3665/not_skip_attribute.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3665/sub_mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3672.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3675.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3701/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3701/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3709.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3740.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3750.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3751.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3779/ice.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3779/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3786.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3787.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3805.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3840/version-one_hard-tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3840/version-one_soft-tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3840/version-two_hard-tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3840/version-two_soft-tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3984.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-3987/format_macro_bodies_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4018.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4036/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4036/three.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4036/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4041.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4079.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4120.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4243.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4244.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4245.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4312.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4381/style_edition_2015.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4382.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4398.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4427.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-447.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4530.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4577.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4603.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4615/minimum_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4643.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4646.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4656/format_me_please.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4656/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4656/lib2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4689/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4689/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4791/buggy.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4791/trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4808.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4816/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4926/deeply_nested_struct.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4926/deeply_nested_struct_with_long_field_names.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4926/deeply_nested_struct_with_many_fields.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4926/enum_struct_field.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4926/minimum_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4926/struct_with_long_field_names.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4926/struct_with_many_fields.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4984/minimum_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4984/multi_line_derive.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-4984/multiple_comments_within.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5011.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5023.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5030.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5042/multi-line_comment_with_trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5042/multi-line_comment_without_trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5042/single-line_comment_with_trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5042/single-line_comment_without_trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5088/deeply_nested_long_comment_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5088/very_long_comment_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-510.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5136-1.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5136-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5136-3.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5136-4.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5136-5.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5157/indented_itemized_markdown_blockquote.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5157/nested_itemized_markdown_blockquote.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5157/support_itemized_markdown_blockquote.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5234.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5238/markdown_header_wrap_comments_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5238/markdown_header_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5260.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5270/merge_derives_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-539.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5488.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5586.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5655/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5655/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5791.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5801/attribute_unexpectedly_wraps_before_max_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5801/comment_unexpectedly_wraps_before_max_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5835.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5852/default.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5852/horizontal.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5852/horizontal_vertical.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5852/issue_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5852/split.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5852/vertical.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5935.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-5987/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6059/repro.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6147/case_rustfmt_v1.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6147/case_rustfmt_v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6202/long_pat.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6243.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6333.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6561/trait-fn.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6561/variadic.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6607/fn-type.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6651/custom_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6651/default.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6788.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6795.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6825.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-683.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6863/empty-stmt.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6863/fn-stmts.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-6985.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-7011.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-7054.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-7056.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-811.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-850.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-855.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-913.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-945.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue-977.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_1306.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_3245.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_3561.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_3839.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_3844.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_3853.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_3868.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4032.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4037.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4057.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4086.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4257.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4322.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4374.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4475.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4528.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4579.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4584.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4636.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4675.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4823.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4854.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4911.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4943.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4954.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_4963.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5086.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5686.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5721.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5730.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5735.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5739.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5882.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5912.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5920_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5920_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5982_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_5982_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_6209.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_6381_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_6558.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_6801.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_6831_style_edition_2021.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_6831_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_6831_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_7003_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_7003_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_7036.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_7055_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_7055_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_7088_stable.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/issue_7088_unstable.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/item-brace-style-always-next-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/item-brace-style-prefer-same-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/item-brace-style-same-line-where.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/itemized-blocks/no_wrap.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/itemized-blocks/rewrite_fail.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/itemized-blocks/urls.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/itemized-blocks/wrap.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/label_break.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/large-block.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/large_vec.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/lazy_staic_before_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/lazy_static.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/let_chains.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/let_else.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/let_else_v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/long-fn-1/version_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/long-fn-1/version_two.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/long-match-arms-brace-newline.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/long-use-statement-issue-3154.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/long_field_access.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/loop.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/macro_not_expr.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/macro_rules.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/macros.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/macros/rewrite-const-item.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/markdown-comment-with-options.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/markdown-comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/match-block-trailing-comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/match-flattening.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/match-nowrap-trailing-comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/match-nowrap.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/match.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/match_overflow_expr.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/max-line-length-in-chars.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/merge_imports_true_compat.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/mod-1.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/mod-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/mod_skip_child.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/multiple.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/mut-restriction.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/mut_ref.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/negative-impl.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/nested-if-else.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/nested_skipped/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/nestedmod/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/nestedmod/mod2a.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/nestedmod/mod2b.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/nestedmod/mod2c.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/nestedmod/mymod1/mod3a.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/nestedmod/submod2/a.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/nestedmod/submod2/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/no_arg_with_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/no_new_line_beginning.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/non-lifetime-binders.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/non_ascii_numerics_import_asciibetically.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/non_ascii_numerics_import_versionsort.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/normalize_doc_attributes_should_not_imply_format_doc_comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/normalize_multiline_doc_attribute.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/one_line_if_v1.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/one_line_if_v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/other.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/paren.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/path_clarity/foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/path_clarity/foo/bar.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/paths.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/pattern-condense-wildcards.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/pattern.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/pin_sugar.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/postfix-match/pf-match.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/precise-capturing.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/preserves_carriage_return_for_unix.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/preserves_carriage_return_for_windows.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/pub-restricted.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/remove_blank_lines.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder-impl-items.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/A2/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/ABCD/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/ZYXW/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/ZYXW_/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/ZY_XW/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/Z_YXW/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/_ZYXW/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/_abcd/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/a1/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/abcde/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/disabled_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/disabled_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/enabled_style_edition_2015.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/enabled_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/enabled_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/u128/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/u16/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/u256/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/u32/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/u64/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/u8/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/u_zzz/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/ua/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/usize/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/uz/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v0/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v00/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v000/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v001/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v009/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v00t/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v01/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v010/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v09/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v0s/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v0u/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v1/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v10/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/v9/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/w005s09t/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/w5s009t/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/x64/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/x86/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/x86_128/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/x86_32/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/x86_64/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/x87/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules/zyxwv/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules_2027/abcde/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/reorder_modules_2027/zyxwv/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/single-line-if-else.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/single-line-macro/v1.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/single-line-macro/v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/skip_macro_invocations/all.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/skip_macro_invocations/all_and_name.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/skip_macro_invocations/config_file.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/skip_macro_invocations/empty.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/skip_macro_invocations/name.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/skip_macro_invocations/name_unknown.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/skip_macro_invocations/names.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/skip_macro_invocations/path_qualified_invocation_mismatch.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/skip_macro_invocations/path_qualified_match.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/skip_macro_invocations/path_qualified_name_mismatch.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/skip_macro_invocations/use_alias_examples.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/soft-wrapping.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/space-not-before-newline.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/spaces-around-ranges.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/statements.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/static.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/string-lit-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/string-lit.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/string_lit_unicode_ws.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/string_punctuation.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/struct-field-attributes.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/struct_field_doc_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/struct_lits.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/struct_lits_multiline.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/struct_lits_visual.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/struct_lits_visual_multiline.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/struct_tuple_visual.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/structs.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/super_let.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/trailing-comma-never.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/trailing-semicolon/loop-bodies-edition-2021-style-edition-2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/trailing-semicolon/loop-bodies-edition-2024-style-edition-2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/trailing-semicolon/loop-bodies.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/trailing_commas.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/trailing_comments/hard_tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/trailing_comments/soft_tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/trait.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/try-conversion.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/try_block.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/try_blocks_heterogeneous.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/tuple.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/tuple_v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/type-alias-where-clauses-with-comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/type-alias-where-clauses.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/type.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/type_alias.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/unicode.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/unions.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/unsafe-binders.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/unsafe-field.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/unsafe-mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/use-identifier-order-mixed-edition.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/use-identifier-order.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/visibility.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/visual-fn-type.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/where-clause-rfc.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/where-clause.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/width-heuristics.rs (100%) rename {tests => src/tools/rustfmt/tests}/source/wrap_comments_should_not_imply_format_doc_comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/5131_crate.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/5131_module.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/5131_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/6639-non-idempotent-block-doc-comments/inner-block-doc-comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/6639-non-idempotent-block-doc-comments/naive-outer-block-comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/6639-non-idempotent-block-doc-comments/outer-block-doc-comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/6639-non-idempotent-block-doc-comments/rustc-sample-1.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/6639-non-idempotent-block-doc-comments/rustc-sample-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/alignment_2633/block_style.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/alignment_2633/horizontal_tactic.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/alignment_2633/visual_style.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/array_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/arrow_in_comments/arrow_in_single_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/arrow_in_comments/multiple_arrows.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/assignment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/associated-items.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/associated-types-bounds-wrapping.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/associated_type_bounds.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/associated_type_defaults.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/async_block.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/async_closure.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/async_fn.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/asyncness.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/attrib-block-expr.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/attrib-extern-crate.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/attrib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/big-impl-block.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/big-impl-visual.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/binary-expr.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/binop-separator-back/bitwise.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/binop-separator-back/comp.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/binop-separator-back/logic.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/binop-separator-back/math.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/binop-separator-back/patterns.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/binop-separator-back/range.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/break-and-continue.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/catch.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_attribute_in_where.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/arch/aarch64.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/arch/arm.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/arch/mips.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/arch/mips64.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/arch/powerpc.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/arch/powerpc64.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/arch/x86.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/bit.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/cache.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/error_macros.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/aarch64.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/freebsd/aarch64.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/freebsd/arm.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/freebsd/auxvec.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/freebsd/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/freebsd/powerpc.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/linux/aarch64.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/linux/arm.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/linux/auxvec.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/linux/cpuinfo.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/linux/mips.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/linux/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/linux/powerpc.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/other.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/detect/os/x86.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_if/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_mod/bar.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_mod/dir/dir1/dir2/wasm32.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_mod/dir/dir1/dir3/wasm32.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_mod/foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_mod/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_mod/other.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_mod/wasm32.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_select.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_select/format_me_please_1.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_select/format_me_please_2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_select/format_me_please_3.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_select/format_me_please_4.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_select/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_select/lib2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/cfg_select_stable.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/chain_yield_with_comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/chains-visual.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/chains.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/chains_with_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/closure-block-inside-macro.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/closure-block-labels.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/closure.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comment-inside-const.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comment-not-disappear.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comment2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comment3.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comment4.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comment5.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comment6.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comment_crlf_newline.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comments-fn.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comments-in-lists/format-doc-comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comments-in-lists/wrap-comments-false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comments-in-lists/wrap-comments-not-normalized.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comments-in-lists/wrap-comments-true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/comments_unicode.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/blank_lines_lower_bound/1.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/blank_lines_upper_bound/1.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/blank_lines_upper_bound/2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/brace_style/fn_always_next_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/brace_style/fn_prefer_same_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/brace_style/fn_same_line_where.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/brace_style/item_always_next_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/brace_style/item_prefer_same_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/brace_style/item_same_line_where.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/chain_width/always.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/chain_width/small.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/chain_width/tiny.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/combine_control_expr/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/combine_control_expr/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/comment_width/above.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/comment_width/below.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/comment_width/ignore.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/condense_wildcard_suffixes/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/condense_wildcard_suffixes/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/control_brace_style/always_next_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/control_brace_style/always_same_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/control_brace_style/closing_next_line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/disable_all_formatting/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/disable_all_formatting/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/doc_comment_code_block_small_heuristics/default-to-max.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/doc_comment_code_block_small_heuristics/max-to-default.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/doc_comment_code_block_width/100.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/doc_comment_code_block_width/100_greater_max_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/doc_comment_code_block_width/50.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/empty_item_single_line/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/empty_item_single_line/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/enum_discrim_align_threshold/40.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/error_on_line_overflow/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/error_on_unformatted/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/float_literal_trailing_zero/always.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/float_literal_trailing_zero/always_spaces_around_ranges_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/float_literal_trailing_zero/if-no-postfix.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/float_literal_trailing_zero/if-no-postfix_spaces_around_ranges_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/float_literal_trailing_zero/never.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/float_literal_trailing_zero/never_spaces_around_ranges_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/float_literal_trailing_zero/preserve.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/float_literal_trailing_zero/preserve_spaces_around_ranges_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/fn_params_layout/compressed.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/fn_params_layout/tall.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/fn_params_layout/vertical.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/fn_params_layout/vertical_style_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/fn_single_line/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/fn_single_line/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/force_explicit_abi/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/force_explicit_abi/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/force_multiline_block/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/force_multiline_block/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_generated_files/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_generated_files/false_with_generated_marker_line_search_limit.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_generated_files/false_with_marker_out_scope_size.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_generated_files/false_with_zero_search_limit.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_generated_files/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_generated_files/true_with_marker_in_scope_size.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_generated_files/true_with_marker_not_in_header.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_macro_bodies/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_macro_bodies/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_macro_matchers/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_macro_matchers/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_strings/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/format_strings/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/group_imports/One-merge_imports.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/group_imports/One-nested.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/group_imports/One-no_reorder.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/group_imports/One.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/group_imports/StdExternalCrate-merge_imports.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/group_imports/StdExternalCrate-nested.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/group_imports/StdExternalCrate-no_reorder.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/group_imports/StdExternalCrate-non_consecutive.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/group_imports/StdExternalCrate.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/hard_tabs/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/hard_tabs/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/hex_literal_case/hex_literal_lower.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/hex_literal_case/hex_literal_preserve.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/hex_literal_case/hex_literal_upper.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/imports_indent/block.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/imports_layout/horizontal_vertical.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/imports_layout/merge_mixed.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/imports_layout/mixed.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/block_args.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/block_array.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/block_call.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/block_chain.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/block_generic.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/block_struct_lit.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/block_tab_spaces_call.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/block_trailing_comma_call/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/block_trailing_comma_call/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/block_where_pred.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/default.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/rfc_control.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/rfc_where.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/visual_args.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/visual_array.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/visual_call.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/visual_chain.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/visual_generics.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/visual_struct_lit.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/visual_trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/indent_style/visual_where_pred.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_blocks/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_blocks/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_indent/attrs.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_indent/guards.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_indent/leading_pipes.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_indent/nested.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_indent/noindent-tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_indent/noindent.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_indent/patterns.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_indent/unindent.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_leading_pipes/always.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_leading_pipes/never.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_arm_leading_pipes/preserve.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_block_trailing_comma/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/match_block_trailing_comma/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/merge_derives/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/normalize_comments/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/normalize_comments/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/normalize_doc_attributes/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/normalize_doc_attributes/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/remove_nested_parens/remove_nested_parens.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/reorder_impl_items/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/reorder_impl_items/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/reorder_imports/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/reorder_imports/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/reorder_modules/dolor/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/reorder_modules/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/reorder_modules/ipsum/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/reorder_modules/lorem/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/reorder_modules/sit/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/reorder_modules/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/short_array_element_width_threshold/10.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/short_array_element_width_threshold/20.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/short_array_element_width_threshold/greater_than_max_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/single_line_let_else_max_width/100.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/single_line_let_else_max_width/50.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/single_line_let_else_max_width/zero.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/skip_children/foo/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/skip_children/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/space_before_colon/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/spaces_around_ranges/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/spaces_around_ranges/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/struct_field_align_threshold/20.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/struct_lit_single_line/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/style_edition/overflow_delim_expr_2015.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/style_edition/overflow_delim_expr_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/tab_spaces/2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/tab_spaces/4.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/trailing_comma/always.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/trailing_comma/never.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/trailing_comma/vertical.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/trailing_semicolon/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/trailing_semicolon/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/type_punctuation_density/compressed.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/type_punctuation_density/wide.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/use_field_init_shorthand/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/use_field_init_shorthand/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/use_small_heuristics/default.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/use_small_heuristics/max.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/use_small_heuristics/off.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/use_try_shorthand/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/use_try_shorthand/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/version/mapped.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/where_single_line/true-with-brace-style.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/where_single_line/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/wrap_comments/false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/configs/wrap_comments/true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/const-block-items.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/const-generics.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/const_generics.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/const_trait.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/control-brace-style-always-next-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/control-brace-style-always-same-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/default-field-values.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/direct_const_arg.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/doc-attrib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/doc-comment-with-example.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/doc-of-generic-item.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/doc.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/dyn_trait.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/else-if-brace-style-always-next-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/else-if-brace-style-always-same-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/else-if-brace-style-closing-next-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/empty-item-single-line-false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/empty-tuple-no-conversion-to-unit-struct.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/empty_file.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/enum.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/ergonomic_clones.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/existential_type.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/expr-block.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/expr-overflow-delimited.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/expr.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/extern-rust.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/extern.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/extern_not_explicit.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/field-representing-types.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/file-lines-1.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/file-lines-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/file-lines-3.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/file-lines-4.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/file-lines-5.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/file-lines-6.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/file-lines-7.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/file-lines-item.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/final-kw.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-args-with-last-line-comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-custom-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-custom-3.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-custom-4.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-custom-6.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-custom-7.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-custom-8.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-custom.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-param-attributes.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-simple.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-single-line/version_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-single-line/version_two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn-ty.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn_args_indent-block.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn_args_layout-vertical.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/fn_once.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/format_strings/issue-202.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/format_strings/issue-2833.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/format_strings/issue-3263.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/format_strings/issue-687.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/format_strings/issue564.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/frontmatter_compact.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/frontmatter_escaped.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/frontmatter_spaced.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/generic_static.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/guard_patterns.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/hard-tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/hello.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/if_while_or_patterns.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/immovable_coroutines.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/impl-restriction.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/impl.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/impls.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/import-fencepost-length.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports-impl-only-use.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports-reorder-lines-and-items.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports-reorder-lines.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports-reorder.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports_2021_edition.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports_block_indent.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports_granularity_crate.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports_granularity_default-with-dups.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports_granularity_item-with-dups-StdExternalCrate-no-reorder.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports_granularity_item-with-dups.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports_granularity_item.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports_granularity_module.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports/imports_granularity_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports_raw_identifiers/version_One.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/imports_raw_identifiers/version_Two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/indented-impl.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/inner-module-path/b.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/inner-module-path/c/d.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/inner-module-path/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/invalid-rust-code-in-doc-comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1021.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1049.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1055.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1096.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1111.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1113.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1120.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1124.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1127.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1158.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1177.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1192.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1210/a.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1210/b.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1210/c.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1210/d.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1210/e.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1211.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1214.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1216.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1239.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1247.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1255.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1278.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1350.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1366.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1397.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1468.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1598.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1624.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1681.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1693.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1703.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1800.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1802.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1824.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-1914.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2025.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2103.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2111.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2123.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2164.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2179/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2179/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2197.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2256.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2324.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2329.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2342.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2346.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2401.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2445.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2446.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2479.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2482/a.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2482/b.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2482/c.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2496.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2520.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2523.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2526.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2534/format_macro_matchers_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2534/format_macro_matchers_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2551.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2554.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2582.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2641.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2644.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2673-nonmodrs-mods/foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2673-nonmodrs-mods/foo/bar.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2673-nonmodrs-mods/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2728.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2759.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2761.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2781.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2794.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2810.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2835.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2863.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2869.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2896.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2916.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2917/minimal.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2917/packed_simd.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2922.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2927-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2927.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2930.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2936.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2941.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2955.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2973.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2976.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2977/block.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2977/impl.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2977/item.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2977/trait.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2985.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-2995.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3029.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3032.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3038.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3043.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3049.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3055/backtick.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3055/empty-code-block.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3055/original.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3059.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3066.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3105.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3118.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3124.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3131.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3132.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3153.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3158.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3182.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3184.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3194.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3198.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3213/version_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3213/version_two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3217.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3224.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3227/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3227/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3234.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3241.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3253/bar.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3253/foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3253/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3253/paths/bar_foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3253/paths/excluded.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3253/paths/foo_bar.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3265.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3270/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3270/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3270/wrap.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3272/v1.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3272/v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3278/version_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3278/version_two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3295/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3302.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3304.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3314.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3343.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3423.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3434/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3434/no_entry.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3434/not_skip_macro.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3442.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3465.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3494/crlf.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3494/lf.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3499.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3508.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3515.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3532.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3539.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3554.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3567.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3568.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3585/extern_crate.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3585/reorder_imports_disabled.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3585/reorder_imports_enabled.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3585/use.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3595.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3601.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3614/version_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3614/version_two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3636.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3639.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3645.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3651.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3665/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3665/not_skip_attribute.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3665/sub_mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3672.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3675.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3701/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3701/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3709.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3711.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3717.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3718.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3740.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3741.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3750.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3751.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3759.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3779/ice.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3779/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3786.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3787.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3805.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3815.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3840/version-one_hard-tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3840/version-one_soft-tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3840/version-two_hard-tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3840/version-two_soft-tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3845.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3882.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3974.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3984.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3987/format_macro_bodies_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-3987/format_macro_bodies_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4018.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4020.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4029.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4036/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4036/three.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4036/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4041.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4068.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4079.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4115.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4120.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4152.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4159.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4210-disabled.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4210.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4243.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4244.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4245.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4310.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4312.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4313.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4381/style_edition_2015.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4381/style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4382.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4398.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4427.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-447.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4530.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4577.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4603.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4615/minimum_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4643.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4646.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4656/format_me_please.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4656/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4656/lib2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4689/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4689/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4791/buggy.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4791/issue_4928.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4791/no_trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4791/trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4808.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4816/lib.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4908-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4908.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4926/deeply_nested_struct.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4926/deeply_nested_struct_with_long_field_names.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4926/deeply_nested_struct_with_many_fields.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4926/enum_struct_field.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4926/minimum_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4926/struct_with_long_field_names.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4926/struct_with_many_fields.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4984/minimum_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4984/multi_line_derive.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4984/multiple_comments_within.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-4984/should_not_change.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5005/minimum_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5009/1_minimum_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5009/2_many_in_connectors_in_pattern.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5009/3_nested_for_loop_with_connector_in_pattern.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5009/4_nested_for_loop_with_if_elseif_else.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5009/5_nested_for_loop_with_connector_in_if_elseif_else.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5009/6_deeply_nested_for_loop_with_connector_in_pattern.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5011.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5012/trailing_comma_always.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5012/trailing_comma_never.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5023.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5030.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5033/minimum_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5033/nested_modules.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5042/multi-line_comment_with_trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5042/multi-line_comment_without_trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5042/single-line_comment_with_trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5042/single-line_comment_without_trailing_comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5066/multi_line_struct_trailing_comma_always_struct_lit_width_0.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5066/multi_line_struct_trailing_comma_never_struct_lit_width_0.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5066/multi_line_struct_with_trailing_comma_always.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5066/multi_line_struct_with_trailing_comma_never.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5066/with_trailing_comma_always.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5066/with_trailing_comma_never.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/deeply_nested_long_comment_wrap_comments_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/deeply_nested_long_comment_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/multi_line_itemized_block_wrap_comments_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/multi_line_itemized_block_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/multi_line_text_with_itemized_block_wrap_comments_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/multi_line_text_with_itemized_block_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/single_line_itemized_block_wrap_comments_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/single_line_itemized_block_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/start_with_empty_comment_wrap_comments_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/start_with_empty_comment_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/very_long_comment_wrap_comments_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5088/very_long_comment_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5095.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-510.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5125/attributes_in_formal_fuction_parameter.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5125/long_parameter_in_different_positions.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5125/minimum_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5125/with_leading_and_inline_comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5136-1.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5136-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5136-3.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5136-4.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5136-5.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5151/minimum_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5157/indented_itemized_markdown_blockquote.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5157/nested_itemized_markdown_blockquote.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5157/support_itemized_markdown_blockquote.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5234.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5238/markdown_header_wrap_comments_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5238/markdown_header_wrap_comments_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5244/unwrapped.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5244/wrapped.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5260.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5270/merge_derives_false.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5270/merge_derives_true.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5358.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-539.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5488.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5568.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5586.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5655/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5655/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5791.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5797/retain_trailing_semicolon.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5801/attribute_does_not_wrap_within_max_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5801/attribute_unexpectedly_wraps_before_max_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5801/comment_does_not_wrap_within_max_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5801/comment_unexpectedly_wraps_before_max_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5835.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5852/default.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5852/horizontal.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5852/horizontal_vertical.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5852/issue_example.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5852/split.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5852/vertical.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5871.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5885.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5935.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5987/one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-5987/two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6059/additional.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6059/repro.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6105.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6109.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6147/case_rustfmt_v1.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6147/case_rustfmt_v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6202/long_pat.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6243.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6333-2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6333.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-64.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6411.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6561/trait-fn.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6561/variadic.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6607/fn-type.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6651/custom_width.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6651/default.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6788.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6795.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6825.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-683.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6863/empty-stmt.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6863/fn-stmts.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-691.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-6985.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-7011.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-7054.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-7056.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-770.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-811.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-831.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-850.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-855.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-913.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-945.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue-977.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_1306.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_3033.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_3245.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_3561.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_3839.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_3844.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_3853.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_3854.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_3868.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_3934.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_3937.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4031.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4032.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4037.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4049.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4057.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4086.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4110.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4257.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4322.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4350.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4374.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4467.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4475.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4522.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4528.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4545.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4573.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4579.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4584.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4635.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4636.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4675.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4823.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4850.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4854.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4868.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4911.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4936.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4943.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4954.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_4963.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5086.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5273.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5399.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5533.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5668.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5676.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5686.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5691.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5721.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5728.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5729.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5730.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5735.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5739.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5882.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5907.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5912.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5920_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5920_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5973.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5982_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_5982_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6069.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6082.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6158.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6159.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6209.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6381_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6381_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6513.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6558.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6801.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6831_style_edition_2021.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6831_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6831_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6859_hard_tab_breaks.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6869.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6959.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6984_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_6984_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_7003_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_7003_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_7036.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_7055_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_7055_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_7057.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_7062.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_7088_stable.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/issue_7088_unstable.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/item-brace-style-always-next-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/item-brace-style-prefer-same-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/item-brace-style-same-line-where.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/itemized-blocks/no_wrap.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/itemized-blocks/rewrite_fail.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/itemized-blocks/urls.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/itemized-blocks/wrap.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/keywords.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/label_break.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/large-block.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/large_vec.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/lazy_staic_before_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/lazy_static.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/let_chains.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/let_else.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/let_else_v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/long-fn-1/version_one.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/long-fn-1/version_two.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/long-match-arms-brace-newline.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/long-use-statement-issue-3154.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/long_field_access.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/loop.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/macro_not_expr.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/macro_rules.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/macro_rules_semi.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/macros.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/macros/rewrite-const-item.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/markdown-comment-with-options.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/markdown-comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/match-block-trailing-comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/match-flattening.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/match-nowrap-trailing-comma.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/match-nowrap.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/match.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/match_overflow_expr.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/max-line-length-in-chars.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/merge_imports_true_compat.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/mod-1.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/mod-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/mod_skip_child.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/mulit-file.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/multiline_string_in_macro_def.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/multiple.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/mut-restriction.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/mut_ref.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/named-fn-trait-parameters.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/negative-bounds.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/negative-impl.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/nested-if-else.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/nested-visual-block.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/nested_skipped/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/nestedmod/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/nestedmod/mod2a.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/nestedmod/mod2b.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/nestedmod/mod2c.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/nestedmod/mymod1/mod3a.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/nestedmod/submod2/a.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/nestedmod/submod2/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/no_arg_with_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/no_new_line_beginning.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/non-lifetime-binders.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/non_ascii_numerics_import_asciibetically.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/non_ascii_numerics_import_versionsort.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/normalize_doc_attributes_should_not_imply_format_doc_comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/normalize_multiline_doc_attribute.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/obsolete_in_place.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/one_line_if_v1.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/one_line_if_v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/other.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/paren.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/path_clarity/foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/path_clarity/foo/bar.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/paths.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/pattern-condense-wildcards.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/pattern.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/pin_sugar.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/postfix-match/pf-match.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/postfix-yield.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/precise-capturing.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/preserves_carriage_return_for_unix.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/preserves_carriage_return_for_windows.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/pub-restricted.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/raw-lifetimes.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/raw_identifiers.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/remove_blank_lines.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder-impl-items.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/A2/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/ABCD/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/ZYXW/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/ZYXW_/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/ZY_XW/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/Z_YXW/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/_ZYXW/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/_abcd/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/a1/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/abcde/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/disabled_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/disabled_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/enabled_style_edition_2015.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/enabled_style_edition_2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/enabled_style_edition_2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/u128/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/u16/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/u256/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/u32/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/u64/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/u8/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/u_zzz/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/ua/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/usize/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/uz/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v0/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v00/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v000/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v001/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v009/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v00t/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v01/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v010/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v09/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v0s/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v0u/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v1/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v10/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/v9/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/w005s09t/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/w5s009t/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/x64/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/x86/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/x86_128/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/x86_32/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/x86_64/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/x87/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules/zyxwv/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules_2027/abcde/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/reorder_modules_2027/zyxwv/mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/return-type-notation.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/should_not_format_string_when_format_strings_is_not_set.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/single-line-if-else.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/single-line-macro/v1.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/single-line-macro/v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip/foo.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip/main.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip/preserve_trailing_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_macro_invocations/all.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_macro_invocations/all_and_name.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_macro_invocations/config_file.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_macro_invocations/empty.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_macro_invocations/name.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_macro_invocations/name_unknown.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_macro_invocations/names.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_macro_invocations/path_qualified_invocation_mismatch.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_macro_invocations/path_qualified_match.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_macro_invocations/path_qualified_name_mismatch.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_macro_invocations/use_alias_examples.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/skip_mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/soft-wrapping.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/space-not-before-newline.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/spaces-around-ranges.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/splat.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/statements.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/static.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/string-lit-2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/string-lit-custom.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/string-lit.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/string_lit_unicode_ws.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/string_punctuation.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/struct-field-attributes.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/struct_field_doc_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/struct_lits.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/struct_lits_multiline.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/struct_lits_visual.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/struct_lits_visual_multiline.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/struct_tuple_visual.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/structs.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/style_edition/default.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/style_edition/follows_edition.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/style_edition/overrides_edition_when_set.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/super_let.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/trailing-comma-never.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/trailing-semicolon/loop-bodies-edition-2021-style-edition-2027.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/trailing-semicolon/loop-bodies-edition-2024-style-edition-2024.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/trailing-semicolon/loop-bodies.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/trailing_commas.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/trailing_comments/hard_tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/trailing_comments/soft_tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/trait.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/try-conversion.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/try_block.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/try_blocks_heterogeneous.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/tuple.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/tuple_v2.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/type-alias-where-clauses-with-comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/type-alias-where-clauses.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/type.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/type_alias.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/unicode.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/unindent_if_else_cond_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/unions.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/unsafe-binders.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/unsafe-field.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/unsafe-mod.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/unsafe_attributes.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/unsafe_extern_blocks.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/use-identifier-order-mixed-edition.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/use-identifier-order.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/visibility.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/visual-fn-type.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/where-clause-rfc.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/where-clause.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/width-heuristics.rs (100%) rename {tests => src/tools/rustfmt/tests}/target/wrap_comments_should_not_imply_format_doc_comments.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/deprecated_skip.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/invalid_attribute.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/issue_3950.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/issue_4968.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/issue_6442.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/issue_6632.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/issue_6826.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/issue_6850.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/line_overflow.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/line_overflow_tabs.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/line_overflow_with_trailing_whitespace.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/lost_comment.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/multiple_errors.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/trailing_whitespace.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/trailing_whitespace_overflow.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/snapshots/unicode_trailing_whitespace.snap (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/deprecated_skip.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/invalid_attribute.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/issue_3950.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/issue_4968.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/issue_6442.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/issue_6632.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/issue_6826.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/issue_6850.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/line_overflow.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/line_overflow_tabs.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/line_overflow_with_trailing_whitespace.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/lost_comment.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/multiple_errors.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/trailing_whitespace.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/trailing_whitespace_overflow.rs (100%) rename {tests => src/tools/rustfmt/tests}/warning/source/unicode_trailing_whitespace.rs (100%) rename {tests => src/tools/rustfmt/tests}/writemode/source/fn-single-line.rs (100%) rename {tests => src/tools/rustfmt/tests}/writemode/source/json.rs (100%) rename {tests => src/tools/rustfmt/tests}/writemode/source/modified.rs (100%) rename {tests => src/tools/rustfmt/tests}/writemode/source/stdin.rs (100%) rename {tests => src/tools/rustfmt/tests}/writemode/target/checkstyle.xml (100%) rename {tests => src/tools/rustfmt/tests}/writemode/target/modified.txt (100%) rename {tests => src/tools/rustfmt/tests}/writemode/target/output.json (100%) rename {tests => src/tools/rustfmt/tests}/writemode/target/stdin.json (100%) rename {tests => src/tools/rustfmt/tests}/writemode/target/stdin.xml (100%) rename triagebot.toml => src/tools/rustfmt/triagebot.toml (100%) diff --git a/.editorconfig b/src/tools/rustfmt/.editorconfig similarity index 100% rename from .editorconfig rename to src/tools/rustfmt/.editorconfig diff --git a/.gitattributes b/src/tools/rustfmt/.gitattributes similarity index 100% rename from .gitattributes rename to src/tools/rustfmt/.gitattributes diff --git a/.github/FUNDING.yml b/src/tools/rustfmt/.github/FUNDING.yml similarity index 100% rename from .github/FUNDING.yml rename to src/tools/rustfmt/.github/FUNDING.yml diff --git a/.github/ISSUE_TEMPLATE/bug.md b/src/tools/rustfmt/.github/ISSUE_TEMPLATE/bug.md similarity index 100% rename from .github/ISSUE_TEMPLATE/bug.md rename to src/tools/rustfmt/.github/ISSUE_TEMPLATE/bug.md diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/src/tools/rustfmt/.github/ISSUE_TEMPLATE/feature-request.md similarity index 100% rename from .github/ISSUE_TEMPLATE/feature-request.md rename to src/tools/rustfmt/.github/ISSUE_TEMPLATE/feature-request.md diff --git a/.github/ISSUE_TEMPLATE/ice.md b/src/tools/rustfmt/.github/ISSUE_TEMPLATE/ice.md similarity index 100% rename from .github/ISSUE_TEMPLATE/ice.md rename to src/tools/rustfmt/.github/ISSUE_TEMPLATE/ice.md diff --git a/.github/ISSUE_TEMPLATE/regression.md b/src/tools/rustfmt/.github/ISSUE_TEMPLATE/regression.md similarity index 100% rename from .github/ISSUE_TEMPLATE/regression.md rename to src/tools/rustfmt/.github/ISSUE_TEMPLATE/regression.md diff --git a/.github/pull_request_template.md b/src/tools/rustfmt/.github/pull_request_template.md similarity index 100% rename from .github/pull_request_template.md rename to src/tools/rustfmt/.github/pull_request_template.md diff --git a/.github/workflows/check_diff.yml b/src/tools/rustfmt/.github/workflows/check_diff.yml similarity index 100% rename from .github/workflows/check_diff.yml rename to src/tools/rustfmt/.github/workflows/check_diff.yml diff --git a/.github/workflows/clippy.yml b/src/tools/rustfmt/.github/workflows/clippy.yml similarity index 100% rename from .github/workflows/clippy.yml rename to src/tools/rustfmt/.github/workflows/clippy.yml diff --git a/.github/workflows/integration.yml b/src/tools/rustfmt/.github/workflows/integration.yml similarity index 100% rename from .github/workflows/integration.yml rename to src/tools/rustfmt/.github/workflows/integration.yml diff --git a/.github/workflows/rustdoc_check.yml b/src/tools/rustfmt/.github/workflows/rustdoc_check.yml similarity index 100% rename from .github/workflows/rustdoc_check.yml rename to src/tools/rustfmt/.github/workflows/rustdoc_check.yml diff --git a/.github/workflows/test.yml b/src/tools/rustfmt/.github/workflows/test.yml similarity index 100% rename from .github/workflows/test.yml rename to src/tools/rustfmt/.github/workflows/test.yml diff --git a/.github/workflows/upload-assets.yml b/src/tools/rustfmt/.github/workflows/upload-assets.yml similarity index 100% rename from .github/workflows/upload-assets.yml rename to src/tools/rustfmt/.github/workflows/upload-assets.yml diff --git a/.gitignore b/src/tools/rustfmt/.gitignore similarity index 100% rename from .gitignore rename to src/tools/rustfmt/.gitignore diff --git a/CHANGELOG.md b/src/tools/rustfmt/CHANGELOG.md similarity index 100% rename from CHANGELOG.md rename to src/tools/rustfmt/CHANGELOG.md diff --git a/CODE_OF_CONDUCT.md b/src/tools/rustfmt/CODE_OF_CONDUCT.md similarity index 100% rename from CODE_OF_CONDUCT.md rename to src/tools/rustfmt/CODE_OF_CONDUCT.md diff --git a/Cargo.lock b/src/tools/rustfmt/Cargo.lock similarity index 100% rename from Cargo.lock rename to src/tools/rustfmt/Cargo.lock diff --git a/Cargo.toml b/src/tools/rustfmt/Cargo.toml similarity index 100% rename from Cargo.toml rename to src/tools/rustfmt/Cargo.toml diff --git a/Configurations.md b/src/tools/rustfmt/Configurations.md similarity index 100% rename from Configurations.md rename to src/tools/rustfmt/Configurations.md diff --git a/Contributing.md b/src/tools/rustfmt/Contributing.md similarity index 100% rename from Contributing.md rename to src/tools/rustfmt/Contributing.md diff --git a/Design.md b/src/tools/rustfmt/Design.md similarity index 100% rename from Design.md rename to src/tools/rustfmt/Design.md diff --git a/LICENSE-APACHE b/src/tools/rustfmt/LICENSE-APACHE similarity index 100% rename from LICENSE-APACHE rename to src/tools/rustfmt/LICENSE-APACHE diff --git a/LICENSE-MIT b/src/tools/rustfmt/LICENSE-MIT similarity index 100% rename from LICENSE-MIT rename to src/tools/rustfmt/LICENSE-MIT diff --git a/Processes.md b/src/tools/rustfmt/Processes.md similarity index 100% rename from Processes.md rename to src/tools/rustfmt/Processes.md diff --git a/README.md b/src/tools/rustfmt/README.md similarity index 100% rename from README.md rename to src/tools/rustfmt/README.md diff --git a/Subtree sync procedure.md b/src/tools/rustfmt/Subtree sync procedure.md similarity index 100% rename from Subtree sync procedure.md rename to src/tools/rustfmt/Subtree sync procedure.md diff --git a/atom.md b/src/tools/rustfmt/atom.md similarity index 100% rename from atom.md rename to src/tools/rustfmt/atom.md diff --git a/bootstrap.sh b/src/tools/rustfmt/bootstrap.sh similarity index 100% rename from bootstrap.sh rename to src/tools/rustfmt/bootstrap.sh diff --git a/build.rs b/src/tools/rustfmt/build.rs similarity index 100% rename from build.rs rename to src/tools/rustfmt/build.rs diff --git a/check_diff/.gitignore b/src/tools/rustfmt/check_diff/.gitignore similarity index 100% rename from check_diff/.gitignore rename to src/tools/rustfmt/check_diff/.gitignore diff --git a/check_diff/Cargo.lock b/src/tools/rustfmt/check_diff/Cargo.lock similarity index 100% rename from check_diff/Cargo.lock rename to src/tools/rustfmt/check_diff/Cargo.lock diff --git a/check_diff/Cargo.toml b/src/tools/rustfmt/check_diff/Cargo.toml similarity index 100% rename from check_diff/Cargo.toml rename to src/tools/rustfmt/check_diff/Cargo.toml diff --git a/check_diff/src/lib.rs b/src/tools/rustfmt/check_diff/src/lib.rs similarity index 100% rename from check_diff/src/lib.rs rename to src/tools/rustfmt/check_diff/src/lib.rs diff --git a/check_diff/src/main.rs b/src/tools/rustfmt/check_diff/src/main.rs similarity index 100% rename from check_diff/src/main.rs rename to src/tools/rustfmt/check_diff/src/main.rs diff --git a/check_diff/tests/bash_commands.rs b/src/tools/rustfmt/check_diff/tests/bash_commands.rs similarity index 100% rename from check_diff/tests/bash_commands.rs rename to src/tools/rustfmt/check_diff/tests/bash_commands.rs diff --git a/check_diff/tests/check_diff.rs b/src/tools/rustfmt/check_diff/tests/check_diff.rs similarity index 100% rename from check_diff/tests/check_diff.rs rename to src/tools/rustfmt/check_diff/tests/check_diff.rs diff --git a/check_diff/tests/git.rs b/src/tools/rustfmt/check_diff/tests/git.rs similarity index 100% rename from check_diff/tests/git.rs rename to src/tools/rustfmt/check_diff/tests/git.rs diff --git a/ci/Cargo.lock b/src/tools/rustfmt/ci/Cargo.lock similarity index 100% rename from ci/Cargo.lock rename to src/tools/rustfmt/ci/Cargo.lock diff --git a/ci/Cargo.toml b/src/tools/rustfmt/ci/Cargo.toml similarity index 100% rename from ci/Cargo.toml rename to src/tools/rustfmt/ci/Cargo.toml diff --git a/ci/src/build_and_test.rs b/src/tools/rustfmt/ci/src/build_and_test.rs similarity index 100% rename from ci/src/build_and_test.rs rename to src/tools/rustfmt/ci/src/build_and_test.rs diff --git a/ci/src/clippy_config_check.rs b/src/tools/rustfmt/ci/src/clippy_config_check.rs similarity index 100% rename from ci/src/clippy_config_check.rs rename to src/tools/rustfmt/ci/src/clippy_config_check.rs diff --git a/ci/src/common.rs b/src/tools/rustfmt/ci/src/common.rs similarity index 100% rename from ci/src/common.rs rename to src/tools/rustfmt/ci/src/common.rs diff --git a/ci/src/integration.rs b/src/tools/rustfmt/ci/src/integration.rs similarity index 100% rename from ci/src/integration.rs rename to src/tools/rustfmt/ci/src/integration.rs diff --git a/ci/src/main.rs b/src/tools/rustfmt/ci/src/main.rs similarity index 100% rename from ci/src/main.rs rename to src/tools/rustfmt/ci/src/main.rs diff --git a/config_proc_macro/.gitignore b/src/tools/rustfmt/config_proc_macro/.gitignore similarity index 100% rename from config_proc_macro/.gitignore rename to src/tools/rustfmt/config_proc_macro/.gitignore diff --git a/config_proc_macro/Cargo.lock b/src/tools/rustfmt/config_proc_macro/Cargo.lock similarity index 100% rename from config_proc_macro/Cargo.lock rename to src/tools/rustfmt/config_proc_macro/Cargo.lock diff --git a/config_proc_macro/Cargo.toml b/src/tools/rustfmt/config_proc_macro/Cargo.toml similarity index 100% rename from config_proc_macro/Cargo.toml rename to src/tools/rustfmt/config_proc_macro/Cargo.toml diff --git a/config_proc_macro/src/attrs.rs b/src/tools/rustfmt/config_proc_macro/src/attrs.rs similarity index 100% rename from config_proc_macro/src/attrs.rs rename to src/tools/rustfmt/config_proc_macro/src/attrs.rs diff --git a/config_proc_macro/src/config_type.rs b/src/tools/rustfmt/config_proc_macro/src/config_type.rs similarity index 100% rename from config_proc_macro/src/config_type.rs rename to src/tools/rustfmt/config_proc_macro/src/config_type.rs diff --git a/config_proc_macro/src/item_enum.rs b/src/tools/rustfmt/config_proc_macro/src/item_enum.rs similarity index 100% rename from config_proc_macro/src/item_enum.rs rename to src/tools/rustfmt/config_proc_macro/src/item_enum.rs diff --git a/config_proc_macro/src/item_struct.rs b/src/tools/rustfmt/config_proc_macro/src/item_struct.rs similarity index 100% rename from config_proc_macro/src/item_struct.rs rename to src/tools/rustfmt/config_proc_macro/src/item_struct.rs diff --git a/config_proc_macro/src/lib.rs b/src/tools/rustfmt/config_proc_macro/src/lib.rs similarity index 100% rename from config_proc_macro/src/lib.rs rename to src/tools/rustfmt/config_proc_macro/src/lib.rs diff --git a/config_proc_macro/src/utils.rs b/src/tools/rustfmt/config_proc_macro/src/utils.rs similarity index 100% rename from config_proc_macro/src/utils.rs rename to src/tools/rustfmt/config_proc_macro/src/utils.rs diff --git a/config_proc_macro/tests/smoke.rs b/src/tools/rustfmt/config_proc_macro/tests/smoke.rs similarity index 100% rename from config_proc_macro/tests/smoke.rs rename to src/tools/rustfmt/config_proc_macro/tests/smoke.rs diff --git a/docs/index.html b/src/tools/rustfmt/docs/index.html similarity index 100% rename from docs/index.html rename to src/tools/rustfmt/docs/index.html diff --git a/intellij.md b/src/tools/rustfmt/intellij.md similarity index 100% rename from intellij.md rename to src/tools/rustfmt/intellij.md diff --git a/rust-toolchain b/src/tools/rustfmt/rust-toolchain similarity index 100% rename from rust-toolchain rename to src/tools/rustfmt/rust-toolchain diff --git a/rustfmt.toml b/src/tools/rustfmt/rustfmt.toml similarity index 100% rename from rustfmt.toml rename to src/tools/rustfmt/rustfmt.toml diff --git a/src/attr.rs b/src/tools/rustfmt/src/attr.rs similarity index 100% rename from src/attr.rs rename to src/tools/rustfmt/src/attr.rs diff --git a/src/attr/doc_comment.rs b/src/tools/rustfmt/src/attr/doc_comment.rs similarity index 100% rename from src/attr/doc_comment.rs rename to src/tools/rustfmt/src/attr/doc_comment.rs diff --git a/src/bin/main.rs b/src/tools/rustfmt/src/bin/main.rs similarity index 100% rename from src/bin/main.rs rename to src/tools/rustfmt/src/bin/main.rs diff --git a/src/cargo-fmt/main.rs b/src/tools/rustfmt/src/cargo-fmt/main.rs similarity index 100% rename from src/cargo-fmt/main.rs rename to src/tools/rustfmt/src/cargo-fmt/main.rs diff --git a/src/cargo-fmt/test/message_format.rs b/src/tools/rustfmt/src/cargo-fmt/test/message_format.rs similarity index 100% rename from src/cargo-fmt/test/message_format.rs rename to src/tools/rustfmt/src/cargo-fmt/test/message_format.rs diff --git a/src/cargo-fmt/test/mod.rs b/src/tools/rustfmt/src/cargo-fmt/test/mod.rs similarity index 100% rename from src/cargo-fmt/test/mod.rs rename to src/tools/rustfmt/src/cargo-fmt/test/mod.rs diff --git a/src/cargo-fmt/test/targets.rs b/src/tools/rustfmt/src/cargo-fmt/test/targets.rs similarity index 100% rename from src/cargo-fmt/test/targets.rs rename to src/tools/rustfmt/src/cargo-fmt/test/targets.rs diff --git a/src/chains.rs b/src/tools/rustfmt/src/chains.rs similarity index 100% rename from src/chains.rs rename to src/tools/rustfmt/src/chains.rs diff --git a/src/closures.rs b/src/tools/rustfmt/src/closures.rs similarity index 100% rename from src/closures.rs rename to src/tools/rustfmt/src/closures.rs diff --git a/src/comment.rs b/src/tools/rustfmt/src/comment.rs similarity index 100% rename from src/comment.rs rename to src/tools/rustfmt/src/comment.rs diff --git a/src/config/config_type.rs b/src/tools/rustfmt/src/config/config_type.rs similarity index 100% rename from src/config/config_type.rs rename to src/tools/rustfmt/src/config/config_type.rs diff --git a/src/config/file_lines.rs b/src/tools/rustfmt/src/config/file_lines.rs similarity index 100% rename from src/config/file_lines.rs rename to src/tools/rustfmt/src/config/file_lines.rs diff --git a/src/config/lists.rs b/src/tools/rustfmt/src/config/lists.rs similarity index 100% rename from src/config/lists.rs rename to src/tools/rustfmt/src/config/lists.rs diff --git a/src/config/macro_names.rs b/src/tools/rustfmt/src/config/macro_names.rs similarity index 100% rename from src/config/macro_names.rs rename to src/tools/rustfmt/src/config/macro_names.rs diff --git a/src/config/mod.rs b/src/tools/rustfmt/src/config/mod.rs similarity index 100% rename from src/config/mod.rs rename to src/tools/rustfmt/src/config/mod.rs diff --git a/src/config/options.rs b/src/tools/rustfmt/src/config/options.rs similarity index 100% rename from src/config/options.rs rename to src/tools/rustfmt/src/config/options.rs diff --git a/src/config/style_edition.rs b/src/tools/rustfmt/src/config/style_edition.rs similarity index 100% rename from src/config/style_edition.rs rename to src/tools/rustfmt/src/config/style_edition.rs diff --git a/src/coverage.rs b/src/tools/rustfmt/src/coverage.rs similarity index 100% rename from src/coverage.rs rename to src/tools/rustfmt/src/coverage.rs diff --git a/src/emitter.rs b/src/tools/rustfmt/src/emitter.rs similarity index 100% rename from src/emitter.rs rename to src/tools/rustfmt/src/emitter.rs diff --git a/src/emitter/checkstyle.rs b/src/tools/rustfmt/src/emitter/checkstyle.rs similarity index 100% rename from src/emitter/checkstyle.rs rename to src/tools/rustfmt/src/emitter/checkstyle.rs diff --git a/src/emitter/checkstyle/xml.rs b/src/tools/rustfmt/src/emitter/checkstyle/xml.rs similarity index 100% rename from src/emitter/checkstyle/xml.rs rename to src/tools/rustfmt/src/emitter/checkstyle/xml.rs diff --git a/src/emitter/diff.rs b/src/tools/rustfmt/src/emitter/diff.rs similarity index 100% rename from src/emitter/diff.rs rename to src/tools/rustfmt/src/emitter/diff.rs diff --git a/src/emitter/files.rs b/src/tools/rustfmt/src/emitter/files.rs similarity index 100% rename from src/emitter/files.rs rename to src/tools/rustfmt/src/emitter/files.rs diff --git a/src/emitter/files_with_backup.rs b/src/tools/rustfmt/src/emitter/files_with_backup.rs similarity index 100% rename from src/emitter/files_with_backup.rs rename to src/tools/rustfmt/src/emitter/files_with_backup.rs diff --git a/src/emitter/json.rs b/src/tools/rustfmt/src/emitter/json.rs similarity index 100% rename from src/emitter/json.rs rename to src/tools/rustfmt/src/emitter/json.rs diff --git a/src/emitter/modified_lines.rs b/src/tools/rustfmt/src/emitter/modified_lines.rs similarity index 100% rename from src/emitter/modified_lines.rs rename to src/tools/rustfmt/src/emitter/modified_lines.rs diff --git a/src/emitter/stdout.rs b/src/tools/rustfmt/src/emitter/stdout.rs similarity index 100% rename from src/emitter/stdout.rs rename to src/tools/rustfmt/src/emitter/stdout.rs diff --git a/src/expr.rs b/src/tools/rustfmt/src/expr.rs similarity index 100% rename from src/expr.rs rename to src/tools/rustfmt/src/expr.rs diff --git a/src/format-diff/main.rs b/src/tools/rustfmt/src/format-diff/main.rs similarity index 100% rename from src/format-diff/main.rs rename to src/tools/rustfmt/src/format-diff/main.rs diff --git a/src/format-diff/test/bindgen.diff b/src/tools/rustfmt/src/format-diff/test/bindgen.diff similarity index 100% rename from src/format-diff/test/bindgen.diff rename to src/tools/rustfmt/src/format-diff/test/bindgen.diff diff --git a/src/format_report_formatter.rs b/src/tools/rustfmt/src/format_report_formatter.rs similarity index 100% rename from src/format_report_formatter.rs rename to src/tools/rustfmt/src/format_report_formatter.rs diff --git a/src/formatting.rs b/src/tools/rustfmt/src/formatting.rs similarity index 100% rename from src/formatting.rs rename to src/tools/rustfmt/src/formatting.rs diff --git a/src/formatting/generated.rs b/src/tools/rustfmt/src/formatting/generated.rs similarity index 100% rename from src/formatting/generated.rs rename to src/tools/rustfmt/src/formatting/generated.rs diff --git a/src/formatting/newline_style.rs b/src/tools/rustfmt/src/formatting/newline_style.rs similarity index 100% rename from src/formatting/newline_style.rs rename to src/tools/rustfmt/src/formatting/newline_style.rs diff --git a/src/git-rustfmt/main.rs b/src/tools/rustfmt/src/git-rustfmt/main.rs similarity index 100% rename from src/git-rustfmt/main.rs rename to src/tools/rustfmt/src/git-rustfmt/main.rs diff --git a/src/header.rs b/src/tools/rustfmt/src/header.rs similarity index 100% rename from src/header.rs rename to src/tools/rustfmt/src/header.rs diff --git a/src/ignore_path.rs b/src/tools/rustfmt/src/ignore_path.rs similarity index 100% rename from src/ignore_path.rs rename to src/tools/rustfmt/src/ignore_path.rs diff --git a/src/imports.rs b/src/tools/rustfmt/src/imports.rs similarity index 100% rename from src/imports.rs rename to src/tools/rustfmt/src/imports.rs diff --git a/src/items.rs b/src/tools/rustfmt/src/items.rs similarity index 100% rename from src/items.rs rename to src/tools/rustfmt/src/items.rs diff --git a/src/lib.rs b/src/tools/rustfmt/src/lib.rs similarity index 100% rename from src/lib.rs rename to src/tools/rustfmt/src/lib.rs diff --git a/src/lists.rs b/src/tools/rustfmt/src/lists.rs similarity index 100% rename from src/lists.rs rename to src/tools/rustfmt/src/lists.rs diff --git a/src/macros.rs b/src/tools/rustfmt/src/macros.rs similarity index 100% rename from src/macros.rs rename to src/tools/rustfmt/src/macros.rs diff --git a/src/matches.rs b/src/tools/rustfmt/src/matches.rs similarity index 100% rename from src/matches.rs rename to src/tools/rustfmt/src/matches.rs diff --git a/src/missed_spans.rs b/src/tools/rustfmt/src/missed_spans.rs similarity index 100% rename from src/missed_spans.rs rename to src/tools/rustfmt/src/missed_spans.rs diff --git a/src/modules.rs b/src/tools/rustfmt/src/modules.rs similarity index 100% rename from src/modules.rs rename to src/tools/rustfmt/src/modules.rs diff --git a/src/modules/visitor.rs b/src/tools/rustfmt/src/modules/visitor.rs similarity index 100% rename from src/modules/visitor.rs rename to src/tools/rustfmt/src/modules/visitor.rs diff --git a/src/overflow.rs b/src/tools/rustfmt/src/overflow.rs similarity index 100% rename from src/overflow.rs rename to src/tools/rustfmt/src/overflow.rs diff --git a/src/pairs.rs b/src/tools/rustfmt/src/pairs.rs similarity index 100% rename from src/pairs.rs rename to src/tools/rustfmt/src/pairs.rs diff --git a/src/parse/macros/asm.rs b/src/tools/rustfmt/src/parse/macros/asm.rs similarity index 100% rename from src/parse/macros/asm.rs rename to src/tools/rustfmt/src/parse/macros/asm.rs diff --git a/src/parse/macros/cfg_if.rs b/src/tools/rustfmt/src/parse/macros/cfg_if.rs similarity index 100% rename from src/parse/macros/cfg_if.rs rename to src/tools/rustfmt/src/parse/macros/cfg_if.rs diff --git a/src/parse/macros/cfg_select.rs b/src/tools/rustfmt/src/parse/macros/cfg_select.rs similarity index 100% rename from src/parse/macros/cfg_select.rs rename to src/tools/rustfmt/src/parse/macros/cfg_select.rs diff --git a/src/parse/macros/lazy_static.rs b/src/tools/rustfmt/src/parse/macros/lazy_static.rs similarity index 100% rename from src/parse/macros/lazy_static.rs rename to src/tools/rustfmt/src/parse/macros/lazy_static.rs diff --git a/src/parse/macros/mod.rs b/src/tools/rustfmt/src/parse/macros/mod.rs similarity index 100% rename from src/parse/macros/mod.rs rename to src/tools/rustfmt/src/parse/macros/mod.rs diff --git a/src/parse/mod.rs b/src/tools/rustfmt/src/parse/mod.rs similarity index 100% rename from src/parse/mod.rs rename to src/tools/rustfmt/src/parse/mod.rs diff --git a/src/parse/parser.rs b/src/tools/rustfmt/src/parse/parser.rs similarity index 100% rename from src/parse/parser.rs rename to src/tools/rustfmt/src/parse/parser.rs diff --git a/src/parse/session.rs b/src/tools/rustfmt/src/parse/session.rs similarity index 100% rename from src/parse/session.rs rename to src/tools/rustfmt/src/parse/session.rs diff --git a/src/patterns.rs b/src/tools/rustfmt/src/patterns.rs similarity index 100% rename from src/patterns.rs rename to src/tools/rustfmt/src/patterns.rs diff --git a/src/range.rs b/src/tools/rustfmt/src/range.rs similarity index 100% rename from src/range.rs rename to src/tools/rustfmt/src/range.rs diff --git a/src/release_channel.rs b/src/tools/rustfmt/src/release_channel.rs similarity index 100% rename from src/release_channel.rs rename to src/tools/rustfmt/src/release_channel.rs diff --git a/src/reorder.rs b/src/tools/rustfmt/src/reorder.rs similarity index 100% rename from src/reorder.rs rename to src/tools/rustfmt/src/reorder.rs diff --git a/src/rewrite.rs b/src/tools/rustfmt/src/rewrite.rs similarity index 100% rename from src/rewrite.rs rename to src/tools/rustfmt/src/rewrite.rs diff --git a/src/rustfmt_diff.rs b/src/tools/rustfmt/src/rustfmt_diff.rs similarity index 100% rename from src/rustfmt_diff.rs rename to src/tools/rustfmt/src/rustfmt_diff.rs diff --git a/src/shape.rs b/src/tools/rustfmt/src/shape.rs similarity index 100% rename from src/shape.rs rename to src/tools/rustfmt/src/shape.rs diff --git a/src/skip.rs b/src/tools/rustfmt/src/skip.rs similarity index 100% rename from src/skip.rs rename to src/tools/rustfmt/src/skip.rs diff --git a/src/sort.rs b/src/tools/rustfmt/src/sort.rs similarity index 100% rename from src/sort.rs rename to src/tools/rustfmt/src/sort.rs diff --git a/src/source_file.rs b/src/tools/rustfmt/src/source_file.rs similarity index 100% rename from src/source_file.rs rename to src/tools/rustfmt/src/source_file.rs diff --git a/src/source_map.rs b/src/tools/rustfmt/src/source_map.rs similarity index 100% rename from src/source_map.rs rename to src/tools/rustfmt/src/source_map.rs diff --git a/src/spanned.rs b/src/tools/rustfmt/src/spanned.rs similarity index 100% rename from src/spanned.rs rename to src/tools/rustfmt/src/spanned.rs diff --git a/src/stmt.rs b/src/tools/rustfmt/src/stmt.rs similarity index 100% rename from src/stmt.rs rename to src/tools/rustfmt/src/stmt.rs diff --git a/src/string.rs b/src/tools/rustfmt/src/string.rs similarity index 100% rename from src/string.rs rename to src/tools/rustfmt/src/string.rs diff --git a/src/test/configuration_snippet.rs b/src/tools/rustfmt/src/test/configuration_snippet.rs similarity index 100% rename from src/test/configuration_snippet.rs rename to src/tools/rustfmt/src/test/configuration_snippet.rs diff --git a/src/test/mod.rs b/src/tools/rustfmt/src/test/mod.rs similarity index 100% rename from src/test/mod.rs rename to src/tools/rustfmt/src/test/mod.rs diff --git a/src/test/mod_resolver.rs b/src/tools/rustfmt/src/test/mod_resolver.rs similarity index 100% rename from src/test/mod_resolver.rs rename to src/tools/rustfmt/src/test/mod_resolver.rs diff --git a/src/test/parser.rs b/src/tools/rustfmt/src/test/parser.rs similarity index 100% rename from src/test/parser.rs rename to src/tools/rustfmt/src/test/parser.rs diff --git a/src/types.rs b/src/tools/rustfmt/src/types.rs similarity index 100% rename from src/types.rs rename to src/tools/rustfmt/src/types.rs diff --git a/src/utils.rs b/src/tools/rustfmt/src/utils.rs similarity index 100% rename from src/utils.rs rename to src/tools/rustfmt/src/utils.rs diff --git a/src/vertical.rs b/src/tools/rustfmt/src/vertical.rs similarity index 100% rename from src/vertical.rs rename to src/tools/rustfmt/src/vertical.rs diff --git a/src/visitor.rs b/src/tools/rustfmt/src/visitor.rs similarity index 100% rename from src/visitor.rs rename to src/tools/rustfmt/src/visitor.rs diff --git a/tests/cargo-fmt/main.rs b/src/tools/rustfmt/tests/cargo-fmt/main.rs similarity index 100% rename from tests/cargo-fmt/main.rs rename to src/tools/rustfmt/tests/cargo-fmt/main.rs diff --git a/tests/cargo-fmt/source/divergent-crate-dir-names/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/divergent-crate-dir-names/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/Cargo.toml diff --git a/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/Cargo.toml diff --git a/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/src/lib.rs b/src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/src/lib.rs similarity index 100% rename from tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/src/lib.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/src/lib.rs diff --git a/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/subdep-dir-name/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/subdep-dir-name/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/subdep-dir-name/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/subdep-dir-name/Cargo.toml diff --git a/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/subdep-dir-name/src/lib.rs b/src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/subdep-dir-name/src/lib.rs similarity index 100% rename from tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/subdep-dir-name/src/lib.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/dependency-dir-name/subdep-dir-name/src/lib.rs diff --git a/tests/cargo-fmt/source/divergent-crate-dir-names/src/main.rs b/src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/src/main.rs similarity index 100% rename from tests/cargo-fmt/source/divergent-crate-dir-names/src/main.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/divergent-crate-dir-names/src/main.rs diff --git a/tests/cargo-fmt/source/issue_3164/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/issue_3164/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/issue_3164/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/issue_3164/Cargo.toml diff --git a/tests/cargo-fmt/source/issue_3164/src/main.rs b/src/tools/rustfmt/tests/cargo-fmt/source/issue_3164/src/main.rs similarity index 100% rename from tests/cargo-fmt/source/issue_3164/src/main.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/issue_3164/src/main.rs diff --git a/tests/cargo-fmt/source/issues_6517/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/issues_6517/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/issues_6517/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/issues_6517/Cargo.toml diff --git a/tests/cargo-fmt/source/issues_6517/inner_bin/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/issues_6517/inner_bin/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/issues_6517/inner_bin/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/issues_6517/inner_bin/Cargo.toml diff --git a/tests/cargo-fmt/source/issues_6517/inner_bin/src/main.rs b/src/tools/rustfmt/tests/cargo-fmt/source/issues_6517/inner_bin/src/main.rs similarity index 100% rename from tests/cargo-fmt/source/issues_6517/inner_bin/src/main.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/issues_6517/inner_bin/src/main.rs diff --git a/tests/cargo-fmt/source/issues_6517/inner_lib/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/issues_6517/inner_lib/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/issues_6517/inner_lib/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/issues_6517/inner_lib/Cargo.toml diff --git a/tests/cargo-fmt/source/issues_6517/inner_lib/src/lib.rs b/src/tools/rustfmt/tests/cargo-fmt/source/issues_6517/inner_lib/src/lib.rs similarity index 100% rename from tests/cargo-fmt/source/issues_6517/inner_lib/src/lib.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/issues_6517/inner_lib/src/lib.rs diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/e/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/e/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/e/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/e/Cargo.toml diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/e/src/main.rs b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/e/src/main.rs similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/e/src/main.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/e/src/main.rs diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/ws/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/ws/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/Cargo.toml diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/Cargo.toml diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/Cargo.toml diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/f/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/f/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/f/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/f/Cargo.toml diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/f/src/lib.rs b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/f/src/lib.rs similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/f/src/lib.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/f/src/lib.rs diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/src/lib.rs b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/src/lib.rs similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/src/lib.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/src/lib.rs diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/src/main.rs b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/src/main.rs similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/src/main.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/src/main.rs diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/ws/b/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/b/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/ws/b/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/b/Cargo.toml diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/ws/b/src/main.rs b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/b/src/main.rs similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/ws/b/src/main.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/b/src/main.rs diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/ws/c/Cargo.toml b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/c/Cargo.toml similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/ws/c/Cargo.toml rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/c/Cargo.toml diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/ws/c/src/lib.rs b/src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/c/src/lib.rs similarity index 100% rename from tests/cargo-fmt/source/workspaces/path-dep-above/ws/c/src/lib.rs rename to src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/c/src/lib.rs diff --git a/tests/config/disable_all_formatting.toml b/src/tools/rustfmt/tests/config/disable_all_formatting.toml similarity index 100% rename from tests/config/disable_all_formatting.toml rename to src/tools/rustfmt/tests/config/disable_all_formatting.toml diff --git a/tests/config/issue-1111.toml b/src/tools/rustfmt/tests/config/issue-1111.toml similarity index 100% rename from tests/config/issue-1111.toml rename to src/tools/rustfmt/tests/config/issue-1111.toml diff --git a/tests/config/issue-2641.toml b/src/tools/rustfmt/tests/config/issue-2641.toml similarity index 100% rename from tests/config/issue-2641.toml rename to src/tools/rustfmt/tests/config/issue-2641.toml diff --git a/tests/config/issue-3779.toml b/src/tools/rustfmt/tests/config/issue-3779.toml similarity index 100% rename from tests/config/issue-3779.toml rename to src/tools/rustfmt/tests/config/issue-3779.toml diff --git a/tests/config/issue-5801-v1.toml b/src/tools/rustfmt/tests/config/issue-5801-v1.toml similarity index 100% rename from tests/config/issue-5801-v1.toml rename to src/tools/rustfmt/tests/config/issue-5801-v1.toml diff --git a/tests/config/issue-5801-v2.toml b/src/tools/rustfmt/tests/config/issue-5801-v2.toml similarity index 100% rename from tests/config/issue-5801-v2.toml rename to src/tools/rustfmt/tests/config/issue-5801-v2.toml diff --git a/tests/config/issue-5816.toml b/src/tools/rustfmt/tests/config/issue-5816.toml similarity index 100% rename from tests/config/issue-5816.toml rename to src/tools/rustfmt/tests/config/issue-5816.toml diff --git a/tests/config/issue-6302.toml b/src/tools/rustfmt/tests/config/issue-6302.toml similarity index 100% rename from tests/config/issue-6302.toml rename to src/tools/rustfmt/tests/config/issue-6302.toml diff --git a/src/tools/rustfmt/tests/config/issue_4660/Cargo.lock b/src/tools/rustfmt/tests/config/issue_4660/Cargo.lock new file mode 100644 index 0000000000000..e2e277aef8740 --- /dev/null +++ b/src/tools/rustfmt/tests/config/issue_4660/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "inner_lib" +version = "0.1.0" diff --git a/src/tools/rustfmt/tests/config/issue_4660/Cargo.toml b/src/tools/rustfmt/tests/config/issue_4660/Cargo.toml new file mode 100644 index 0000000000000..c716e9d057548 --- /dev/null +++ b/src/tools/rustfmt/tests/config/issue_4660/Cargo.toml @@ -0,0 +1,2 @@ +[workspace] +members = ["inner_lib"] diff --git a/src/tools/rustfmt/tests/config/issue_4660/inner_bin/.rustfmt.unstable.toml b/src/tools/rustfmt/tests/config/issue_4660/inner_bin/.rustfmt.unstable.toml new file mode 100644 index 0000000000000..c7ad93bafe36c --- /dev/null +++ b/src/tools/rustfmt/tests/config/issue_4660/inner_bin/.rustfmt.unstable.toml @@ -0,0 +1 @@ +disable_all_formatting = true diff --git a/src/tools/rustfmt/tests/config/issue_4660/inner_bin/Cargo.toml b/src/tools/rustfmt/tests/config/issue_4660/inner_bin/Cargo.toml new file mode 100644 index 0000000000000..bb6a80cd0ce9b --- /dev/null +++ b/src/tools/rustfmt/tests/config/issue_4660/inner_bin/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "inner_bin" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/src/tools/rustfmt/tests/config/issue_4660/inner_bin/src/main.rs b/src/tools/rustfmt/tests/config/issue_4660/inner_bin/src/main.rs new file mode 100644 index 0000000000000..21c34773b8af5 --- /dev/null +++ b/src/tools/rustfmt/tests/config/issue_4660/inner_bin/src/main.rs @@ -0,0 +1 @@ +fn main(){println!("Hello, world!")} diff --git a/src/tools/rustfmt/tests/config/issue_4660/inner_lib/Cargo.toml b/src/tools/rustfmt/tests/config/issue_4660/inner_lib/Cargo.toml new file mode 100644 index 0000000000000..c9ddf1793b88f --- /dev/null +++ b/src/tools/rustfmt/tests/config/issue_4660/inner_lib/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "inner_lib" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/src/tools/rustfmt/tests/config/issue_4660/inner_lib/rustfmt.toml b/src/tools/rustfmt/tests/config/issue_4660/inner_lib/rustfmt.toml new file mode 100644 index 0000000000000..c7ad93bafe36c --- /dev/null +++ b/src/tools/rustfmt/tests/config/issue_4660/inner_lib/rustfmt.toml @@ -0,0 +1 @@ +disable_all_formatting = true diff --git a/src/tools/rustfmt/tests/config/issue_4660/inner_lib/src/lib.rs b/src/tools/rustfmt/tests/config/issue_4660/inner_lib/src/lib.rs new file mode 100644 index 0000000000000..42375c99d2c97 --- /dev/null +++ b/src/tools/rustfmt/tests/config/issue_4660/inner_lib/src/lib.rs @@ -0,0 +1 @@ +pub fn add(left:u64,right:u64)->u64{left+right} diff --git a/tests/config/skip_children.toml b/src/tools/rustfmt/tests/config/skip_children.toml similarity index 100% rename from tests/config/skip_children.toml rename to src/tools/rustfmt/tests/config/skip_children.toml diff --git a/tests/config/small_tabs.toml b/src/tools/rustfmt/tests/config/small_tabs.toml similarity index 100% rename from tests/config/small_tabs.toml rename to src/tools/rustfmt/tests/config/small_tabs.toml diff --git a/tests/config/style-edition/just-style-edition/rustfmt.toml b/src/tools/rustfmt/tests/config/style-edition/just-style-edition/rustfmt.toml similarity index 100% rename from tests/config/style-edition/just-style-edition/rustfmt.toml rename to src/tools/rustfmt/tests/config/style-edition/just-style-edition/rustfmt.toml diff --git a/tests/config/style-edition/just-version/rustfmt.toml b/src/tools/rustfmt/tests/config/style-edition/just-version/rustfmt.toml similarity index 100% rename from tests/config/style-edition/just-version/rustfmt.toml rename to src/tools/rustfmt/tests/config/style-edition/just-version/rustfmt.toml diff --git a/tests/config/style-edition/overrides/rustfmt.toml b/src/tools/rustfmt/tests/config/style-edition/overrides/rustfmt.toml similarity index 100% rename from tests/config/style-edition/overrides/rustfmt.toml rename to src/tools/rustfmt/tests/config/style-edition/overrides/rustfmt.toml diff --git a/tests/config/style-edition/style-edition-and-edition/rustfmt.toml b/src/tools/rustfmt/tests/config/style-edition/style-edition-and-edition/rustfmt.toml similarity index 100% rename from tests/config/style-edition/style-edition-and-edition/rustfmt.toml rename to src/tools/rustfmt/tests/config/style-edition/style-edition-and-edition/rustfmt.toml diff --git a/tests/config/style-edition/version-edition/rustfmt.toml b/src/tools/rustfmt/tests/config/style-edition/version-edition/rustfmt.toml similarity index 100% rename from tests/config/style-edition/version-edition/rustfmt.toml rename to src/tools/rustfmt/tests/config/style-edition/version-edition/rustfmt.toml diff --git a/tests/config/style-edition/version-style-edition-and-edition/rustfmt.toml b/src/tools/rustfmt/tests/config/style-edition/version-style-edition-and-edition/rustfmt.toml similarity index 100% rename from tests/config/style-edition/version-style-edition-and-edition/rustfmt.toml rename to src/tools/rustfmt/tests/config/style-edition/version-style-edition-and-edition/rustfmt.toml diff --git a/tests/config/style-edition/version-style-edition/rustfmt.toml b/src/tools/rustfmt/tests/config/style-edition/version-style-edition/rustfmt.toml similarity index 100% rename from tests/config/style-edition/version-style-edition/rustfmt.toml rename to src/tools/rustfmt/tests/config/style-edition/version-style-edition/rustfmt.toml diff --git a/tests/coverage/source/comments.rs b/src/tools/rustfmt/tests/coverage/source/comments.rs similarity index 100% rename from tests/coverage/source/comments.rs rename to src/tools/rustfmt/tests/coverage/source/comments.rs diff --git a/tests/coverage/target/comments.rs b/src/tools/rustfmt/tests/coverage/target/comments.rs similarity index 100% rename from tests/coverage/target/comments.rs rename to src/tools/rustfmt/tests/coverage/target/comments.rs diff --git a/tests/mod-resolver/issue-4874/bar/baz.rs b/src/tools/rustfmt/tests/mod-resolver/issue-4874/bar/baz.rs similarity index 100% rename from tests/mod-resolver/issue-4874/bar/baz.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-4874/bar/baz.rs diff --git a/tests/mod-resolver/issue-4874/foo.rs b/src/tools/rustfmt/tests/mod-resolver/issue-4874/foo.rs similarity index 100% rename from tests/mod-resolver/issue-4874/foo.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-4874/foo.rs diff --git a/tests/mod-resolver/issue-4874/foo/qux.rs b/src/tools/rustfmt/tests/mod-resolver/issue-4874/foo/qux.rs similarity index 100% rename from tests/mod-resolver/issue-4874/foo/qux.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-4874/foo/qux.rs diff --git a/tests/mod-resolver/issue-4874/main.rs b/src/tools/rustfmt/tests/mod-resolver/issue-4874/main.rs similarity index 100% rename from tests/mod-resolver/issue-4874/main.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-4874/main.rs diff --git a/tests/mod-resolver/issue-5063/foo.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5063/foo.rs similarity index 100% rename from tests/mod-resolver/issue-5063/foo.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5063/foo.rs diff --git a/tests/mod-resolver/issue-5063/foo/bar/baz.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5063/foo/bar/baz.rs similarity index 100% rename from tests/mod-resolver/issue-5063/foo/bar/baz.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5063/foo/bar/baz.rs diff --git a/tests/mod-resolver/issue-5063/main.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5063/main.rs similarity index 100% rename from tests/mod-resolver/issue-5063/main.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5063/main.rs diff --git a/tests/mod-resolver/issue-5167/src/a.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5167/src/a.rs similarity index 100% rename from tests/mod-resolver/issue-5167/src/a.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5167/src/a.rs diff --git a/tests/mod-resolver/issue-5167/src/a/mod.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5167/src/a/mod.rs similarity index 100% rename from tests/mod-resolver/issue-5167/src/a/mod.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5167/src/a/mod.rs diff --git a/tests/mod-resolver/issue-5167/src/lib.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5167/src/lib.rs similarity index 100% rename from tests/mod-resolver/issue-5167/src/lib.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5167/src/lib.rs diff --git a/tests/mod-resolver/issue-5198/a.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5198/a.rs similarity index 100% rename from tests/mod-resolver/issue-5198/a.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5198/a.rs diff --git a/tests/mod-resolver/issue-5198/lib.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5198/lib.rs similarity index 100% rename from tests/mod-resolver/issue-5198/lib.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5198/lib.rs diff --git a/tests/mod-resolver/issue-5198/lib/b.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/b.rs similarity index 100% rename from tests/mod-resolver/issue-5198/lib/b.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/b.rs diff --git a/tests/mod-resolver/issue-5198/lib/c/d.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/d.rs similarity index 100% rename from tests/mod-resolver/issue-5198/lib/c/d.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/d.rs diff --git a/tests/mod-resolver/issue-5198/lib/c/d/explanation.txt b/src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/d/explanation.txt similarity index 100% rename from tests/mod-resolver/issue-5198/lib/c/d/explanation.txt rename to src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/d/explanation.txt diff --git a/tests/mod-resolver/issue-5198/lib/c/d/f.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/d/f.rs similarity index 100% rename from tests/mod-resolver/issue-5198/lib/c/d/f.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/d/f.rs diff --git a/tests/mod-resolver/issue-5198/lib/c/d/g/mod.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/d/g/mod.rs similarity index 100% rename from tests/mod-resolver/issue-5198/lib/c/d/g/mod.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/d/g/mod.rs diff --git a/tests/mod-resolver/issue-5198/lib/c/e.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/e.rs similarity index 100% rename from tests/mod-resolver/issue-5198/lib/c/e.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/e.rs diff --git a/tests/mod-resolver/issue-5198/lib/c/mod.rs b/src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/mod.rs similarity index 100% rename from tests/mod-resolver/issue-5198/lib/c/mod.rs rename to src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/c/mod.rs diff --git a/tests/mod-resolver/issue-5198/lib/explanation.txt b/src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/explanation.txt similarity index 100% rename from tests/mod-resolver/issue-5198/lib/explanation.txt rename to src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/explanation.txt diff --git a/tests/mod-resolver/module-not-found/bad_path_attribute/lib.rs b/src/tools/rustfmt/tests/mod-resolver/module-not-found/bad_path_attribute/lib.rs similarity index 100% rename from tests/mod-resolver/module-not-found/bad_path_attribute/lib.rs rename to src/tools/rustfmt/tests/mod-resolver/module-not-found/bad_path_attribute/lib.rs diff --git a/tests/mod-resolver/module-not-found/relative_module/a.rs b/src/tools/rustfmt/tests/mod-resolver/module-not-found/relative_module/a.rs similarity index 100% rename from tests/mod-resolver/module-not-found/relative_module/a.rs rename to src/tools/rustfmt/tests/mod-resolver/module-not-found/relative_module/a.rs diff --git a/tests/mod-resolver/module-not-found/relative_module/lib.rs b/src/tools/rustfmt/tests/mod-resolver/module-not-found/relative_module/lib.rs similarity index 100% rename from tests/mod-resolver/module-not-found/relative_module/lib.rs rename to src/tools/rustfmt/tests/mod-resolver/module-not-found/relative_module/lib.rs diff --git a/tests/mod-resolver/module-not-found/sibling_module/lib.rs b/src/tools/rustfmt/tests/mod-resolver/module-not-found/sibling_module/lib.rs similarity index 100% rename from tests/mod-resolver/module-not-found/sibling_module/lib.rs rename to src/tools/rustfmt/tests/mod-resolver/module-not-found/sibling_module/lib.rs diff --git a/tests/mod-resolver/skip-files-issue-5065/foo.rs b/src/tools/rustfmt/tests/mod-resolver/skip-files-issue-5065/foo.rs similarity index 100% rename from tests/mod-resolver/skip-files-issue-5065/foo.rs rename to src/tools/rustfmt/tests/mod-resolver/skip-files-issue-5065/foo.rs diff --git a/tests/mod-resolver/skip-files-issue-5065/foo/bar/baz.rs b/src/tools/rustfmt/tests/mod-resolver/skip-files-issue-5065/foo/bar/baz.rs similarity index 100% rename from tests/mod-resolver/skip-files-issue-5065/foo/bar/baz.rs rename to src/tools/rustfmt/tests/mod-resolver/skip-files-issue-5065/foo/bar/baz.rs diff --git a/tests/mod-resolver/skip-files-issue-5065/main.rs b/src/tools/rustfmt/tests/mod-resolver/skip-files-issue-5065/main.rs similarity index 100% rename from tests/mod-resolver/skip-files-issue-5065/main.rs rename to src/tools/rustfmt/tests/mod-resolver/skip-files-issue-5065/main.rs diff --git a/tests/mod-resolver/skip-files-issue-5065/one.rs b/src/tools/rustfmt/tests/mod-resolver/skip-files-issue-5065/one.rs similarity index 100% rename from tests/mod-resolver/skip-files-issue-5065/one.rs rename to src/tools/rustfmt/tests/mod-resolver/skip-files-issue-5065/one.rs diff --git a/tests/mod-resolver/test-submodule-issue-5119/Cargo.toml b/src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/Cargo.toml similarity index 100% rename from tests/mod-resolver/test-submodule-issue-5119/Cargo.toml rename to src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/Cargo.toml diff --git a/tests/mod-resolver/test-submodule-issue-5119/src/lib.rs b/src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/src/lib.rs similarity index 100% rename from tests/mod-resolver/test-submodule-issue-5119/src/lib.rs rename to src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/src/lib.rs diff --git a/tests/mod-resolver/test-submodule-issue-5119/tests/test1.rs b/src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/tests/test1.rs similarity index 100% rename from tests/mod-resolver/test-submodule-issue-5119/tests/test1.rs rename to src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/tests/test1.rs diff --git a/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub1.rs b/src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub1.rs similarity index 100% rename from tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub1.rs rename to src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub1.rs diff --git a/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub2.rs b/src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub2.rs similarity index 100% rename from tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub2.rs rename to src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub2.rs diff --git a/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub3/mod.rs b/src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub3/mod.rs similarity index 100% rename from tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub3/mod.rs rename to src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub3/mod.rs diff --git a/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub3/sub4.rs b/src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub3/sub4.rs similarity index 100% rename from tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub3/sub4.rs rename to src/tools/rustfmt/tests/mod-resolver/test-submodule-issue-5119/tests/test1/sub3/sub4.rs diff --git a/tests/parser/issue-4126/invalid.rs b/src/tools/rustfmt/tests/parser/issue-4126/invalid.rs similarity index 100% rename from tests/parser/issue-4126/invalid.rs rename to src/tools/rustfmt/tests/parser/issue-4126/invalid.rs diff --git a/tests/parser/issue-4126/lib.rs b/src/tools/rustfmt/tests/parser/issue-4126/lib.rs similarity index 100% rename from tests/parser/issue-4126/lib.rs rename to src/tools/rustfmt/tests/parser/issue-4126/lib.rs diff --git a/tests/parser/issue_4418.rs b/src/tools/rustfmt/tests/parser/issue_4418.rs similarity index 100% rename from tests/parser/issue_4418.rs rename to src/tools/rustfmt/tests/parser/issue_4418.rs diff --git a/tests/parser/stashed-diag.rs b/src/tools/rustfmt/tests/parser/stashed-diag.rs similarity index 100% rename from tests/parser/stashed-diag.rs rename to src/tools/rustfmt/tests/parser/stashed-diag.rs diff --git a/tests/parser/stashed-diag2.rs b/src/tools/rustfmt/tests/parser/stashed-diag2.rs similarity index 100% rename from tests/parser/stashed-diag2.rs rename to src/tools/rustfmt/tests/parser/stashed-diag2.rs diff --git a/tests/parser/unclosed-delims/issue_4466.rs b/src/tools/rustfmt/tests/parser/unclosed-delims/issue_4466.rs similarity index 100% rename from tests/parser/unclosed-delims/issue_4466.rs rename to src/tools/rustfmt/tests/parser/unclosed-delims/issue_4466.rs diff --git a/tests/rustfmt/main.rs b/src/tools/rustfmt/tests/rustfmt/main.rs similarity index 92% rename from tests/rustfmt/main.rs rename to src/tools/rustfmt/tests/rustfmt/main.rs index ee972d8a6afb7..7d60f3343f646 100644 --- a/tests/rustfmt/main.rs +++ b/src/tools/rustfmt/tests/rustfmt/main.rs @@ -345,6 +345,41 @@ fn rustfmt_error_improvement_regarding_invalid_toml() { assert!(stderr.contains(&expected_error_message)); } +#[test] +fn config_path_does_not_walk_parent_directories_with_dir_name() { + let src_dir = "tests/config/issue_4660/inner_lib/src"; + let src_file = src_dir.to_owned() + "/lib.rs"; + let args = ["--config-path", src_dir, "--check", &src_file]; + let (stdout, stderr) = rustfmt(&args); + + assert_eq!( + stderr, + format!( + "Error: unable to find a config file for the given path: `{}`\n", + Path::new(src_dir).display(), + ) + ); + assert_eq!(stdout, ""); +} + +#[test] +fn config_path_does_not_walk_parent_directories_with_toml_name() { + let src_dir = "tests/config/issue_4660/inner_bin/src"; + let toml_file = src_dir.to_owned() + "/.rustfmt.unstable.toml"; + let src_file = src_dir.to_owned() + "/main.rs"; + let args = ["--config-path", &toml_file, "--check", &src_file]; + let (stdout, stderr) = rustfmt(&args); + + assert_eq!( + stderr, + format!( + "Error: unable to find a config file for the given path: `{}`\n", + Path::new(&toml_file).display(), + ) + ); + assert_eq!(stdout, ""); +} + #[test] fn rustfmt_allow_not_a_dir_errors() { // See also https://github.com/rust-lang/rustfmt/pull/6624 diff --git a/tests/source/5131_crate.rs b/src/tools/rustfmt/tests/source/5131_crate.rs similarity index 100% rename from tests/source/5131_crate.rs rename to src/tools/rustfmt/tests/source/5131_crate.rs diff --git a/tests/source/5131_module.rs b/src/tools/rustfmt/tests/source/5131_module.rs similarity index 100% rename from tests/source/5131_module.rs rename to src/tools/rustfmt/tests/source/5131_module.rs diff --git a/tests/source/5131_one.rs b/src/tools/rustfmt/tests/source/5131_one.rs similarity index 100% rename from tests/source/5131_one.rs rename to src/tools/rustfmt/tests/source/5131_one.rs diff --git a/tests/source/6639-non-idempotent-block-doc-comments/inner-block-doc-comment.rs b/src/tools/rustfmt/tests/source/6639-non-idempotent-block-doc-comments/inner-block-doc-comment.rs similarity index 100% rename from tests/source/6639-non-idempotent-block-doc-comments/inner-block-doc-comment.rs rename to src/tools/rustfmt/tests/source/6639-non-idempotent-block-doc-comments/inner-block-doc-comment.rs diff --git a/tests/source/6639-non-idempotent-block-doc-comments/naive-outer-block-comment.rs b/src/tools/rustfmt/tests/source/6639-non-idempotent-block-doc-comments/naive-outer-block-comment.rs similarity index 100% rename from tests/source/6639-non-idempotent-block-doc-comments/naive-outer-block-comment.rs rename to src/tools/rustfmt/tests/source/6639-non-idempotent-block-doc-comments/naive-outer-block-comment.rs diff --git a/tests/source/6639-non-idempotent-block-doc-comments/outer-block-doc-comment.rs b/src/tools/rustfmt/tests/source/6639-non-idempotent-block-doc-comments/outer-block-doc-comment.rs similarity index 100% rename from tests/source/6639-non-idempotent-block-doc-comments/outer-block-doc-comment.rs rename to src/tools/rustfmt/tests/source/6639-non-idempotent-block-doc-comments/outer-block-doc-comment.rs diff --git a/tests/source/6639-non-idempotent-block-doc-comments/rustc-sample-1.rs b/src/tools/rustfmt/tests/source/6639-non-idempotent-block-doc-comments/rustc-sample-1.rs similarity index 100% rename from tests/source/6639-non-idempotent-block-doc-comments/rustc-sample-1.rs rename to src/tools/rustfmt/tests/source/6639-non-idempotent-block-doc-comments/rustc-sample-1.rs diff --git a/tests/source/6639-non-idempotent-block-doc-comments/rustc-sample-2.rs b/src/tools/rustfmt/tests/source/6639-non-idempotent-block-doc-comments/rustc-sample-2.rs similarity index 100% rename from tests/source/6639-non-idempotent-block-doc-comments/rustc-sample-2.rs rename to src/tools/rustfmt/tests/source/6639-non-idempotent-block-doc-comments/rustc-sample-2.rs diff --git a/tests/source/alignment_2633/block_style.rs b/src/tools/rustfmt/tests/source/alignment_2633/block_style.rs similarity index 100% rename from tests/source/alignment_2633/block_style.rs rename to src/tools/rustfmt/tests/source/alignment_2633/block_style.rs diff --git a/tests/source/alignment_2633/visual_style.rs b/src/tools/rustfmt/tests/source/alignment_2633/visual_style.rs similarity index 100% rename from tests/source/alignment_2633/visual_style.rs rename to src/tools/rustfmt/tests/source/alignment_2633/visual_style.rs diff --git a/tests/source/array_comment.rs b/src/tools/rustfmt/tests/source/array_comment.rs similarity index 100% rename from tests/source/array_comment.rs rename to src/tools/rustfmt/tests/source/array_comment.rs diff --git a/tests/source/arrow_in_comments/arrow_in_single_comment.rs b/src/tools/rustfmt/tests/source/arrow_in_comments/arrow_in_single_comment.rs similarity index 100% rename from tests/source/arrow_in_comments/arrow_in_single_comment.rs rename to src/tools/rustfmt/tests/source/arrow_in_comments/arrow_in_single_comment.rs diff --git a/tests/source/arrow_in_comments/multiple_arrows.rs b/src/tools/rustfmt/tests/source/arrow_in_comments/multiple_arrows.rs similarity index 100% rename from tests/source/arrow_in_comments/multiple_arrows.rs rename to src/tools/rustfmt/tests/source/arrow_in_comments/multiple_arrows.rs diff --git a/tests/source/assignment.rs b/src/tools/rustfmt/tests/source/assignment.rs similarity index 100% rename from tests/source/assignment.rs rename to src/tools/rustfmt/tests/source/assignment.rs diff --git a/tests/source/associated-types-bounds-wrapping.rs b/src/tools/rustfmt/tests/source/associated-types-bounds-wrapping.rs similarity index 100% rename from tests/source/associated-types-bounds-wrapping.rs rename to src/tools/rustfmt/tests/source/associated-types-bounds-wrapping.rs diff --git a/tests/source/associated_type_bounds.rs b/src/tools/rustfmt/tests/source/associated_type_bounds.rs similarity index 100% rename from tests/source/associated_type_bounds.rs rename to src/tools/rustfmt/tests/source/associated_type_bounds.rs diff --git a/tests/source/async_block.rs b/src/tools/rustfmt/tests/source/async_block.rs similarity index 100% rename from tests/source/async_block.rs rename to src/tools/rustfmt/tests/source/async_block.rs diff --git a/tests/source/async_fn.rs b/src/tools/rustfmt/tests/source/async_fn.rs similarity index 100% rename from tests/source/async_fn.rs rename to src/tools/rustfmt/tests/source/async_fn.rs diff --git a/tests/source/attrib.rs b/src/tools/rustfmt/tests/source/attrib.rs similarity index 100% rename from tests/source/attrib.rs rename to src/tools/rustfmt/tests/source/attrib.rs diff --git a/tests/source/big-impl-block.rs b/src/tools/rustfmt/tests/source/big-impl-block.rs similarity index 100% rename from tests/source/big-impl-block.rs rename to src/tools/rustfmt/tests/source/big-impl-block.rs diff --git a/tests/source/big-impl-visual.rs b/src/tools/rustfmt/tests/source/big-impl-visual.rs similarity index 100% rename from tests/source/big-impl-visual.rs rename to src/tools/rustfmt/tests/source/big-impl-visual.rs diff --git a/tests/source/binary-expr.rs b/src/tools/rustfmt/tests/source/binary-expr.rs similarity index 100% rename from tests/source/binary-expr.rs rename to src/tools/rustfmt/tests/source/binary-expr.rs diff --git a/tests/source/binop-separator-back/bitwise.rs b/src/tools/rustfmt/tests/source/binop-separator-back/bitwise.rs similarity index 100% rename from tests/source/binop-separator-back/bitwise.rs rename to src/tools/rustfmt/tests/source/binop-separator-back/bitwise.rs diff --git a/tests/source/binop-separator-back/comp.rs b/src/tools/rustfmt/tests/source/binop-separator-back/comp.rs similarity index 100% rename from tests/source/binop-separator-back/comp.rs rename to src/tools/rustfmt/tests/source/binop-separator-back/comp.rs diff --git a/tests/source/binop-separator-back/logic.rs b/src/tools/rustfmt/tests/source/binop-separator-back/logic.rs similarity index 100% rename from tests/source/binop-separator-back/logic.rs rename to src/tools/rustfmt/tests/source/binop-separator-back/logic.rs diff --git a/tests/source/binop-separator-back/math.rs b/src/tools/rustfmt/tests/source/binop-separator-back/math.rs similarity index 100% rename from tests/source/binop-separator-back/math.rs rename to src/tools/rustfmt/tests/source/binop-separator-back/math.rs diff --git a/tests/source/binop-separator-back/patterns.rs b/src/tools/rustfmt/tests/source/binop-separator-back/patterns.rs similarity index 100% rename from tests/source/binop-separator-back/patterns.rs rename to src/tools/rustfmt/tests/source/binop-separator-back/patterns.rs diff --git a/tests/source/binop-separator-back/range.rs b/src/tools/rustfmt/tests/source/binop-separator-back/range.rs similarity index 100% rename from tests/source/binop-separator-back/range.rs rename to src/tools/rustfmt/tests/source/binop-separator-back/range.rs diff --git a/tests/source/break-and-continue.rs b/src/tools/rustfmt/tests/source/break-and-continue.rs similarity index 100% rename from tests/source/break-and-continue.rs rename to src/tools/rustfmt/tests/source/break-and-continue.rs diff --git a/tests/source/catch.rs b/src/tools/rustfmt/tests/source/catch.rs similarity index 100% rename from tests/source/catch.rs rename to src/tools/rustfmt/tests/source/catch.rs diff --git a/tests/source/cfg_if/detect/arch/aarch64.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/arch/aarch64.rs similarity index 100% rename from tests/source/cfg_if/detect/arch/aarch64.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/arch/aarch64.rs diff --git a/tests/source/cfg_if/detect/arch/arm.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/arch/arm.rs similarity index 100% rename from tests/source/cfg_if/detect/arch/arm.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/arch/arm.rs diff --git a/tests/source/cfg_if/detect/arch/mips.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/arch/mips.rs similarity index 100% rename from tests/source/cfg_if/detect/arch/mips.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/arch/mips.rs diff --git a/tests/source/cfg_if/detect/arch/mips64.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/arch/mips64.rs similarity index 100% rename from tests/source/cfg_if/detect/arch/mips64.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/arch/mips64.rs diff --git a/tests/source/cfg_if/detect/arch/powerpc.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/arch/powerpc.rs similarity index 100% rename from tests/source/cfg_if/detect/arch/powerpc.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/arch/powerpc.rs diff --git a/tests/source/cfg_if/detect/arch/powerpc64.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/arch/powerpc64.rs similarity index 100% rename from tests/source/cfg_if/detect/arch/powerpc64.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/arch/powerpc64.rs diff --git a/tests/source/cfg_if/detect/arch/x86.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/arch/x86.rs similarity index 100% rename from tests/source/cfg_if/detect/arch/x86.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/arch/x86.rs diff --git a/tests/source/cfg_if/detect/bit.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/bit.rs similarity index 100% rename from tests/source/cfg_if/detect/bit.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/bit.rs diff --git a/tests/source/cfg_if/detect/cache.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/cache.rs similarity index 100% rename from tests/source/cfg_if/detect/cache.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/cache.rs diff --git a/tests/source/cfg_if/detect/error_macros.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/error_macros.rs similarity index 100% rename from tests/source/cfg_if/detect/error_macros.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/error_macros.rs diff --git a/tests/source/cfg_if/detect/mod.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/mod.rs similarity index 100% rename from tests/source/cfg_if/detect/mod.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/mod.rs diff --git a/tests/source/cfg_if/detect/os/aarch64.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/aarch64.rs similarity index 100% rename from tests/source/cfg_if/detect/os/aarch64.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/aarch64.rs diff --git a/tests/source/cfg_if/detect/os/freebsd/aarch64.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/freebsd/aarch64.rs similarity index 100% rename from tests/source/cfg_if/detect/os/freebsd/aarch64.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/freebsd/aarch64.rs diff --git a/tests/source/cfg_if/detect/os/freebsd/arm.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/freebsd/arm.rs similarity index 100% rename from tests/source/cfg_if/detect/os/freebsd/arm.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/freebsd/arm.rs diff --git a/tests/source/cfg_if/detect/os/freebsd/auxvec.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/freebsd/auxvec.rs similarity index 100% rename from tests/source/cfg_if/detect/os/freebsd/auxvec.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/freebsd/auxvec.rs diff --git a/tests/source/cfg_if/detect/os/freebsd/mod.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/freebsd/mod.rs similarity index 100% rename from tests/source/cfg_if/detect/os/freebsd/mod.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/freebsd/mod.rs diff --git a/tests/source/cfg_if/detect/os/freebsd/powerpc.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/freebsd/powerpc.rs similarity index 100% rename from tests/source/cfg_if/detect/os/freebsd/powerpc.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/freebsd/powerpc.rs diff --git a/tests/source/cfg_if/detect/os/linux/aarch64.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/aarch64.rs similarity index 100% rename from tests/source/cfg_if/detect/os/linux/aarch64.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/aarch64.rs diff --git a/tests/source/cfg_if/detect/os/linux/arm.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/arm.rs similarity index 100% rename from tests/source/cfg_if/detect/os/linux/arm.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/arm.rs diff --git a/tests/source/cfg_if/detect/os/linux/auxvec.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/auxvec.rs similarity index 100% rename from tests/source/cfg_if/detect/os/linux/auxvec.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/auxvec.rs diff --git a/tests/source/cfg_if/detect/os/linux/cpuinfo.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/cpuinfo.rs similarity index 100% rename from tests/source/cfg_if/detect/os/linux/cpuinfo.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/cpuinfo.rs diff --git a/tests/source/cfg_if/detect/os/linux/mips.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/mips.rs similarity index 100% rename from tests/source/cfg_if/detect/os/linux/mips.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/mips.rs diff --git a/tests/source/cfg_if/detect/os/linux/mod.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/mod.rs similarity index 100% rename from tests/source/cfg_if/detect/os/linux/mod.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/mod.rs diff --git a/tests/source/cfg_if/detect/os/linux/powerpc.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/powerpc.rs similarity index 100% rename from tests/source/cfg_if/detect/os/linux/powerpc.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/linux/powerpc.rs diff --git a/tests/source/cfg_if/detect/os/other.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/other.rs similarity index 100% rename from tests/source/cfg_if/detect/os/other.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/other.rs diff --git a/tests/source/cfg_if/detect/os/x86.rs b/src/tools/rustfmt/tests/source/cfg_if/detect/os/x86.rs similarity index 100% rename from tests/source/cfg_if/detect/os/x86.rs rename to src/tools/rustfmt/tests/source/cfg_if/detect/os/x86.rs diff --git a/tests/source/cfg_if/lib.rs b/src/tools/rustfmt/tests/source/cfg_if/lib.rs similarity index 100% rename from tests/source/cfg_if/lib.rs rename to src/tools/rustfmt/tests/source/cfg_if/lib.rs diff --git a/tests/source/cfg_if/mod.rs b/src/tools/rustfmt/tests/source/cfg_if/mod.rs similarity index 100% rename from tests/source/cfg_if/mod.rs rename to src/tools/rustfmt/tests/source/cfg_if/mod.rs diff --git a/tests/source/cfg_mod/bar.rs b/src/tools/rustfmt/tests/source/cfg_mod/bar.rs similarity index 100% rename from tests/source/cfg_mod/bar.rs rename to src/tools/rustfmt/tests/source/cfg_mod/bar.rs diff --git a/tests/source/cfg_mod/dir/dir1/dir2/wasm32.rs b/src/tools/rustfmt/tests/source/cfg_mod/dir/dir1/dir2/wasm32.rs similarity index 100% rename from tests/source/cfg_mod/dir/dir1/dir2/wasm32.rs rename to src/tools/rustfmt/tests/source/cfg_mod/dir/dir1/dir2/wasm32.rs diff --git a/tests/source/cfg_mod/dir/dir1/dir3/wasm32.rs b/src/tools/rustfmt/tests/source/cfg_mod/dir/dir1/dir3/wasm32.rs similarity index 100% rename from tests/source/cfg_mod/dir/dir1/dir3/wasm32.rs rename to src/tools/rustfmt/tests/source/cfg_mod/dir/dir1/dir3/wasm32.rs diff --git a/tests/source/cfg_mod/foo.rs b/src/tools/rustfmt/tests/source/cfg_mod/foo.rs similarity index 100% rename from tests/source/cfg_mod/foo.rs rename to src/tools/rustfmt/tests/source/cfg_mod/foo.rs diff --git a/tests/source/cfg_mod/mod.rs b/src/tools/rustfmt/tests/source/cfg_mod/mod.rs similarity index 100% rename from tests/source/cfg_mod/mod.rs rename to src/tools/rustfmt/tests/source/cfg_mod/mod.rs diff --git a/tests/source/cfg_mod/other.rs b/src/tools/rustfmt/tests/source/cfg_mod/other.rs similarity index 100% rename from tests/source/cfg_mod/other.rs rename to src/tools/rustfmt/tests/source/cfg_mod/other.rs diff --git a/tests/source/cfg_mod/wasm32.rs b/src/tools/rustfmt/tests/source/cfg_mod/wasm32.rs similarity index 100% rename from tests/source/cfg_mod/wasm32.rs rename to src/tools/rustfmt/tests/source/cfg_mod/wasm32.rs diff --git a/tests/source/cfg_select.rs b/src/tools/rustfmt/tests/source/cfg_select.rs similarity index 100% rename from tests/source/cfg_select.rs rename to src/tools/rustfmt/tests/source/cfg_select.rs diff --git a/tests/source/cfg_select/format_me_please_1.rs b/src/tools/rustfmt/tests/source/cfg_select/format_me_please_1.rs similarity index 100% rename from tests/source/cfg_select/format_me_please_1.rs rename to src/tools/rustfmt/tests/source/cfg_select/format_me_please_1.rs diff --git a/tests/source/cfg_select/format_me_please_2.rs b/src/tools/rustfmt/tests/source/cfg_select/format_me_please_2.rs similarity index 100% rename from tests/source/cfg_select/format_me_please_2.rs rename to src/tools/rustfmt/tests/source/cfg_select/format_me_please_2.rs diff --git a/tests/source/cfg_select/format_me_please_3.rs b/src/tools/rustfmt/tests/source/cfg_select/format_me_please_3.rs similarity index 100% rename from tests/source/cfg_select/format_me_please_3.rs rename to src/tools/rustfmt/tests/source/cfg_select/format_me_please_3.rs diff --git a/tests/source/cfg_select/format_me_please_4.rs b/src/tools/rustfmt/tests/source/cfg_select/format_me_please_4.rs similarity index 100% rename from tests/source/cfg_select/format_me_please_4.rs rename to src/tools/rustfmt/tests/source/cfg_select/format_me_please_4.rs diff --git a/tests/source/cfg_select/lib.rs b/src/tools/rustfmt/tests/source/cfg_select/lib.rs similarity index 100% rename from tests/source/cfg_select/lib.rs rename to src/tools/rustfmt/tests/source/cfg_select/lib.rs diff --git a/tests/source/cfg_select/lib2.rs b/src/tools/rustfmt/tests/source/cfg_select/lib2.rs similarity index 100% rename from tests/source/cfg_select/lib2.rs rename to src/tools/rustfmt/tests/source/cfg_select/lib2.rs diff --git a/tests/source/cfg_select_stable.rs b/src/tools/rustfmt/tests/source/cfg_select_stable.rs similarity index 100% rename from tests/source/cfg_select_stable.rs rename to src/tools/rustfmt/tests/source/cfg_select_stable.rs diff --git a/tests/source/chain_yield_with_comments.rs b/src/tools/rustfmt/tests/source/chain_yield_with_comments.rs similarity index 100% rename from tests/source/chain_yield_with_comments.rs rename to src/tools/rustfmt/tests/source/chain_yield_with_comments.rs diff --git a/tests/source/chains-visual.rs b/src/tools/rustfmt/tests/source/chains-visual.rs similarity index 100% rename from tests/source/chains-visual.rs rename to src/tools/rustfmt/tests/source/chains-visual.rs diff --git a/tests/source/chains.rs b/src/tools/rustfmt/tests/source/chains.rs similarity index 100% rename from tests/source/chains.rs rename to src/tools/rustfmt/tests/source/chains.rs diff --git a/tests/source/chains_with_comment.rs b/src/tools/rustfmt/tests/source/chains_with_comment.rs similarity index 100% rename from tests/source/chains_with_comment.rs rename to src/tools/rustfmt/tests/source/chains_with_comment.rs diff --git a/tests/source/closure-block-inside-macro.rs b/src/tools/rustfmt/tests/source/closure-block-inside-macro.rs similarity index 100% rename from tests/source/closure-block-inside-macro.rs rename to src/tools/rustfmt/tests/source/closure-block-inside-macro.rs diff --git a/tests/source/closure-block-labels.rs b/src/tools/rustfmt/tests/source/closure-block-labels.rs similarity index 100% rename from tests/source/closure-block-labels.rs rename to src/tools/rustfmt/tests/source/closure-block-labels.rs diff --git a/tests/source/closure.rs b/src/tools/rustfmt/tests/source/closure.rs similarity index 100% rename from tests/source/closure.rs rename to src/tools/rustfmt/tests/source/closure.rs diff --git a/tests/source/comment.rs b/src/tools/rustfmt/tests/source/comment.rs similarity index 100% rename from tests/source/comment.rs rename to src/tools/rustfmt/tests/source/comment.rs diff --git a/tests/source/comment2.rs b/src/tools/rustfmt/tests/source/comment2.rs similarity index 100% rename from tests/source/comment2.rs rename to src/tools/rustfmt/tests/source/comment2.rs diff --git a/tests/source/comment3.rs b/src/tools/rustfmt/tests/source/comment3.rs similarity index 100% rename from tests/source/comment3.rs rename to src/tools/rustfmt/tests/source/comment3.rs diff --git a/tests/source/comment4.rs b/src/tools/rustfmt/tests/source/comment4.rs similarity index 100% rename from tests/source/comment4.rs rename to src/tools/rustfmt/tests/source/comment4.rs diff --git a/tests/source/comment5.rs b/src/tools/rustfmt/tests/source/comment5.rs similarity index 100% rename from tests/source/comment5.rs rename to src/tools/rustfmt/tests/source/comment5.rs diff --git a/tests/source/comment6.rs b/src/tools/rustfmt/tests/source/comment6.rs similarity index 100% rename from tests/source/comment6.rs rename to src/tools/rustfmt/tests/source/comment6.rs diff --git a/tests/source/comment_crlf_newline.rs b/src/tools/rustfmt/tests/source/comment_crlf_newline.rs similarity index 100% rename from tests/source/comment_crlf_newline.rs rename to src/tools/rustfmt/tests/source/comment_crlf_newline.rs diff --git a/tests/source/comments-in-lists/wrap-comments-not-normalized.rs b/src/tools/rustfmt/tests/source/comments-in-lists/wrap-comments-not-normalized.rs similarity index 100% rename from tests/source/comments-in-lists/wrap-comments-not-normalized.rs rename to src/tools/rustfmt/tests/source/comments-in-lists/wrap-comments-not-normalized.rs diff --git a/tests/source/comments-in-lists/wrap-comments-true.rs b/src/tools/rustfmt/tests/source/comments-in-lists/wrap-comments-true.rs similarity index 100% rename from tests/source/comments-in-lists/wrap-comments-true.rs rename to src/tools/rustfmt/tests/source/comments-in-lists/wrap-comments-true.rs diff --git a/tests/source/comments_unicode.rs b/src/tools/rustfmt/tests/source/comments_unicode.rs similarity index 100% rename from tests/source/comments_unicode.rs rename to src/tools/rustfmt/tests/source/comments_unicode.rs diff --git a/tests/source/configs/blank_lines_lower_bound/1.rs b/src/tools/rustfmt/tests/source/configs/blank_lines_lower_bound/1.rs similarity index 100% rename from tests/source/configs/blank_lines_lower_bound/1.rs rename to src/tools/rustfmt/tests/source/configs/blank_lines_lower_bound/1.rs diff --git a/tests/source/configs/blank_lines_upper_bound/1.rs b/src/tools/rustfmt/tests/source/configs/blank_lines_upper_bound/1.rs similarity index 100% rename from tests/source/configs/blank_lines_upper_bound/1.rs rename to src/tools/rustfmt/tests/source/configs/blank_lines_upper_bound/1.rs diff --git a/tests/source/configs/blank_lines_upper_bound/2.rs b/src/tools/rustfmt/tests/source/configs/blank_lines_upper_bound/2.rs similarity index 100% rename from tests/source/configs/blank_lines_upper_bound/2.rs rename to src/tools/rustfmt/tests/source/configs/blank_lines_upper_bound/2.rs diff --git a/tests/source/configs/brace_style/fn_always_next_line.rs b/src/tools/rustfmt/tests/source/configs/brace_style/fn_always_next_line.rs similarity index 100% rename from tests/source/configs/brace_style/fn_always_next_line.rs rename to src/tools/rustfmt/tests/source/configs/brace_style/fn_always_next_line.rs diff --git a/tests/source/configs/brace_style/fn_prefer_same_line.rs b/src/tools/rustfmt/tests/source/configs/brace_style/fn_prefer_same_line.rs similarity index 100% rename from tests/source/configs/brace_style/fn_prefer_same_line.rs rename to src/tools/rustfmt/tests/source/configs/brace_style/fn_prefer_same_line.rs diff --git a/tests/source/configs/brace_style/fn_same_line_where.rs b/src/tools/rustfmt/tests/source/configs/brace_style/fn_same_line_where.rs similarity index 100% rename from tests/source/configs/brace_style/fn_same_line_where.rs rename to src/tools/rustfmt/tests/source/configs/brace_style/fn_same_line_where.rs diff --git a/tests/source/configs/brace_style/item_always_next_line.rs b/src/tools/rustfmt/tests/source/configs/brace_style/item_always_next_line.rs similarity index 100% rename from tests/source/configs/brace_style/item_always_next_line.rs rename to src/tools/rustfmt/tests/source/configs/brace_style/item_always_next_line.rs diff --git a/tests/source/configs/brace_style/item_prefer_same_line.rs b/src/tools/rustfmt/tests/source/configs/brace_style/item_prefer_same_line.rs similarity index 100% rename from tests/source/configs/brace_style/item_prefer_same_line.rs rename to src/tools/rustfmt/tests/source/configs/brace_style/item_prefer_same_line.rs diff --git a/tests/source/configs/brace_style/item_same_line_where.rs b/src/tools/rustfmt/tests/source/configs/brace_style/item_same_line_where.rs similarity index 100% rename from tests/source/configs/brace_style/item_same_line_where.rs rename to src/tools/rustfmt/tests/source/configs/brace_style/item_same_line_where.rs diff --git a/tests/source/configs/chain_width/always.rs b/src/tools/rustfmt/tests/source/configs/chain_width/always.rs similarity index 100% rename from tests/source/configs/chain_width/always.rs rename to src/tools/rustfmt/tests/source/configs/chain_width/always.rs diff --git a/tests/source/configs/chain_width/small.rs b/src/tools/rustfmt/tests/source/configs/chain_width/small.rs similarity index 100% rename from tests/source/configs/chain_width/small.rs rename to src/tools/rustfmt/tests/source/configs/chain_width/small.rs diff --git a/tests/source/configs/chain_width/tiny.rs b/src/tools/rustfmt/tests/source/configs/chain_width/tiny.rs similarity index 100% rename from tests/source/configs/chain_width/tiny.rs rename to src/tools/rustfmt/tests/source/configs/chain_width/tiny.rs diff --git a/tests/source/configs/comment_width/above.rs b/src/tools/rustfmt/tests/source/configs/comment_width/above.rs similarity index 100% rename from tests/source/configs/comment_width/above.rs rename to src/tools/rustfmt/tests/source/configs/comment_width/above.rs diff --git a/tests/source/configs/comment_width/below.rs b/src/tools/rustfmt/tests/source/configs/comment_width/below.rs similarity index 100% rename from tests/source/configs/comment_width/below.rs rename to src/tools/rustfmt/tests/source/configs/comment_width/below.rs diff --git a/tests/source/configs/comment_width/ignore.rs b/src/tools/rustfmt/tests/source/configs/comment_width/ignore.rs similarity index 100% rename from tests/source/configs/comment_width/ignore.rs rename to src/tools/rustfmt/tests/source/configs/comment_width/ignore.rs diff --git a/tests/source/configs/condense_wildcard_suffixes/false.rs b/src/tools/rustfmt/tests/source/configs/condense_wildcard_suffixes/false.rs similarity index 100% rename from tests/source/configs/condense_wildcard_suffixes/false.rs rename to src/tools/rustfmt/tests/source/configs/condense_wildcard_suffixes/false.rs diff --git a/tests/source/configs/condense_wildcard_suffixes/true.rs b/src/tools/rustfmt/tests/source/configs/condense_wildcard_suffixes/true.rs similarity index 100% rename from tests/source/configs/condense_wildcard_suffixes/true.rs rename to src/tools/rustfmt/tests/source/configs/condense_wildcard_suffixes/true.rs diff --git a/tests/source/configs/control_brace_style/always_next_line.rs b/src/tools/rustfmt/tests/source/configs/control_brace_style/always_next_line.rs similarity index 100% rename from tests/source/configs/control_brace_style/always_next_line.rs rename to src/tools/rustfmt/tests/source/configs/control_brace_style/always_next_line.rs diff --git a/tests/source/configs/control_brace_style/always_same_line.rs b/src/tools/rustfmt/tests/source/configs/control_brace_style/always_same_line.rs similarity index 100% rename from tests/source/configs/control_brace_style/always_same_line.rs rename to src/tools/rustfmt/tests/source/configs/control_brace_style/always_same_line.rs diff --git a/tests/source/configs/control_brace_style/closing_next_line.rs b/src/tools/rustfmt/tests/source/configs/control_brace_style/closing_next_line.rs similarity index 100% rename from tests/source/configs/control_brace_style/closing_next_line.rs rename to src/tools/rustfmt/tests/source/configs/control_brace_style/closing_next_line.rs diff --git a/tests/source/configs/disable_all_formatting/false.rs b/src/tools/rustfmt/tests/source/configs/disable_all_formatting/false.rs similarity index 100% rename from tests/source/configs/disable_all_formatting/false.rs rename to src/tools/rustfmt/tests/source/configs/disable_all_formatting/false.rs diff --git a/tests/source/configs/disable_all_formatting/true.rs b/src/tools/rustfmt/tests/source/configs/disable_all_formatting/true.rs similarity index 100% rename from tests/source/configs/disable_all_formatting/true.rs rename to src/tools/rustfmt/tests/source/configs/disable_all_formatting/true.rs diff --git a/tests/source/configs/doc_comment_code_block_small_heuristics/default-to-max.rs b/src/tools/rustfmt/tests/source/configs/doc_comment_code_block_small_heuristics/default-to-max.rs similarity index 100% rename from tests/source/configs/doc_comment_code_block_small_heuristics/default-to-max.rs rename to src/tools/rustfmt/tests/source/configs/doc_comment_code_block_small_heuristics/default-to-max.rs diff --git a/tests/source/configs/doc_comment_code_block_small_heuristics/max-to-default.rs b/src/tools/rustfmt/tests/source/configs/doc_comment_code_block_small_heuristics/max-to-default.rs similarity index 100% rename from tests/source/configs/doc_comment_code_block_small_heuristics/max-to-default.rs rename to src/tools/rustfmt/tests/source/configs/doc_comment_code_block_small_heuristics/max-to-default.rs diff --git a/tests/source/configs/doc_comment_code_block_width/100.rs b/src/tools/rustfmt/tests/source/configs/doc_comment_code_block_width/100.rs similarity index 100% rename from tests/source/configs/doc_comment_code_block_width/100.rs rename to src/tools/rustfmt/tests/source/configs/doc_comment_code_block_width/100.rs diff --git a/tests/source/configs/doc_comment_code_block_width/100_greater_max_width.rs b/src/tools/rustfmt/tests/source/configs/doc_comment_code_block_width/100_greater_max_width.rs similarity index 100% rename from tests/source/configs/doc_comment_code_block_width/100_greater_max_width.rs rename to src/tools/rustfmt/tests/source/configs/doc_comment_code_block_width/100_greater_max_width.rs diff --git a/tests/source/configs/doc_comment_code_block_width/50.rs b/src/tools/rustfmt/tests/source/configs/doc_comment_code_block_width/50.rs similarity index 100% rename from tests/source/configs/doc_comment_code_block_width/50.rs rename to src/tools/rustfmt/tests/source/configs/doc_comment_code_block_width/50.rs diff --git a/tests/source/configs/empty_item_single_line/false.rs b/src/tools/rustfmt/tests/source/configs/empty_item_single_line/false.rs similarity index 100% rename from tests/source/configs/empty_item_single_line/false.rs rename to src/tools/rustfmt/tests/source/configs/empty_item_single_line/false.rs diff --git a/tests/source/configs/empty_item_single_line/true.rs b/src/tools/rustfmt/tests/source/configs/empty_item_single_line/true.rs similarity index 100% rename from tests/source/configs/empty_item_single_line/true.rs rename to src/tools/rustfmt/tests/source/configs/empty_item_single_line/true.rs diff --git a/tests/source/configs/enum_discrim_align_threshold/40.rs b/src/tools/rustfmt/tests/source/configs/enum_discrim_align_threshold/40.rs similarity index 100% rename from tests/source/configs/enum_discrim_align_threshold/40.rs rename to src/tools/rustfmt/tests/source/configs/enum_discrim_align_threshold/40.rs diff --git a/tests/source/configs/error_on_line_overflow/false.rs b/src/tools/rustfmt/tests/source/configs/error_on_line_overflow/false.rs similarity index 100% rename from tests/source/configs/error_on_line_overflow/false.rs rename to src/tools/rustfmt/tests/source/configs/error_on_line_overflow/false.rs diff --git a/tests/source/configs/float_literal_trailing_zero/always.rs b/src/tools/rustfmt/tests/source/configs/float_literal_trailing_zero/always.rs similarity index 100% rename from tests/source/configs/float_literal_trailing_zero/always.rs rename to src/tools/rustfmt/tests/source/configs/float_literal_trailing_zero/always.rs diff --git a/tests/source/configs/float_literal_trailing_zero/if-no-postfix.rs b/src/tools/rustfmt/tests/source/configs/float_literal_trailing_zero/if-no-postfix.rs similarity index 100% rename from tests/source/configs/float_literal_trailing_zero/if-no-postfix.rs rename to src/tools/rustfmt/tests/source/configs/float_literal_trailing_zero/if-no-postfix.rs diff --git a/tests/source/configs/float_literal_trailing_zero/never.rs b/src/tools/rustfmt/tests/source/configs/float_literal_trailing_zero/never.rs similarity index 100% rename from tests/source/configs/float_literal_trailing_zero/never.rs rename to src/tools/rustfmt/tests/source/configs/float_literal_trailing_zero/never.rs diff --git a/tests/source/configs/fn_params_layout/compressed.rs b/src/tools/rustfmt/tests/source/configs/fn_params_layout/compressed.rs similarity index 100% rename from tests/source/configs/fn_params_layout/compressed.rs rename to src/tools/rustfmt/tests/source/configs/fn_params_layout/compressed.rs diff --git a/tests/source/configs/fn_params_layout/tall.rs b/src/tools/rustfmt/tests/source/configs/fn_params_layout/tall.rs similarity index 100% rename from tests/source/configs/fn_params_layout/tall.rs rename to src/tools/rustfmt/tests/source/configs/fn_params_layout/tall.rs diff --git a/tests/source/configs/fn_params_layout/vertical.rs b/src/tools/rustfmt/tests/source/configs/fn_params_layout/vertical.rs similarity index 100% rename from tests/source/configs/fn_params_layout/vertical.rs rename to src/tools/rustfmt/tests/source/configs/fn_params_layout/vertical.rs diff --git a/tests/source/configs/fn_params_layout/vertical_style_2027.rs b/src/tools/rustfmt/tests/source/configs/fn_params_layout/vertical_style_2027.rs similarity index 100% rename from tests/source/configs/fn_params_layout/vertical_style_2027.rs rename to src/tools/rustfmt/tests/source/configs/fn_params_layout/vertical_style_2027.rs diff --git a/tests/source/configs/fn_single_line/false.rs b/src/tools/rustfmt/tests/source/configs/fn_single_line/false.rs similarity index 100% rename from tests/source/configs/fn_single_line/false.rs rename to src/tools/rustfmt/tests/source/configs/fn_single_line/false.rs diff --git a/tests/source/configs/fn_single_line/true.rs b/src/tools/rustfmt/tests/source/configs/fn_single_line/true.rs similarity index 100% rename from tests/source/configs/fn_single_line/true.rs rename to src/tools/rustfmt/tests/source/configs/fn_single_line/true.rs diff --git a/tests/source/configs/force_explicit_abi/false.rs b/src/tools/rustfmt/tests/source/configs/force_explicit_abi/false.rs similarity index 100% rename from tests/source/configs/force_explicit_abi/false.rs rename to src/tools/rustfmt/tests/source/configs/force_explicit_abi/false.rs diff --git a/tests/source/configs/force_explicit_abi/true.rs b/src/tools/rustfmt/tests/source/configs/force_explicit_abi/true.rs similarity index 100% rename from tests/source/configs/force_explicit_abi/true.rs rename to src/tools/rustfmt/tests/source/configs/force_explicit_abi/true.rs diff --git a/tests/source/configs/force_multiline_block/false.rs b/src/tools/rustfmt/tests/source/configs/force_multiline_block/false.rs similarity index 100% rename from tests/source/configs/force_multiline_block/false.rs rename to src/tools/rustfmt/tests/source/configs/force_multiline_block/false.rs diff --git a/tests/source/configs/force_multiline_block/true.rs b/src/tools/rustfmt/tests/source/configs/force_multiline_block/true.rs similarity index 100% rename from tests/source/configs/force_multiline_block/true.rs rename to src/tools/rustfmt/tests/source/configs/force_multiline_block/true.rs diff --git a/tests/source/configs/format_generated_files/false.rs b/src/tools/rustfmt/tests/source/configs/format_generated_files/false.rs similarity index 100% rename from tests/source/configs/format_generated_files/false.rs rename to src/tools/rustfmt/tests/source/configs/format_generated_files/false.rs diff --git a/tests/source/configs/format_generated_files/false_with_generated_marker_line_search_limit.rs b/src/tools/rustfmt/tests/source/configs/format_generated_files/false_with_generated_marker_line_search_limit.rs similarity index 100% rename from tests/source/configs/format_generated_files/false_with_generated_marker_line_search_limit.rs rename to src/tools/rustfmt/tests/source/configs/format_generated_files/false_with_generated_marker_line_search_limit.rs diff --git a/tests/source/configs/format_generated_files/false_with_marker_out_scope_size.rs b/src/tools/rustfmt/tests/source/configs/format_generated_files/false_with_marker_out_scope_size.rs similarity index 100% rename from tests/source/configs/format_generated_files/false_with_marker_out_scope_size.rs rename to src/tools/rustfmt/tests/source/configs/format_generated_files/false_with_marker_out_scope_size.rs diff --git a/tests/source/configs/format_generated_files/false_with_zero_search_limit.rs b/src/tools/rustfmt/tests/source/configs/format_generated_files/false_with_zero_search_limit.rs similarity index 100% rename from tests/source/configs/format_generated_files/false_with_zero_search_limit.rs rename to src/tools/rustfmt/tests/source/configs/format_generated_files/false_with_zero_search_limit.rs diff --git a/tests/source/configs/format_generated_files/true.rs b/src/tools/rustfmt/tests/source/configs/format_generated_files/true.rs similarity index 100% rename from tests/source/configs/format_generated_files/true.rs rename to src/tools/rustfmt/tests/source/configs/format_generated_files/true.rs diff --git a/tests/source/configs/format_generated_files/true_with_marker_in_scope_size.rs b/src/tools/rustfmt/tests/source/configs/format_generated_files/true_with_marker_in_scope_size.rs similarity index 100% rename from tests/source/configs/format_generated_files/true_with_marker_in_scope_size.rs rename to src/tools/rustfmt/tests/source/configs/format_generated_files/true_with_marker_in_scope_size.rs diff --git a/tests/source/configs/format_generated_files/true_with_marker_not_in_header.rs b/src/tools/rustfmt/tests/source/configs/format_generated_files/true_with_marker_not_in_header.rs similarity index 100% rename from tests/source/configs/format_generated_files/true_with_marker_not_in_header.rs rename to src/tools/rustfmt/tests/source/configs/format_generated_files/true_with_marker_not_in_header.rs diff --git a/tests/source/configs/format_macro_bodies/false.rs b/src/tools/rustfmt/tests/source/configs/format_macro_bodies/false.rs similarity index 100% rename from tests/source/configs/format_macro_bodies/false.rs rename to src/tools/rustfmt/tests/source/configs/format_macro_bodies/false.rs diff --git a/tests/source/configs/format_macro_bodies/true.rs b/src/tools/rustfmt/tests/source/configs/format_macro_bodies/true.rs similarity index 100% rename from tests/source/configs/format_macro_bodies/true.rs rename to src/tools/rustfmt/tests/source/configs/format_macro_bodies/true.rs diff --git a/tests/source/configs/format_macro_matchers/false.rs b/src/tools/rustfmt/tests/source/configs/format_macro_matchers/false.rs similarity index 100% rename from tests/source/configs/format_macro_matchers/false.rs rename to src/tools/rustfmt/tests/source/configs/format_macro_matchers/false.rs diff --git a/tests/source/configs/format_macro_matchers/true.rs b/src/tools/rustfmt/tests/source/configs/format_macro_matchers/true.rs similarity index 100% rename from tests/source/configs/format_macro_matchers/true.rs rename to src/tools/rustfmt/tests/source/configs/format_macro_matchers/true.rs diff --git a/tests/source/configs/format_strings/false.rs b/src/tools/rustfmt/tests/source/configs/format_strings/false.rs similarity index 100% rename from tests/source/configs/format_strings/false.rs rename to src/tools/rustfmt/tests/source/configs/format_strings/false.rs diff --git a/tests/source/configs/format_strings/true.rs b/src/tools/rustfmt/tests/source/configs/format_strings/true.rs similarity index 100% rename from tests/source/configs/format_strings/true.rs rename to src/tools/rustfmt/tests/source/configs/format_strings/true.rs diff --git a/tests/source/configs/group_imports/One-merge_imports.rs b/src/tools/rustfmt/tests/source/configs/group_imports/One-merge_imports.rs similarity index 100% rename from tests/source/configs/group_imports/One-merge_imports.rs rename to src/tools/rustfmt/tests/source/configs/group_imports/One-merge_imports.rs diff --git a/tests/source/configs/group_imports/One-nested.rs b/src/tools/rustfmt/tests/source/configs/group_imports/One-nested.rs similarity index 100% rename from tests/source/configs/group_imports/One-nested.rs rename to src/tools/rustfmt/tests/source/configs/group_imports/One-nested.rs diff --git a/tests/source/configs/group_imports/One-no_reorder.rs b/src/tools/rustfmt/tests/source/configs/group_imports/One-no_reorder.rs similarity index 100% rename from tests/source/configs/group_imports/One-no_reorder.rs rename to src/tools/rustfmt/tests/source/configs/group_imports/One-no_reorder.rs diff --git a/tests/source/configs/group_imports/One.rs b/src/tools/rustfmt/tests/source/configs/group_imports/One.rs similarity index 100% rename from tests/source/configs/group_imports/One.rs rename to src/tools/rustfmt/tests/source/configs/group_imports/One.rs diff --git a/tests/source/configs/group_imports/StdExternalCrate-merge_imports.rs b/src/tools/rustfmt/tests/source/configs/group_imports/StdExternalCrate-merge_imports.rs similarity index 100% rename from tests/source/configs/group_imports/StdExternalCrate-merge_imports.rs rename to src/tools/rustfmt/tests/source/configs/group_imports/StdExternalCrate-merge_imports.rs diff --git a/tests/source/configs/group_imports/StdExternalCrate-nested.rs b/src/tools/rustfmt/tests/source/configs/group_imports/StdExternalCrate-nested.rs similarity index 100% rename from tests/source/configs/group_imports/StdExternalCrate-nested.rs rename to src/tools/rustfmt/tests/source/configs/group_imports/StdExternalCrate-nested.rs diff --git a/tests/source/configs/group_imports/StdExternalCrate-no_reorder.rs b/src/tools/rustfmt/tests/source/configs/group_imports/StdExternalCrate-no_reorder.rs similarity index 100% rename from tests/source/configs/group_imports/StdExternalCrate-no_reorder.rs rename to src/tools/rustfmt/tests/source/configs/group_imports/StdExternalCrate-no_reorder.rs diff --git a/tests/source/configs/group_imports/StdExternalCrate-non_consecutive.rs b/src/tools/rustfmt/tests/source/configs/group_imports/StdExternalCrate-non_consecutive.rs similarity index 100% rename from tests/source/configs/group_imports/StdExternalCrate-non_consecutive.rs rename to src/tools/rustfmt/tests/source/configs/group_imports/StdExternalCrate-non_consecutive.rs diff --git a/tests/source/configs/group_imports/StdExternalCrate.rs b/src/tools/rustfmt/tests/source/configs/group_imports/StdExternalCrate.rs similarity index 100% rename from tests/source/configs/group_imports/StdExternalCrate.rs rename to src/tools/rustfmt/tests/source/configs/group_imports/StdExternalCrate.rs diff --git a/tests/source/configs/hard_tabs/false.rs b/src/tools/rustfmt/tests/source/configs/hard_tabs/false.rs similarity index 100% rename from tests/source/configs/hard_tabs/false.rs rename to src/tools/rustfmt/tests/source/configs/hard_tabs/false.rs diff --git a/tests/source/configs/hard_tabs/true.rs b/src/tools/rustfmt/tests/source/configs/hard_tabs/true.rs similarity index 100% rename from tests/source/configs/hard_tabs/true.rs rename to src/tools/rustfmt/tests/source/configs/hard_tabs/true.rs diff --git a/tests/source/configs/hex_literal_case/hex_literal_lower.rs b/src/tools/rustfmt/tests/source/configs/hex_literal_case/hex_literal_lower.rs similarity index 100% rename from tests/source/configs/hex_literal_case/hex_literal_lower.rs rename to src/tools/rustfmt/tests/source/configs/hex_literal_case/hex_literal_lower.rs diff --git a/tests/source/configs/hex_literal_case/hex_literal_preserve.rs b/src/tools/rustfmt/tests/source/configs/hex_literal_case/hex_literal_preserve.rs similarity index 100% rename from tests/source/configs/hex_literal_case/hex_literal_preserve.rs rename to src/tools/rustfmt/tests/source/configs/hex_literal_case/hex_literal_preserve.rs diff --git a/tests/source/configs/hex_literal_case/hex_literal_upper.rs b/src/tools/rustfmt/tests/source/configs/hex_literal_case/hex_literal_upper.rs similarity index 100% rename from tests/source/configs/hex_literal_case/hex_literal_upper.rs rename to src/tools/rustfmt/tests/source/configs/hex_literal_case/hex_literal_upper.rs diff --git a/tests/source/configs/imports_layout/merge_mixed.rs b/src/tools/rustfmt/tests/source/configs/imports_layout/merge_mixed.rs similarity index 100% rename from tests/source/configs/imports_layout/merge_mixed.rs rename to src/tools/rustfmt/tests/source/configs/imports_layout/merge_mixed.rs diff --git a/tests/source/configs/indent_style/block_args.rs b/src/tools/rustfmt/tests/source/configs/indent_style/block_args.rs similarity index 100% rename from tests/source/configs/indent_style/block_args.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/block_args.rs diff --git a/tests/source/configs/indent_style/block_array.rs b/src/tools/rustfmt/tests/source/configs/indent_style/block_array.rs similarity index 100% rename from tests/source/configs/indent_style/block_array.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/block_array.rs diff --git a/tests/source/configs/indent_style/block_call.rs b/src/tools/rustfmt/tests/source/configs/indent_style/block_call.rs similarity index 100% rename from tests/source/configs/indent_style/block_call.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/block_call.rs diff --git a/tests/source/configs/indent_style/block_chain.rs b/src/tools/rustfmt/tests/source/configs/indent_style/block_chain.rs similarity index 100% rename from tests/source/configs/indent_style/block_chain.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/block_chain.rs diff --git a/tests/source/configs/indent_style/block_generic.rs b/src/tools/rustfmt/tests/source/configs/indent_style/block_generic.rs similarity index 100% rename from tests/source/configs/indent_style/block_generic.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/block_generic.rs diff --git a/tests/source/configs/indent_style/block_struct_lit.rs b/src/tools/rustfmt/tests/source/configs/indent_style/block_struct_lit.rs similarity index 100% rename from tests/source/configs/indent_style/block_struct_lit.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/block_struct_lit.rs diff --git a/tests/source/configs/indent_style/block_trailing_comma_call/one.rs b/src/tools/rustfmt/tests/source/configs/indent_style/block_trailing_comma_call/one.rs similarity index 100% rename from tests/source/configs/indent_style/block_trailing_comma_call/one.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/block_trailing_comma_call/one.rs diff --git a/tests/source/configs/indent_style/block_trailing_comma_call/two.rs b/src/tools/rustfmt/tests/source/configs/indent_style/block_trailing_comma_call/two.rs similarity index 100% rename from tests/source/configs/indent_style/block_trailing_comma_call/two.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/block_trailing_comma_call/two.rs diff --git a/tests/source/configs/indent_style/block_where_pred.rs b/src/tools/rustfmt/tests/source/configs/indent_style/block_where_pred.rs similarity index 100% rename from tests/source/configs/indent_style/block_where_pred.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/block_where_pred.rs diff --git a/tests/source/configs/indent_style/default.rs b/src/tools/rustfmt/tests/source/configs/indent_style/default.rs similarity index 100% rename from tests/source/configs/indent_style/default.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/default.rs diff --git a/tests/source/configs/indent_style/rfc_where.rs b/src/tools/rustfmt/tests/source/configs/indent_style/rfc_where.rs similarity index 100% rename from tests/source/configs/indent_style/rfc_where.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/rfc_where.rs diff --git a/tests/source/configs/indent_style/visual_args.rs b/src/tools/rustfmt/tests/source/configs/indent_style/visual_args.rs similarity index 100% rename from tests/source/configs/indent_style/visual_args.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/visual_args.rs diff --git a/tests/source/configs/indent_style/visual_array.rs b/src/tools/rustfmt/tests/source/configs/indent_style/visual_array.rs similarity index 100% rename from tests/source/configs/indent_style/visual_array.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/visual_array.rs diff --git a/tests/source/configs/indent_style/visual_call.rs b/src/tools/rustfmt/tests/source/configs/indent_style/visual_call.rs similarity index 100% rename from tests/source/configs/indent_style/visual_call.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/visual_call.rs diff --git a/tests/source/configs/indent_style/visual_chain.rs b/src/tools/rustfmt/tests/source/configs/indent_style/visual_chain.rs similarity index 100% rename from tests/source/configs/indent_style/visual_chain.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/visual_chain.rs diff --git a/tests/source/configs/indent_style/visual_generics.rs b/src/tools/rustfmt/tests/source/configs/indent_style/visual_generics.rs similarity index 100% rename from tests/source/configs/indent_style/visual_generics.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/visual_generics.rs diff --git a/tests/source/configs/indent_style/visual_struct_lit.rs b/src/tools/rustfmt/tests/source/configs/indent_style/visual_struct_lit.rs similarity index 100% rename from tests/source/configs/indent_style/visual_struct_lit.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/visual_struct_lit.rs diff --git a/tests/source/configs/indent_style/visual_trailing_comma.rs b/src/tools/rustfmt/tests/source/configs/indent_style/visual_trailing_comma.rs similarity index 100% rename from tests/source/configs/indent_style/visual_trailing_comma.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/visual_trailing_comma.rs diff --git a/tests/source/configs/indent_style/visual_where_pred.rs b/src/tools/rustfmt/tests/source/configs/indent_style/visual_where_pred.rs similarity index 100% rename from tests/source/configs/indent_style/visual_where_pred.rs rename to src/tools/rustfmt/tests/source/configs/indent_style/visual_where_pred.rs diff --git a/tests/source/configs/match_arm_blocks/false.rs b/src/tools/rustfmt/tests/source/configs/match_arm_blocks/false.rs similarity index 100% rename from tests/source/configs/match_arm_blocks/false.rs rename to src/tools/rustfmt/tests/source/configs/match_arm_blocks/false.rs diff --git a/tests/source/configs/match_arm_blocks/true.rs b/src/tools/rustfmt/tests/source/configs/match_arm_blocks/true.rs similarity index 100% rename from tests/source/configs/match_arm_blocks/true.rs rename to src/tools/rustfmt/tests/source/configs/match_arm_blocks/true.rs diff --git a/tests/source/configs/match_arm_indent/attrs.rs b/src/tools/rustfmt/tests/source/configs/match_arm_indent/attrs.rs similarity index 100% rename from tests/source/configs/match_arm_indent/attrs.rs rename to src/tools/rustfmt/tests/source/configs/match_arm_indent/attrs.rs diff --git a/tests/source/configs/match_arm_indent/guards.rs b/src/tools/rustfmt/tests/source/configs/match_arm_indent/guards.rs similarity index 100% rename from tests/source/configs/match_arm_indent/guards.rs rename to src/tools/rustfmt/tests/source/configs/match_arm_indent/guards.rs diff --git a/tests/source/configs/match_arm_indent/leading_pipes.rs b/src/tools/rustfmt/tests/source/configs/match_arm_indent/leading_pipes.rs similarity index 100% rename from tests/source/configs/match_arm_indent/leading_pipes.rs rename to src/tools/rustfmt/tests/source/configs/match_arm_indent/leading_pipes.rs diff --git a/tests/source/configs/match_arm_indent/nested.rs b/src/tools/rustfmt/tests/source/configs/match_arm_indent/nested.rs similarity index 100% rename from tests/source/configs/match_arm_indent/nested.rs rename to src/tools/rustfmt/tests/source/configs/match_arm_indent/nested.rs diff --git a/tests/source/configs/match_arm_indent/patterns.rs b/src/tools/rustfmt/tests/source/configs/match_arm_indent/patterns.rs similarity index 100% rename from tests/source/configs/match_arm_indent/patterns.rs rename to src/tools/rustfmt/tests/source/configs/match_arm_indent/patterns.rs diff --git a/tests/source/configs/match_arm_indent/unindent.rs b/src/tools/rustfmt/tests/source/configs/match_arm_indent/unindent.rs similarity index 100% rename from tests/source/configs/match_arm_indent/unindent.rs rename to src/tools/rustfmt/tests/source/configs/match_arm_indent/unindent.rs diff --git a/tests/source/configs/match_arm_leading_pipes/always.rs b/src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/always.rs similarity index 100% rename from tests/source/configs/match_arm_leading_pipes/always.rs rename to src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/always.rs diff --git a/tests/source/configs/match_arm_leading_pipes/never.rs b/src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/never.rs similarity index 100% rename from tests/source/configs/match_arm_leading_pipes/never.rs rename to src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/never.rs diff --git a/tests/source/configs/match_arm_leading_pipes/preserve.rs b/src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs similarity index 100% rename from tests/source/configs/match_arm_leading_pipes/preserve.rs rename to src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs diff --git a/tests/source/configs/match_block_trailing_comma/false.rs b/src/tools/rustfmt/tests/source/configs/match_block_trailing_comma/false.rs similarity index 100% rename from tests/source/configs/match_block_trailing_comma/false.rs rename to src/tools/rustfmt/tests/source/configs/match_block_trailing_comma/false.rs diff --git a/tests/source/configs/match_block_trailing_comma/true.rs b/src/tools/rustfmt/tests/source/configs/match_block_trailing_comma/true.rs similarity index 100% rename from tests/source/configs/match_block_trailing_comma/true.rs rename to src/tools/rustfmt/tests/source/configs/match_block_trailing_comma/true.rs diff --git a/tests/source/configs/merge_derives/true.rs b/src/tools/rustfmt/tests/source/configs/merge_derives/true.rs similarity index 100% rename from tests/source/configs/merge_derives/true.rs rename to src/tools/rustfmt/tests/source/configs/merge_derives/true.rs diff --git a/tests/source/configs/normalize_comments/false.rs b/src/tools/rustfmt/tests/source/configs/normalize_comments/false.rs similarity index 100% rename from tests/source/configs/normalize_comments/false.rs rename to src/tools/rustfmt/tests/source/configs/normalize_comments/false.rs diff --git a/tests/source/configs/normalize_comments/true.rs b/src/tools/rustfmt/tests/source/configs/normalize_comments/true.rs similarity index 100% rename from tests/source/configs/normalize_comments/true.rs rename to src/tools/rustfmt/tests/source/configs/normalize_comments/true.rs diff --git a/tests/source/configs/normalize_doc_attributes/false.rs b/src/tools/rustfmt/tests/source/configs/normalize_doc_attributes/false.rs similarity index 100% rename from tests/source/configs/normalize_doc_attributes/false.rs rename to src/tools/rustfmt/tests/source/configs/normalize_doc_attributes/false.rs diff --git a/tests/source/configs/normalize_doc_attributes/true.rs b/src/tools/rustfmt/tests/source/configs/normalize_doc_attributes/true.rs similarity index 100% rename from tests/source/configs/normalize_doc_attributes/true.rs rename to src/tools/rustfmt/tests/source/configs/normalize_doc_attributes/true.rs diff --git a/tests/source/configs/remove_nested_parens/remove_nested_parens.rs b/src/tools/rustfmt/tests/source/configs/remove_nested_parens/remove_nested_parens.rs similarity index 100% rename from tests/source/configs/remove_nested_parens/remove_nested_parens.rs rename to src/tools/rustfmt/tests/source/configs/remove_nested_parens/remove_nested_parens.rs diff --git a/tests/source/configs/reorder_impl_items/false.rs b/src/tools/rustfmt/tests/source/configs/reorder_impl_items/false.rs similarity index 100% rename from tests/source/configs/reorder_impl_items/false.rs rename to src/tools/rustfmt/tests/source/configs/reorder_impl_items/false.rs diff --git a/tests/source/configs/reorder_impl_items/true.rs b/src/tools/rustfmt/tests/source/configs/reorder_impl_items/true.rs similarity index 100% rename from tests/source/configs/reorder_impl_items/true.rs rename to src/tools/rustfmt/tests/source/configs/reorder_impl_items/true.rs diff --git a/tests/source/configs/reorder_imports/false.rs b/src/tools/rustfmt/tests/source/configs/reorder_imports/false.rs similarity index 100% rename from tests/source/configs/reorder_imports/false.rs rename to src/tools/rustfmt/tests/source/configs/reorder_imports/false.rs diff --git a/tests/source/configs/reorder_imports/true.rs b/src/tools/rustfmt/tests/source/configs/reorder_imports/true.rs similarity index 100% rename from tests/source/configs/reorder_imports/true.rs rename to src/tools/rustfmt/tests/source/configs/reorder_imports/true.rs diff --git a/tests/source/configs/reorder_modules/dolor/mod.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/dolor/mod.rs similarity index 100% rename from tests/source/configs/reorder_modules/dolor/mod.rs rename to src/tools/rustfmt/tests/source/configs/reorder_modules/dolor/mod.rs diff --git a/tests/source/configs/reorder_modules/false.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/false.rs similarity index 100% rename from tests/source/configs/reorder_modules/false.rs rename to src/tools/rustfmt/tests/source/configs/reorder_modules/false.rs diff --git a/tests/source/configs/reorder_modules/ipsum/mod.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/ipsum/mod.rs similarity index 100% rename from tests/source/configs/reorder_modules/ipsum/mod.rs rename to src/tools/rustfmt/tests/source/configs/reorder_modules/ipsum/mod.rs diff --git a/tests/source/configs/reorder_modules/lorem/mod.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/lorem/mod.rs similarity index 100% rename from tests/source/configs/reorder_modules/lorem/mod.rs rename to src/tools/rustfmt/tests/source/configs/reorder_modules/lorem/mod.rs diff --git a/tests/source/configs/reorder_modules/sit/mod.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/sit/mod.rs similarity index 100% rename from tests/source/configs/reorder_modules/sit/mod.rs rename to src/tools/rustfmt/tests/source/configs/reorder_modules/sit/mod.rs diff --git a/tests/source/configs/reorder_modules/true.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/true.rs similarity index 100% rename from tests/source/configs/reorder_modules/true.rs rename to src/tools/rustfmt/tests/source/configs/reorder_modules/true.rs diff --git a/tests/source/configs/short_array_element_width_threshold/10.rs b/src/tools/rustfmt/tests/source/configs/short_array_element_width_threshold/10.rs similarity index 100% rename from tests/source/configs/short_array_element_width_threshold/10.rs rename to src/tools/rustfmt/tests/source/configs/short_array_element_width_threshold/10.rs diff --git a/tests/source/configs/short_array_element_width_threshold/20.rs b/src/tools/rustfmt/tests/source/configs/short_array_element_width_threshold/20.rs similarity index 100% rename from tests/source/configs/short_array_element_width_threshold/20.rs rename to src/tools/rustfmt/tests/source/configs/short_array_element_width_threshold/20.rs diff --git a/tests/source/configs/short_array_element_width_threshold/greater_than_max_width.rs b/src/tools/rustfmt/tests/source/configs/short_array_element_width_threshold/greater_than_max_width.rs similarity index 100% rename from tests/source/configs/short_array_element_width_threshold/greater_than_max_width.rs rename to src/tools/rustfmt/tests/source/configs/short_array_element_width_threshold/greater_than_max_width.rs diff --git a/tests/source/configs/single_line_let_else_max_width/100.rs b/src/tools/rustfmt/tests/source/configs/single_line_let_else_max_width/100.rs similarity index 100% rename from tests/source/configs/single_line_let_else_max_width/100.rs rename to src/tools/rustfmt/tests/source/configs/single_line_let_else_max_width/100.rs diff --git a/tests/source/configs/single_line_let_else_max_width/50.rs b/src/tools/rustfmt/tests/source/configs/single_line_let_else_max_width/50.rs similarity index 100% rename from tests/source/configs/single_line_let_else_max_width/50.rs rename to src/tools/rustfmt/tests/source/configs/single_line_let_else_max_width/50.rs diff --git a/tests/source/configs/single_line_let_else_max_width/zero.rs b/src/tools/rustfmt/tests/source/configs/single_line_let_else_max_width/zero.rs similarity index 100% rename from tests/source/configs/single_line_let_else_max_width/zero.rs rename to src/tools/rustfmt/tests/source/configs/single_line_let_else_max_width/zero.rs diff --git a/tests/source/configs/skip_children/foo/mod.rs b/src/tools/rustfmt/tests/source/configs/skip_children/foo/mod.rs similarity index 100% rename from tests/source/configs/skip_children/foo/mod.rs rename to src/tools/rustfmt/tests/source/configs/skip_children/foo/mod.rs diff --git a/tests/source/configs/skip_children/true.rs b/src/tools/rustfmt/tests/source/configs/skip_children/true.rs similarity index 100% rename from tests/source/configs/skip_children/true.rs rename to src/tools/rustfmt/tests/source/configs/skip_children/true.rs diff --git a/tests/source/configs/space_before_colon/true.rs b/src/tools/rustfmt/tests/source/configs/space_before_colon/true.rs similarity index 100% rename from tests/source/configs/space_before_colon/true.rs rename to src/tools/rustfmt/tests/source/configs/space_before_colon/true.rs diff --git a/tests/source/configs/spaces_around_ranges/false.rs b/src/tools/rustfmt/tests/source/configs/spaces_around_ranges/false.rs similarity index 100% rename from tests/source/configs/spaces_around_ranges/false.rs rename to src/tools/rustfmt/tests/source/configs/spaces_around_ranges/false.rs diff --git a/tests/source/configs/spaces_around_ranges/true.rs b/src/tools/rustfmt/tests/source/configs/spaces_around_ranges/true.rs similarity index 100% rename from tests/source/configs/spaces_around_ranges/true.rs rename to src/tools/rustfmt/tests/source/configs/spaces_around_ranges/true.rs diff --git a/tests/source/configs/struct_field_align_threshold/20.rs b/src/tools/rustfmt/tests/source/configs/struct_field_align_threshold/20.rs similarity index 100% rename from tests/source/configs/struct_field_align_threshold/20.rs rename to src/tools/rustfmt/tests/source/configs/struct_field_align_threshold/20.rs diff --git a/tests/source/configs/struct_lit_single_line/false.rs b/src/tools/rustfmt/tests/source/configs/struct_lit_single_line/false.rs similarity index 100% rename from tests/source/configs/struct_lit_single_line/false.rs rename to src/tools/rustfmt/tests/source/configs/struct_lit_single_line/false.rs diff --git a/tests/source/configs/style_edition/overflow_delim_expr_2015.rs b/src/tools/rustfmt/tests/source/configs/style_edition/overflow_delim_expr_2015.rs similarity index 100% rename from tests/source/configs/style_edition/overflow_delim_expr_2015.rs rename to src/tools/rustfmt/tests/source/configs/style_edition/overflow_delim_expr_2015.rs diff --git a/tests/source/configs/style_edition/overflow_delim_expr_2024.rs b/src/tools/rustfmt/tests/source/configs/style_edition/overflow_delim_expr_2024.rs similarity index 100% rename from tests/source/configs/style_edition/overflow_delim_expr_2024.rs rename to src/tools/rustfmt/tests/source/configs/style_edition/overflow_delim_expr_2024.rs diff --git a/tests/source/configs/tab_spaces/2.rs b/src/tools/rustfmt/tests/source/configs/tab_spaces/2.rs similarity index 100% rename from tests/source/configs/tab_spaces/2.rs rename to src/tools/rustfmt/tests/source/configs/tab_spaces/2.rs diff --git a/tests/source/configs/tab_spaces/4.rs b/src/tools/rustfmt/tests/source/configs/tab_spaces/4.rs similarity index 100% rename from tests/source/configs/tab_spaces/4.rs rename to src/tools/rustfmt/tests/source/configs/tab_spaces/4.rs diff --git a/tests/source/configs/trailing_comma/always.rs b/src/tools/rustfmt/tests/source/configs/trailing_comma/always.rs similarity index 100% rename from tests/source/configs/trailing_comma/always.rs rename to src/tools/rustfmt/tests/source/configs/trailing_comma/always.rs diff --git a/tests/source/configs/trailing_comma/never.rs b/src/tools/rustfmt/tests/source/configs/trailing_comma/never.rs similarity index 100% rename from tests/source/configs/trailing_comma/never.rs rename to src/tools/rustfmt/tests/source/configs/trailing_comma/never.rs diff --git a/tests/source/configs/trailing_comma/vertical.rs b/src/tools/rustfmt/tests/source/configs/trailing_comma/vertical.rs similarity index 100% rename from tests/source/configs/trailing_comma/vertical.rs rename to src/tools/rustfmt/tests/source/configs/trailing_comma/vertical.rs diff --git a/tests/source/configs/type_punctuation_density/compressed.rs b/src/tools/rustfmt/tests/source/configs/type_punctuation_density/compressed.rs similarity index 100% rename from tests/source/configs/type_punctuation_density/compressed.rs rename to src/tools/rustfmt/tests/source/configs/type_punctuation_density/compressed.rs diff --git a/tests/source/configs/type_punctuation_density/wide.rs b/src/tools/rustfmt/tests/source/configs/type_punctuation_density/wide.rs similarity index 100% rename from tests/source/configs/type_punctuation_density/wide.rs rename to src/tools/rustfmt/tests/source/configs/type_punctuation_density/wide.rs diff --git a/tests/source/configs/use_field_init_shorthand/false.rs b/src/tools/rustfmt/tests/source/configs/use_field_init_shorthand/false.rs similarity index 100% rename from tests/source/configs/use_field_init_shorthand/false.rs rename to src/tools/rustfmt/tests/source/configs/use_field_init_shorthand/false.rs diff --git a/tests/source/configs/use_field_init_shorthand/true.rs b/src/tools/rustfmt/tests/source/configs/use_field_init_shorthand/true.rs similarity index 100% rename from tests/source/configs/use_field_init_shorthand/true.rs rename to src/tools/rustfmt/tests/source/configs/use_field_init_shorthand/true.rs diff --git a/tests/source/configs/use_small_heuristics/default.rs b/src/tools/rustfmt/tests/source/configs/use_small_heuristics/default.rs similarity index 100% rename from tests/source/configs/use_small_heuristics/default.rs rename to src/tools/rustfmt/tests/source/configs/use_small_heuristics/default.rs diff --git a/tests/source/configs/use_small_heuristics/max.rs b/src/tools/rustfmt/tests/source/configs/use_small_heuristics/max.rs similarity index 100% rename from tests/source/configs/use_small_heuristics/max.rs rename to src/tools/rustfmt/tests/source/configs/use_small_heuristics/max.rs diff --git a/tests/source/configs/use_small_heuristics/off.rs b/src/tools/rustfmt/tests/source/configs/use_small_heuristics/off.rs similarity index 100% rename from tests/source/configs/use_small_heuristics/off.rs rename to src/tools/rustfmt/tests/source/configs/use_small_heuristics/off.rs diff --git a/tests/source/configs/use_try_shorthand/false.rs b/src/tools/rustfmt/tests/source/configs/use_try_shorthand/false.rs similarity index 100% rename from tests/source/configs/use_try_shorthand/false.rs rename to src/tools/rustfmt/tests/source/configs/use_try_shorthand/false.rs diff --git a/tests/source/configs/use_try_shorthand/true.rs b/src/tools/rustfmt/tests/source/configs/use_try_shorthand/true.rs similarity index 100% rename from tests/source/configs/use_try_shorthand/true.rs rename to src/tools/rustfmt/tests/source/configs/use_try_shorthand/true.rs diff --git a/tests/source/configs/where_single_line/true.rs b/src/tools/rustfmt/tests/source/configs/where_single_line/true.rs similarity index 100% rename from tests/source/configs/where_single_line/true.rs rename to src/tools/rustfmt/tests/source/configs/where_single_line/true.rs diff --git a/tests/source/configs/wrap_comments/false.rs b/src/tools/rustfmt/tests/source/configs/wrap_comments/false.rs similarity index 100% rename from tests/source/configs/wrap_comments/false.rs rename to src/tools/rustfmt/tests/source/configs/wrap_comments/false.rs diff --git a/tests/source/configs/wrap_comments/true.rs b/src/tools/rustfmt/tests/source/configs/wrap_comments/true.rs similarity index 100% rename from tests/source/configs/wrap_comments/true.rs rename to src/tools/rustfmt/tests/source/configs/wrap_comments/true.rs diff --git a/tests/source/const-block-items.rs b/src/tools/rustfmt/tests/source/const-block-items.rs similarity index 100% rename from tests/source/const-block-items.rs rename to src/tools/rustfmt/tests/source/const-block-items.rs diff --git a/tests/source/const_generics.rs b/src/tools/rustfmt/tests/source/const_generics.rs similarity index 100% rename from tests/source/const_generics.rs rename to src/tools/rustfmt/tests/source/const_generics.rs diff --git a/tests/source/control-brace-style-always-next-line.rs b/src/tools/rustfmt/tests/source/control-brace-style-always-next-line.rs similarity index 100% rename from tests/source/control-brace-style-always-next-line.rs rename to src/tools/rustfmt/tests/source/control-brace-style-always-next-line.rs diff --git a/tests/source/control-brace-style-always-same-line.rs b/src/tools/rustfmt/tests/source/control-brace-style-always-same-line.rs similarity index 100% rename from tests/source/control-brace-style-always-same-line.rs rename to src/tools/rustfmt/tests/source/control-brace-style-always-same-line.rs diff --git a/tests/source/default-field-values.rs b/src/tools/rustfmt/tests/source/default-field-values.rs similarity index 100% rename from tests/source/default-field-values.rs rename to src/tools/rustfmt/tests/source/default-field-values.rs diff --git a/tests/source/direct_const_arg.rs b/src/tools/rustfmt/tests/source/direct_const_arg.rs similarity index 100% rename from tests/source/direct_const_arg.rs rename to src/tools/rustfmt/tests/source/direct_const_arg.rs diff --git a/tests/source/doc-attrib.rs b/src/tools/rustfmt/tests/source/doc-attrib.rs similarity index 100% rename from tests/source/doc-attrib.rs rename to src/tools/rustfmt/tests/source/doc-attrib.rs diff --git a/tests/source/doc-comment-with-example.rs b/src/tools/rustfmt/tests/source/doc-comment-with-example.rs similarity index 100% rename from tests/source/doc-comment-with-example.rs rename to src/tools/rustfmt/tests/source/doc-comment-with-example.rs diff --git a/tests/source/doc.rs b/src/tools/rustfmt/tests/source/doc.rs similarity index 100% rename from tests/source/doc.rs rename to src/tools/rustfmt/tests/source/doc.rs diff --git a/tests/source/dyn_trait.rs b/src/tools/rustfmt/tests/source/dyn_trait.rs similarity index 100% rename from tests/source/dyn_trait.rs rename to src/tools/rustfmt/tests/source/dyn_trait.rs diff --git a/tests/source/else-if-brace-style-always-next-line.rs b/src/tools/rustfmt/tests/source/else-if-brace-style-always-next-line.rs similarity index 100% rename from tests/source/else-if-brace-style-always-next-line.rs rename to src/tools/rustfmt/tests/source/else-if-brace-style-always-next-line.rs diff --git a/tests/source/else-if-brace-style-always-same-line.rs b/src/tools/rustfmt/tests/source/else-if-brace-style-always-same-line.rs similarity index 100% rename from tests/source/else-if-brace-style-always-same-line.rs rename to src/tools/rustfmt/tests/source/else-if-brace-style-always-same-line.rs diff --git a/tests/source/else-if-brace-style-closing-next-line.rs b/src/tools/rustfmt/tests/source/else-if-brace-style-closing-next-line.rs similarity index 100% rename from tests/source/else-if-brace-style-closing-next-line.rs rename to src/tools/rustfmt/tests/source/else-if-brace-style-closing-next-line.rs diff --git a/tests/source/empty-item-single-line-false.rs b/src/tools/rustfmt/tests/source/empty-item-single-line-false.rs similarity index 100% rename from tests/source/empty-item-single-line-false.rs rename to src/tools/rustfmt/tests/source/empty-item-single-line-false.rs diff --git a/tests/source/empty_file.rs b/src/tools/rustfmt/tests/source/empty_file.rs similarity index 100% rename from tests/source/empty_file.rs rename to src/tools/rustfmt/tests/source/empty_file.rs diff --git a/tests/source/enum.rs b/src/tools/rustfmt/tests/source/enum.rs similarity index 100% rename from tests/source/enum.rs rename to src/tools/rustfmt/tests/source/enum.rs diff --git a/tests/source/ergonomic_clones.rs b/src/tools/rustfmt/tests/source/ergonomic_clones.rs similarity index 100% rename from tests/source/ergonomic_clones.rs rename to src/tools/rustfmt/tests/source/ergonomic_clones.rs diff --git a/tests/source/existential_type.rs b/src/tools/rustfmt/tests/source/existential_type.rs similarity index 100% rename from tests/source/existential_type.rs rename to src/tools/rustfmt/tests/source/existential_type.rs diff --git a/tests/source/expr-block.rs b/src/tools/rustfmt/tests/source/expr-block.rs similarity index 100% rename from tests/source/expr-block.rs rename to src/tools/rustfmt/tests/source/expr-block.rs diff --git a/tests/source/expr-overflow-delimited.rs b/src/tools/rustfmt/tests/source/expr-overflow-delimited.rs similarity index 100% rename from tests/source/expr-overflow-delimited.rs rename to src/tools/rustfmt/tests/source/expr-overflow-delimited.rs diff --git a/tests/source/expr.rs b/src/tools/rustfmt/tests/source/expr.rs similarity index 100% rename from tests/source/expr.rs rename to src/tools/rustfmt/tests/source/expr.rs diff --git a/tests/source/extern.rs b/src/tools/rustfmt/tests/source/extern.rs similarity index 100% rename from tests/source/extern.rs rename to src/tools/rustfmt/tests/source/extern.rs diff --git a/tests/source/extern_not_explicit.rs b/src/tools/rustfmt/tests/source/extern_not_explicit.rs similarity index 100% rename from tests/source/extern_not_explicit.rs rename to src/tools/rustfmt/tests/source/extern_not_explicit.rs diff --git a/tests/source/file-lines-1.rs b/src/tools/rustfmt/tests/source/file-lines-1.rs similarity index 100% rename from tests/source/file-lines-1.rs rename to src/tools/rustfmt/tests/source/file-lines-1.rs diff --git a/tests/source/file-lines-2.rs b/src/tools/rustfmt/tests/source/file-lines-2.rs similarity index 100% rename from tests/source/file-lines-2.rs rename to src/tools/rustfmt/tests/source/file-lines-2.rs diff --git a/tests/source/file-lines-3.rs b/src/tools/rustfmt/tests/source/file-lines-3.rs similarity index 100% rename from tests/source/file-lines-3.rs rename to src/tools/rustfmt/tests/source/file-lines-3.rs diff --git a/tests/source/file-lines-4.rs b/src/tools/rustfmt/tests/source/file-lines-4.rs similarity index 100% rename from tests/source/file-lines-4.rs rename to src/tools/rustfmt/tests/source/file-lines-4.rs diff --git a/tests/source/file-lines-5.rs b/src/tools/rustfmt/tests/source/file-lines-5.rs similarity index 100% rename from tests/source/file-lines-5.rs rename to src/tools/rustfmt/tests/source/file-lines-5.rs diff --git a/tests/source/file-lines-6.rs b/src/tools/rustfmt/tests/source/file-lines-6.rs similarity index 100% rename from tests/source/file-lines-6.rs rename to src/tools/rustfmt/tests/source/file-lines-6.rs diff --git a/tests/source/file-lines-7.rs b/src/tools/rustfmt/tests/source/file-lines-7.rs similarity index 100% rename from tests/source/file-lines-7.rs rename to src/tools/rustfmt/tests/source/file-lines-7.rs diff --git a/tests/source/file-lines-item.rs b/src/tools/rustfmt/tests/source/file-lines-item.rs similarity index 100% rename from tests/source/file-lines-item.rs rename to src/tools/rustfmt/tests/source/file-lines-item.rs diff --git a/tests/source/fn-custom-2.rs b/src/tools/rustfmt/tests/source/fn-custom-2.rs similarity index 100% rename from tests/source/fn-custom-2.rs rename to src/tools/rustfmt/tests/source/fn-custom-2.rs diff --git a/tests/source/fn-custom-3.rs b/src/tools/rustfmt/tests/source/fn-custom-3.rs similarity index 100% rename from tests/source/fn-custom-3.rs rename to src/tools/rustfmt/tests/source/fn-custom-3.rs diff --git a/tests/source/fn-custom-4.rs b/src/tools/rustfmt/tests/source/fn-custom-4.rs similarity index 100% rename from tests/source/fn-custom-4.rs rename to src/tools/rustfmt/tests/source/fn-custom-4.rs diff --git a/tests/source/fn-custom-6.rs b/src/tools/rustfmt/tests/source/fn-custom-6.rs similarity index 100% rename from tests/source/fn-custom-6.rs rename to src/tools/rustfmt/tests/source/fn-custom-6.rs diff --git a/tests/source/fn-custom-7.rs b/src/tools/rustfmt/tests/source/fn-custom-7.rs similarity index 100% rename from tests/source/fn-custom-7.rs rename to src/tools/rustfmt/tests/source/fn-custom-7.rs diff --git a/tests/source/fn-custom-8.rs b/src/tools/rustfmt/tests/source/fn-custom-8.rs similarity index 100% rename from tests/source/fn-custom-8.rs rename to src/tools/rustfmt/tests/source/fn-custom-8.rs diff --git a/tests/source/fn-custom.rs b/src/tools/rustfmt/tests/source/fn-custom.rs similarity index 100% rename from tests/source/fn-custom.rs rename to src/tools/rustfmt/tests/source/fn-custom.rs diff --git a/tests/source/fn-param-attributes.rs b/src/tools/rustfmt/tests/source/fn-param-attributes.rs similarity index 100% rename from tests/source/fn-param-attributes.rs rename to src/tools/rustfmt/tests/source/fn-param-attributes.rs diff --git a/tests/source/fn-simple.rs b/src/tools/rustfmt/tests/source/fn-simple.rs similarity index 100% rename from tests/source/fn-simple.rs rename to src/tools/rustfmt/tests/source/fn-simple.rs diff --git a/tests/source/fn-single-line/version_one.rs b/src/tools/rustfmt/tests/source/fn-single-line/version_one.rs similarity index 100% rename from tests/source/fn-single-line/version_one.rs rename to src/tools/rustfmt/tests/source/fn-single-line/version_one.rs diff --git a/tests/source/fn-single-line/version_two.rs b/src/tools/rustfmt/tests/source/fn-single-line/version_two.rs similarity index 100% rename from tests/source/fn-single-line/version_two.rs rename to src/tools/rustfmt/tests/source/fn-single-line/version_two.rs diff --git a/tests/source/fn_args_indent-block.rs b/src/tools/rustfmt/tests/source/fn_args_indent-block.rs similarity index 100% rename from tests/source/fn_args_indent-block.rs rename to src/tools/rustfmt/tests/source/fn_args_indent-block.rs diff --git a/tests/source/fn_args_layout-vertical.rs b/src/tools/rustfmt/tests/source/fn_args_layout-vertical.rs similarity index 100% rename from tests/source/fn_args_layout-vertical.rs rename to src/tools/rustfmt/tests/source/fn_args_layout-vertical.rs diff --git a/tests/source/frontmatter_compact.rs b/src/tools/rustfmt/tests/source/frontmatter_compact.rs similarity index 100% rename from tests/source/frontmatter_compact.rs rename to src/tools/rustfmt/tests/source/frontmatter_compact.rs diff --git a/tests/source/frontmatter_escaped.rs b/src/tools/rustfmt/tests/source/frontmatter_escaped.rs similarity index 100% rename from tests/source/frontmatter_escaped.rs rename to src/tools/rustfmt/tests/source/frontmatter_escaped.rs diff --git a/tests/source/frontmatter_spaced.rs b/src/tools/rustfmt/tests/source/frontmatter_spaced.rs similarity index 100% rename from tests/source/frontmatter_spaced.rs rename to src/tools/rustfmt/tests/source/frontmatter_spaced.rs diff --git a/tests/source/generic_static.rs b/src/tools/rustfmt/tests/source/generic_static.rs similarity index 100% rename from tests/source/generic_static.rs rename to src/tools/rustfmt/tests/source/generic_static.rs diff --git a/tests/source/hard-tabs.rs b/src/tools/rustfmt/tests/source/hard-tabs.rs similarity index 100% rename from tests/source/hard-tabs.rs rename to src/tools/rustfmt/tests/source/hard-tabs.rs diff --git a/tests/source/hello.rs b/src/tools/rustfmt/tests/source/hello.rs similarity index 100% rename from tests/source/hello.rs rename to src/tools/rustfmt/tests/source/hello.rs diff --git a/tests/source/hello2.rs b/src/tools/rustfmt/tests/source/hello2.rs similarity index 100% rename from tests/source/hello2.rs rename to src/tools/rustfmt/tests/source/hello2.rs diff --git a/tests/source/if_while_or_patterns.rs b/src/tools/rustfmt/tests/source/if_while_or_patterns.rs similarity index 100% rename from tests/source/if_while_or_patterns.rs rename to src/tools/rustfmt/tests/source/if_while_or_patterns.rs diff --git a/tests/source/immovable_coroutines.rs b/src/tools/rustfmt/tests/source/immovable_coroutines.rs similarity index 100% rename from tests/source/immovable_coroutines.rs rename to src/tools/rustfmt/tests/source/immovable_coroutines.rs diff --git a/tests/source/impl-restriction.rs b/src/tools/rustfmt/tests/source/impl-restriction.rs similarity index 100% rename from tests/source/impl-restriction.rs rename to src/tools/rustfmt/tests/source/impl-restriction.rs diff --git a/tests/source/impls.rs b/src/tools/rustfmt/tests/source/impls.rs similarity index 100% rename from tests/source/impls.rs rename to src/tools/rustfmt/tests/source/impls.rs diff --git a/tests/source/imports/imports-impl-only-use.rs b/src/tools/rustfmt/tests/source/imports/imports-impl-only-use.rs similarity index 100% rename from tests/source/imports/imports-impl-only-use.rs rename to src/tools/rustfmt/tests/source/imports/imports-impl-only-use.rs diff --git a/tests/source/imports/imports-reorder-lines-and-items.rs b/src/tools/rustfmt/tests/source/imports/imports-reorder-lines-and-items.rs similarity index 100% rename from tests/source/imports/imports-reorder-lines-and-items.rs rename to src/tools/rustfmt/tests/source/imports/imports-reorder-lines-and-items.rs diff --git a/tests/source/imports/imports-reorder-lines.rs b/src/tools/rustfmt/tests/source/imports/imports-reorder-lines.rs similarity index 100% rename from tests/source/imports/imports-reorder-lines.rs rename to src/tools/rustfmt/tests/source/imports/imports-reorder-lines.rs diff --git a/tests/source/imports/imports-reorder.rs b/src/tools/rustfmt/tests/source/imports/imports-reorder.rs similarity index 100% rename from tests/source/imports/imports-reorder.rs rename to src/tools/rustfmt/tests/source/imports/imports-reorder.rs diff --git a/tests/source/imports/imports.rs b/src/tools/rustfmt/tests/source/imports/imports.rs similarity index 100% rename from tests/source/imports/imports.rs rename to src/tools/rustfmt/tests/source/imports/imports.rs diff --git a/tests/source/imports/imports_block_indent.rs b/src/tools/rustfmt/tests/source/imports/imports_block_indent.rs similarity index 100% rename from tests/source/imports/imports_block_indent.rs rename to src/tools/rustfmt/tests/source/imports/imports_block_indent.rs diff --git a/tests/source/imports/imports_granularity_crate.rs b/src/tools/rustfmt/tests/source/imports/imports_granularity_crate.rs similarity index 100% rename from tests/source/imports/imports_granularity_crate.rs rename to src/tools/rustfmt/tests/source/imports/imports_granularity_crate.rs diff --git a/tests/source/imports/imports_granularity_default-with-dups.rs b/src/tools/rustfmt/tests/source/imports/imports_granularity_default-with-dups.rs similarity index 100% rename from tests/source/imports/imports_granularity_default-with-dups.rs rename to src/tools/rustfmt/tests/source/imports/imports_granularity_default-with-dups.rs diff --git a/tests/source/imports/imports_granularity_item-with-dups-StdExternalCrate-no-reorder.rs b/src/tools/rustfmt/tests/source/imports/imports_granularity_item-with-dups-StdExternalCrate-no-reorder.rs similarity index 100% rename from tests/source/imports/imports_granularity_item-with-dups-StdExternalCrate-no-reorder.rs rename to src/tools/rustfmt/tests/source/imports/imports_granularity_item-with-dups-StdExternalCrate-no-reorder.rs diff --git a/tests/source/imports/imports_granularity_item-with-dups.rs b/src/tools/rustfmt/tests/source/imports/imports_granularity_item-with-dups.rs similarity index 100% rename from tests/source/imports/imports_granularity_item-with-dups.rs rename to src/tools/rustfmt/tests/source/imports/imports_granularity_item-with-dups.rs diff --git a/tests/source/imports/imports_granularity_item.rs b/src/tools/rustfmt/tests/source/imports/imports_granularity_item.rs similarity index 100% rename from tests/source/imports/imports_granularity_item.rs rename to src/tools/rustfmt/tests/source/imports/imports_granularity_item.rs diff --git a/tests/source/imports/imports_granularity_module.rs b/src/tools/rustfmt/tests/source/imports/imports_granularity_module.rs similarity index 100% rename from tests/source/imports/imports_granularity_module.rs rename to src/tools/rustfmt/tests/source/imports/imports_granularity_module.rs diff --git a/tests/source/imports/imports_granularity_one.rs b/src/tools/rustfmt/tests/source/imports/imports_granularity_one.rs similarity index 100% rename from tests/source/imports/imports_granularity_one.rs rename to src/tools/rustfmt/tests/source/imports/imports_granularity_one.rs diff --git a/tests/source/imports_raw_identifiers/version_One.rs b/src/tools/rustfmt/tests/source/imports_raw_identifiers/version_One.rs similarity index 100% rename from tests/source/imports_raw_identifiers/version_One.rs rename to src/tools/rustfmt/tests/source/imports_raw_identifiers/version_One.rs diff --git a/tests/source/imports_raw_identifiers/version_Two.rs b/src/tools/rustfmt/tests/source/imports_raw_identifiers/version_Two.rs similarity index 100% rename from tests/source/imports_raw_identifiers/version_Two.rs rename to src/tools/rustfmt/tests/source/imports_raw_identifiers/version_Two.rs diff --git a/tests/source/invalid-rust-code-in-doc-comment.rs b/src/tools/rustfmt/tests/source/invalid-rust-code-in-doc-comment.rs similarity index 100% rename from tests/source/invalid-rust-code-in-doc-comment.rs rename to src/tools/rustfmt/tests/source/invalid-rust-code-in-doc-comment.rs diff --git a/tests/source/issue-1021.rs b/src/tools/rustfmt/tests/source/issue-1021.rs similarity index 100% rename from tests/source/issue-1021.rs rename to src/tools/rustfmt/tests/source/issue-1021.rs diff --git a/tests/source/issue-1049.rs b/src/tools/rustfmt/tests/source/issue-1049.rs similarity index 100% rename from tests/source/issue-1049.rs rename to src/tools/rustfmt/tests/source/issue-1049.rs diff --git a/tests/source/issue-1111.rs b/src/tools/rustfmt/tests/source/issue-1111.rs similarity index 100% rename from tests/source/issue-1111.rs rename to src/tools/rustfmt/tests/source/issue-1111.rs diff --git a/tests/source/issue-1120.rs b/src/tools/rustfmt/tests/source/issue-1120.rs similarity index 100% rename from tests/source/issue-1120.rs rename to src/tools/rustfmt/tests/source/issue-1120.rs diff --git a/tests/source/issue-1124.rs b/src/tools/rustfmt/tests/source/issue-1124.rs similarity index 100% rename from tests/source/issue-1124.rs rename to src/tools/rustfmt/tests/source/issue-1124.rs diff --git a/tests/source/issue-1127.rs b/src/tools/rustfmt/tests/source/issue-1127.rs similarity index 100% rename from tests/source/issue-1127.rs rename to src/tools/rustfmt/tests/source/issue-1127.rs diff --git a/tests/source/issue-1158.rs b/src/tools/rustfmt/tests/source/issue-1158.rs similarity index 100% rename from tests/source/issue-1158.rs rename to src/tools/rustfmt/tests/source/issue-1158.rs diff --git a/tests/source/issue-1177.rs b/src/tools/rustfmt/tests/source/issue-1177.rs similarity index 100% rename from tests/source/issue-1177.rs rename to src/tools/rustfmt/tests/source/issue-1177.rs diff --git a/tests/source/issue-1192.rs b/src/tools/rustfmt/tests/source/issue-1192.rs similarity index 100% rename from tests/source/issue-1192.rs rename to src/tools/rustfmt/tests/source/issue-1192.rs diff --git a/tests/source/issue-1210/a.rs b/src/tools/rustfmt/tests/source/issue-1210/a.rs similarity index 100% rename from tests/source/issue-1210/a.rs rename to src/tools/rustfmt/tests/source/issue-1210/a.rs diff --git a/tests/source/issue-1210/b.rs b/src/tools/rustfmt/tests/source/issue-1210/b.rs similarity index 100% rename from tests/source/issue-1210/b.rs rename to src/tools/rustfmt/tests/source/issue-1210/b.rs diff --git a/tests/source/issue-1210/c.rs b/src/tools/rustfmt/tests/source/issue-1210/c.rs similarity index 100% rename from tests/source/issue-1210/c.rs rename to src/tools/rustfmt/tests/source/issue-1210/c.rs diff --git a/tests/source/issue-1210/d.rs b/src/tools/rustfmt/tests/source/issue-1210/d.rs similarity index 100% rename from tests/source/issue-1210/d.rs rename to src/tools/rustfmt/tests/source/issue-1210/d.rs diff --git a/tests/source/issue-1210/e.rs b/src/tools/rustfmt/tests/source/issue-1210/e.rs similarity index 100% rename from tests/source/issue-1210/e.rs rename to src/tools/rustfmt/tests/source/issue-1210/e.rs diff --git a/tests/source/issue-1211.rs b/src/tools/rustfmt/tests/source/issue-1211.rs similarity index 100% rename from tests/source/issue-1211.rs rename to src/tools/rustfmt/tests/source/issue-1211.rs diff --git a/tests/source/issue-1216.rs b/src/tools/rustfmt/tests/source/issue-1216.rs similarity index 100% rename from tests/source/issue-1216.rs rename to src/tools/rustfmt/tests/source/issue-1216.rs diff --git a/tests/source/issue-1239.rs b/src/tools/rustfmt/tests/source/issue-1239.rs similarity index 100% rename from tests/source/issue-1239.rs rename to src/tools/rustfmt/tests/source/issue-1239.rs diff --git a/tests/source/issue-1278.rs b/src/tools/rustfmt/tests/source/issue-1278.rs similarity index 100% rename from tests/source/issue-1278.rs rename to src/tools/rustfmt/tests/source/issue-1278.rs diff --git a/tests/source/issue-1350.rs b/src/tools/rustfmt/tests/source/issue-1350.rs similarity index 100% rename from tests/source/issue-1350.rs rename to src/tools/rustfmt/tests/source/issue-1350.rs diff --git a/tests/source/issue-1366.rs b/src/tools/rustfmt/tests/source/issue-1366.rs similarity index 100% rename from tests/source/issue-1366.rs rename to src/tools/rustfmt/tests/source/issue-1366.rs diff --git a/tests/source/issue-1468.rs b/src/tools/rustfmt/tests/source/issue-1468.rs similarity index 100% rename from tests/source/issue-1468.rs rename to src/tools/rustfmt/tests/source/issue-1468.rs diff --git a/tests/source/issue-1693.rs b/src/tools/rustfmt/tests/source/issue-1693.rs similarity index 100% rename from tests/source/issue-1693.rs rename to src/tools/rustfmt/tests/source/issue-1693.rs diff --git a/tests/source/issue-1800.rs b/src/tools/rustfmt/tests/source/issue-1800.rs similarity index 100% rename from tests/source/issue-1800.rs rename to src/tools/rustfmt/tests/source/issue-1800.rs diff --git a/tests/source/issue-1914.rs b/src/tools/rustfmt/tests/source/issue-1914.rs similarity index 100% rename from tests/source/issue-1914.rs rename to src/tools/rustfmt/tests/source/issue-1914.rs diff --git a/tests/source/issue-2025.rs b/src/tools/rustfmt/tests/source/issue-2025.rs similarity index 100% rename from tests/source/issue-2025.rs rename to src/tools/rustfmt/tests/source/issue-2025.rs diff --git a/tests/source/issue-2111.rs b/src/tools/rustfmt/tests/source/issue-2111.rs similarity index 100% rename from tests/source/issue-2111.rs rename to src/tools/rustfmt/tests/source/issue-2111.rs diff --git a/tests/source/issue-2164.rs b/src/tools/rustfmt/tests/source/issue-2164.rs similarity index 100% rename from tests/source/issue-2164.rs rename to src/tools/rustfmt/tests/source/issue-2164.rs diff --git a/tests/source/issue-2179/one.rs b/src/tools/rustfmt/tests/source/issue-2179/one.rs similarity index 100% rename from tests/source/issue-2179/one.rs rename to src/tools/rustfmt/tests/source/issue-2179/one.rs diff --git a/tests/source/issue-2179/two.rs b/src/tools/rustfmt/tests/source/issue-2179/two.rs similarity index 100% rename from tests/source/issue-2179/two.rs rename to src/tools/rustfmt/tests/source/issue-2179/two.rs diff --git a/tests/source/issue-2256.rs b/src/tools/rustfmt/tests/source/issue-2256.rs similarity index 100% rename from tests/source/issue-2256.rs rename to src/tools/rustfmt/tests/source/issue-2256.rs diff --git a/tests/source/issue-2342.rs b/src/tools/rustfmt/tests/source/issue-2342.rs similarity index 100% rename from tests/source/issue-2342.rs rename to src/tools/rustfmt/tests/source/issue-2342.rs diff --git a/tests/source/issue-2445.rs b/src/tools/rustfmt/tests/source/issue-2445.rs similarity index 100% rename from tests/source/issue-2445.rs rename to src/tools/rustfmt/tests/source/issue-2445.rs diff --git a/tests/source/issue-2446.rs b/src/tools/rustfmt/tests/source/issue-2446.rs similarity index 100% rename from tests/source/issue-2446.rs rename to src/tools/rustfmt/tests/source/issue-2446.rs diff --git a/tests/source/issue-2479.rs b/src/tools/rustfmt/tests/source/issue-2479.rs similarity index 100% rename from tests/source/issue-2479.rs rename to src/tools/rustfmt/tests/source/issue-2479.rs diff --git a/tests/source/issue-2482/a.rs b/src/tools/rustfmt/tests/source/issue-2482/a.rs similarity index 100% rename from tests/source/issue-2482/a.rs rename to src/tools/rustfmt/tests/source/issue-2482/a.rs diff --git a/tests/source/issue-2482/b.rs b/src/tools/rustfmt/tests/source/issue-2482/b.rs similarity index 100% rename from tests/source/issue-2482/b.rs rename to src/tools/rustfmt/tests/source/issue-2482/b.rs diff --git a/tests/source/issue-2482/c.rs b/src/tools/rustfmt/tests/source/issue-2482/c.rs similarity index 100% rename from tests/source/issue-2482/c.rs rename to src/tools/rustfmt/tests/source/issue-2482/c.rs diff --git a/tests/source/issue-2496.rs b/src/tools/rustfmt/tests/source/issue-2496.rs similarity index 100% rename from tests/source/issue-2496.rs rename to src/tools/rustfmt/tests/source/issue-2496.rs diff --git a/tests/source/issue-2520.rs b/src/tools/rustfmt/tests/source/issue-2520.rs similarity index 100% rename from tests/source/issue-2520.rs rename to src/tools/rustfmt/tests/source/issue-2520.rs diff --git a/tests/source/issue-2523.rs b/src/tools/rustfmt/tests/source/issue-2523.rs similarity index 100% rename from tests/source/issue-2523.rs rename to src/tools/rustfmt/tests/source/issue-2523.rs diff --git a/tests/source/issue-2582.rs b/src/tools/rustfmt/tests/source/issue-2582.rs similarity index 100% rename from tests/source/issue-2582.rs rename to src/tools/rustfmt/tests/source/issue-2582.rs diff --git a/tests/source/issue-2641.rs b/src/tools/rustfmt/tests/source/issue-2641.rs similarity index 100% rename from tests/source/issue-2641.rs rename to src/tools/rustfmt/tests/source/issue-2641.rs diff --git a/tests/source/issue-2644.rs b/src/tools/rustfmt/tests/source/issue-2644.rs similarity index 100% rename from tests/source/issue-2644.rs rename to src/tools/rustfmt/tests/source/issue-2644.rs diff --git a/tests/source/issue-2728.rs b/src/tools/rustfmt/tests/source/issue-2728.rs similarity index 100% rename from tests/source/issue-2728.rs rename to src/tools/rustfmt/tests/source/issue-2728.rs diff --git a/tests/source/issue-2761.rs b/src/tools/rustfmt/tests/source/issue-2761.rs similarity index 100% rename from tests/source/issue-2761.rs rename to src/tools/rustfmt/tests/source/issue-2761.rs diff --git a/tests/source/issue-2781.rs b/src/tools/rustfmt/tests/source/issue-2781.rs similarity index 100% rename from tests/source/issue-2781.rs rename to src/tools/rustfmt/tests/source/issue-2781.rs diff --git a/tests/source/issue-2794.rs b/src/tools/rustfmt/tests/source/issue-2794.rs similarity index 100% rename from tests/source/issue-2794.rs rename to src/tools/rustfmt/tests/source/issue-2794.rs diff --git a/tests/source/issue-2835.rs b/src/tools/rustfmt/tests/source/issue-2835.rs similarity index 100% rename from tests/source/issue-2835.rs rename to src/tools/rustfmt/tests/source/issue-2835.rs diff --git a/tests/source/issue-2863.rs b/src/tools/rustfmt/tests/source/issue-2863.rs similarity index 100% rename from tests/source/issue-2863.rs rename to src/tools/rustfmt/tests/source/issue-2863.rs diff --git a/tests/source/issue-2869.rs b/src/tools/rustfmt/tests/source/issue-2869.rs similarity index 100% rename from tests/source/issue-2869.rs rename to src/tools/rustfmt/tests/source/issue-2869.rs diff --git a/tests/source/issue-2896.rs b/src/tools/rustfmt/tests/source/issue-2896.rs similarity index 100% rename from tests/source/issue-2896.rs rename to src/tools/rustfmt/tests/source/issue-2896.rs diff --git a/tests/source/issue-2916.rs b/src/tools/rustfmt/tests/source/issue-2916.rs similarity index 100% rename from tests/source/issue-2916.rs rename to src/tools/rustfmt/tests/source/issue-2916.rs diff --git a/tests/source/issue-2917/packed_simd.rs b/src/tools/rustfmt/tests/source/issue-2917/packed_simd.rs similarity index 100% rename from tests/source/issue-2917/packed_simd.rs rename to src/tools/rustfmt/tests/source/issue-2917/packed_simd.rs diff --git a/tests/source/issue-2922.rs b/src/tools/rustfmt/tests/source/issue-2922.rs similarity index 100% rename from tests/source/issue-2922.rs rename to src/tools/rustfmt/tests/source/issue-2922.rs diff --git a/tests/source/issue-2927-2.rs b/src/tools/rustfmt/tests/source/issue-2927-2.rs similarity index 100% rename from tests/source/issue-2927-2.rs rename to src/tools/rustfmt/tests/source/issue-2927-2.rs diff --git a/tests/source/issue-2927.rs b/src/tools/rustfmt/tests/source/issue-2927.rs similarity index 100% rename from tests/source/issue-2927.rs rename to src/tools/rustfmt/tests/source/issue-2927.rs diff --git a/tests/source/issue-2930.rs b/src/tools/rustfmt/tests/source/issue-2930.rs similarity index 100% rename from tests/source/issue-2930.rs rename to src/tools/rustfmt/tests/source/issue-2930.rs diff --git a/tests/source/issue-2936.rs b/src/tools/rustfmt/tests/source/issue-2936.rs similarity index 100% rename from tests/source/issue-2936.rs rename to src/tools/rustfmt/tests/source/issue-2936.rs diff --git a/tests/source/issue-2955.rs b/src/tools/rustfmt/tests/source/issue-2955.rs similarity index 100% rename from tests/source/issue-2955.rs rename to src/tools/rustfmt/tests/source/issue-2955.rs diff --git a/tests/source/issue-2973.rs b/src/tools/rustfmt/tests/source/issue-2973.rs similarity index 100% rename from tests/source/issue-2973.rs rename to src/tools/rustfmt/tests/source/issue-2973.rs diff --git a/tests/source/issue-2977/impl.rs b/src/tools/rustfmt/tests/source/issue-2977/impl.rs similarity index 100% rename from tests/source/issue-2977/impl.rs rename to src/tools/rustfmt/tests/source/issue-2977/impl.rs diff --git a/tests/source/issue-2977/trait.rs b/src/tools/rustfmt/tests/source/issue-2977/trait.rs similarity index 100% rename from tests/source/issue-2977/trait.rs rename to src/tools/rustfmt/tests/source/issue-2977/trait.rs diff --git a/tests/source/issue-2985.rs b/src/tools/rustfmt/tests/source/issue-2985.rs similarity index 100% rename from tests/source/issue-2985.rs rename to src/tools/rustfmt/tests/source/issue-2985.rs diff --git a/tests/source/issue-2995.rs b/src/tools/rustfmt/tests/source/issue-2995.rs similarity index 100% rename from tests/source/issue-2995.rs rename to src/tools/rustfmt/tests/source/issue-2995.rs diff --git a/tests/source/issue-3029.rs b/src/tools/rustfmt/tests/source/issue-3029.rs similarity index 100% rename from tests/source/issue-3029.rs rename to src/tools/rustfmt/tests/source/issue-3029.rs diff --git a/tests/source/issue-3038.rs b/src/tools/rustfmt/tests/source/issue-3038.rs similarity index 100% rename from tests/source/issue-3038.rs rename to src/tools/rustfmt/tests/source/issue-3038.rs diff --git a/tests/source/issue-3049.rs b/src/tools/rustfmt/tests/source/issue-3049.rs similarity index 100% rename from tests/source/issue-3049.rs rename to src/tools/rustfmt/tests/source/issue-3049.rs diff --git a/tests/source/issue-3055/original.rs b/src/tools/rustfmt/tests/source/issue-3055/original.rs similarity index 100% rename from tests/source/issue-3055/original.rs rename to src/tools/rustfmt/tests/source/issue-3055/original.rs diff --git a/tests/source/issue-3059.rs b/src/tools/rustfmt/tests/source/issue-3059.rs similarity index 100% rename from tests/source/issue-3059.rs rename to src/tools/rustfmt/tests/source/issue-3059.rs diff --git a/tests/source/issue-3066.rs b/src/tools/rustfmt/tests/source/issue-3066.rs similarity index 100% rename from tests/source/issue-3066.rs rename to src/tools/rustfmt/tests/source/issue-3066.rs diff --git a/tests/source/issue-3131.rs b/src/tools/rustfmt/tests/source/issue-3131.rs similarity index 100% rename from tests/source/issue-3131.rs rename to src/tools/rustfmt/tests/source/issue-3131.rs diff --git a/tests/source/issue-3153.rs b/src/tools/rustfmt/tests/source/issue-3153.rs similarity index 100% rename from tests/source/issue-3153.rs rename to src/tools/rustfmt/tests/source/issue-3153.rs diff --git a/tests/source/issue-3158.rs b/src/tools/rustfmt/tests/source/issue-3158.rs similarity index 100% rename from tests/source/issue-3158.rs rename to src/tools/rustfmt/tests/source/issue-3158.rs diff --git a/tests/source/issue-3194.rs b/src/tools/rustfmt/tests/source/issue-3194.rs similarity index 100% rename from tests/source/issue-3194.rs rename to src/tools/rustfmt/tests/source/issue-3194.rs diff --git a/tests/source/issue-3198.rs b/src/tools/rustfmt/tests/source/issue-3198.rs similarity index 100% rename from tests/source/issue-3198.rs rename to src/tools/rustfmt/tests/source/issue-3198.rs diff --git a/tests/source/issue-3213/version_one.rs b/src/tools/rustfmt/tests/source/issue-3213/version_one.rs similarity index 100% rename from tests/source/issue-3213/version_one.rs rename to src/tools/rustfmt/tests/source/issue-3213/version_one.rs diff --git a/tests/source/issue-3213/version_two.rs b/src/tools/rustfmt/tests/source/issue-3213/version_two.rs similarity index 100% rename from tests/source/issue-3213/version_two.rs rename to src/tools/rustfmt/tests/source/issue-3213/version_two.rs diff --git a/tests/source/issue-3217.rs b/src/tools/rustfmt/tests/source/issue-3217.rs similarity index 100% rename from tests/source/issue-3217.rs rename to src/tools/rustfmt/tests/source/issue-3217.rs diff --git a/tests/source/issue-3227/two.rs b/src/tools/rustfmt/tests/source/issue-3227/two.rs similarity index 100% rename from tests/source/issue-3227/two.rs rename to src/tools/rustfmt/tests/source/issue-3227/two.rs diff --git a/tests/source/issue-3234.rs b/src/tools/rustfmt/tests/source/issue-3234.rs similarity index 100% rename from tests/source/issue-3234.rs rename to src/tools/rustfmt/tests/source/issue-3234.rs diff --git a/tests/source/issue-3241.rs b/src/tools/rustfmt/tests/source/issue-3241.rs similarity index 100% rename from tests/source/issue-3241.rs rename to src/tools/rustfmt/tests/source/issue-3241.rs diff --git a/tests/source/issue-3253/bar.rs b/src/tools/rustfmt/tests/source/issue-3253/bar.rs similarity index 100% rename from tests/source/issue-3253/bar.rs rename to src/tools/rustfmt/tests/source/issue-3253/bar.rs diff --git a/tests/source/issue-3253/foo.rs b/src/tools/rustfmt/tests/source/issue-3253/foo.rs similarity index 100% rename from tests/source/issue-3253/foo.rs rename to src/tools/rustfmt/tests/source/issue-3253/foo.rs diff --git a/tests/source/issue-3253/lib.rs b/src/tools/rustfmt/tests/source/issue-3253/lib.rs similarity index 100% rename from tests/source/issue-3253/lib.rs rename to src/tools/rustfmt/tests/source/issue-3253/lib.rs diff --git a/tests/source/issue-3253/paths/bar_foo.rs b/src/tools/rustfmt/tests/source/issue-3253/paths/bar_foo.rs similarity index 100% rename from tests/source/issue-3253/paths/bar_foo.rs rename to src/tools/rustfmt/tests/source/issue-3253/paths/bar_foo.rs diff --git a/tests/source/issue-3253/paths/excluded.rs b/src/tools/rustfmt/tests/source/issue-3253/paths/excluded.rs similarity index 100% rename from tests/source/issue-3253/paths/excluded.rs rename to src/tools/rustfmt/tests/source/issue-3253/paths/excluded.rs diff --git a/tests/source/issue-3253/paths/foo_bar.rs b/src/tools/rustfmt/tests/source/issue-3253/paths/foo_bar.rs similarity index 100% rename from tests/source/issue-3253/paths/foo_bar.rs rename to src/tools/rustfmt/tests/source/issue-3253/paths/foo_bar.rs diff --git a/tests/source/issue-3265.rs b/src/tools/rustfmt/tests/source/issue-3265.rs similarity index 100% rename from tests/source/issue-3265.rs rename to src/tools/rustfmt/tests/source/issue-3265.rs diff --git a/tests/source/issue-3270/one.rs b/src/tools/rustfmt/tests/source/issue-3270/one.rs similarity index 100% rename from tests/source/issue-3270/one.rs rename to src/tools/rustfmt/tests/source/issue-3270/one.rs diff --git a/tests/source/issue-3270/two.rs b/src/tools/rustfmt/tests/source/issue-3270/two.rs similarity index 100% rename from tests/source/issue-3270/two.rs rename to src/tools/rustfmt/tests/source/issue-3270/two.rs diff --git a/tests/source/issue-3272/v1.rs b/src/tools/rustfmt/tests/source/issue-3272/v1.rs similarity index 100% rename from tests/source/issue-3272/v1.rs rename to src/tools/rustfmt/tests/source/issue-3272/v1.rs diff --git a/tests/source/issue-3272/v2.rs b/src/tools/rustfmt/tests/source/issue-3272/v2.rs similarity index 100% rename from tests/source/issue-3272/v2.rs rename to src/tools/rustfmt/tests/source/issue-3272/v2.rs diff --git a/tests/source/issue-3278/version_one.rs b/src/tools/rustfmt/tests/source/issue-3278/version_one.rs similarity index 100% rename from tests/source/issue-3278/version_one.rs rename to src/tools/rustfmt/tests/source/issue-3278/version_one.rs diff --git a/tests/source/issue-3278/version_two.rs b/src/tools/rustfmt/tests/source/issue-3278/version_two.rs similarity index 100% rename from tests/source/issue-3278/version_two.rs rename to src/tools/rustfmt/tests/source/issue-3278/version_two.rs diff --git a/tests/source/issue-3295/two.rs b/src/tools/rustfmt/tests/source/issue-3295/two.rs similarity index 100% rename from tests/source/issue-3295/two.rs rename to src/tools/rustfmt/tests/source/issue-3295/two.rs diff --git a/tests/source/issue-3302.rs b/src/tools/rustfmt/tests/source/issue-3302.rs similarity index 100% rename from tests/source/issue-3302.rs rename to src/tools/rustfmt/tests/source/issue-3302.rs diff --git a/tests/source/issue-3343.rs b/src/tools/rustfmt/tests/source/issue-3343.rs similarity index 100% rename from tests/source/issue-3343.rs rename to src/tools/rustfmt/tests/source/issue-3343.rs diff --git a/tests/source/issue-3423.rs b/src/tools/rustfmt/tests/source/issue-3423.rs similarity index 100% rename from tests/source/issue-3423.rs rename to src/tools/rustfmt/tests/source/issue-3423.rs diff --git a/tests/source/issue-3434/lib.rs b/src/tools/rustfmt/tests/source/issue-3434/lib.rs similarity index 100% rename from tests/source/issue-3434/lib.rs rename to src/tools/rustfmt/tests/source/issue-3434/lib.rs diff --git a/tests/source/issue-3434/no_entry.rs b/src/tools/rustfmt/tests/source/issue-3434/no_entry.rs similarity index 100% rename from tests/source/issue-3434/no_entry.rs rename to src/tools/rustfmt/tests/source/issue-3434/no_entry.rs diff --git a/tests/source/issue-3434/not_skip_macro.rs b/src/tools/rustfmt/tests/source/issue-3434/not_skip_macro.rs similarity index 100% rename from tests/source/issue-3434/not_skip_macro.rs rename to src/tools/rustfmt/tests/source/issue-3434/not_skip_macro.rs diff --git a/tests/source/issue-3465.rs b/src/tools/rustfmt/tests/source/issue-3465.rs similarity index 100% rename from tests/source/issue-3465.rs rename to src/tools/rustfmt/tests/source/issue-3465.rs diff --git a/tests/source/issue-3494/crlf.rs b/src/tools/rustfmt/tests/source/issue-3494/crlf.rs similarity index 100% rename from tests/source/issue-3494/crlf.rs rename to src/tools/rustfmt/tests/source/issue-3494/crlf.rs diff --git a/tests/source/issue-3494/lf.rs b/src/tools/rustfmt/tests/source/issue-3494/lf.rs similarity index 100% rename from tests/source/issue-3494/lf.rs rename to src/tools/rustfmt/tests/source/issue-3494/lf.rs diff --git a/tests/source/issue-3508.rs b/src/tools/rustfmt/tests/source/issue-3508.rs similarity index 100% rename from tests/source/issue-3508.rs rename to src/tools/rustfmt/tests/source/issue-3508.rs diff --git a/tests/source/issue-3515.rs b/src/tools/rustfmt/tests/source/issue-3515.rs similarity index 100% rename from tests/source/issue-3515.rs rename to src/tools/rustfmt/tests/source/issue-3515.rs diff --git a/tests/source/issue-3532.rs b/src/tools/rustfmt/tests/source/issue-3532.rs similarity index 100% rename from tests/source/issue-3532.rs rename to src/tools/rustfmt/tests/source/issue-3532.rs diff --git a/tests/source/issue-3585/extern_crate.rs b/src/tools/rustfmt/tests/source/issue-3585/extern_crate.rs similarity index 100% rename from tests/source/issue-3585/extern_crate.rs rename to src/tools/rustfmt/tests/source/issue-3585/extern_crate.rs diff --git a/tests/source/issue-3585/reorder_imports_disabled.rs b/src/tools/rustfmt/tests/source/issue-3585/reorder_imports_disabled.rs similarity index 100% rename from tests/source/issue-3585/reorder_imports_disabled.rs rename to src/tools/rustfmt/tests/source/issue-3585/reorder_imports_disabled.rs diff --git a/tests/source/issue-3585/reorder_imports_enabled.rs b/src/tools/rustfmt/tests/source/issue-3585/reorder_imports_enabled.rs similarity index 100% rename from tests/source/issue-3585/reorder_imports_enabled.rs rename to src/tools/rustfmt/tests/source/issue-3585/reorder_imports_enabled.rs diff --git a/tests/source/issue-3585/use.rs b/src/tools/rustfmt/tests/source/issue-3585/use.rs similarity index 100% rename from tests/source/issue-3585/use.rs rename to src/tools/rustfmt/tests/source/issue-3585/use.rs diff --git a/tests/source/issue-3636.rs b/src/tools/rustfmt/tests/source/issue-3636.rs similarity index 100% rename from tests/source/issue-3636.rs rename to src/tools/rustfmt/tests/source/issue-3636.rs diff --git a/tests/source/issue-3639.rs b/src/tools/rustfmt/tests/source/issue-3639.rs similarity index 100% rename from tests/source/issue-3639.rs rename to src/tools/rustfmt/tests/source/issue-3639.rs diff --git a/tests/source/issue-3651.rs b/src/tools/rustfmt/tests/source/issue-3651.rs similarity index 100% rename from tests/source/issue-3651.rs rename to src/tools/rustfmt/tests/source/issue-3651.rs diff --git a/tests/source/issue-3665/lib.rs b/src/tools/rustfmt/tests/source/issue-3665/lib.rs similarity index 100% rename from tests/source/issue-3665/lib.rs rename to src/tools/rustfmt/tests/source/issue-3665/lib.rs diff --git a/tests/source/issue-3665/not_skip_attribute.rs b/src/tools/rustfmt/tests/source/issue-3665/not_skip_attribute.rs similarity index 100% rename from tests/source/issue-3665/not_skip_attribute.rs rename to src/tools/rustfmt/tests/source/issue-3665/not_skip_attribute.rs diff --git a/tests/source/issue-3665/sub_mod.rs b/src/tools/rustfmt/tests/source/issue-3665/sub_mod.rs similarity index 100% rename from tests/source/issue-3665/sub_mod.rs rename to src/tools/rustfmt/tests/source/issue-3665/sub_mod.rs diff --git a/tests/source/issue-3672.rs b/src/tools/rustfmt/tests/source/issue-3672.rs similarity index 100% rename from tests/source/issue-3672.rs rename to src/tools/rustfmt/tests/source/issue-3672.rs diff --git a/tests/source/issue-3675.rs b/src/tools/rustfmt/tests/source/issue-3675.rs similarity index 100% rename from tests/source/issue-3675.rs rename to src/tools/rustfmt/tests/source/issue-3675.rs diff --git a/tests/source/issue-3701/one.rs b/src/tools/rustfmt/tests/source/issue-3701/one.rs similarity index 100% rename from tests/source/issue-3701/one.rs rename to src/tools/rustfmt/tests/source/issue-3701/one.rs diff --git a/tests/source/issue-3701/two.rs b/src/tools/rustfmt/tests/source/issue-3701/two.rs similarity index 100% rename from tests/source/issue-3701/two.rs rename to src/tools/rustfmt/tests/source/issue-3701/two.rs diff --git a/tests/source/issue-3709.rs b/src/tools/rustfmt/tests/source/issue-3709.rs similarity index 100% rename from tests/source/issue-3709.rs rename to src/tools/rustfmt/tests/source/issue-3709.rs diff --git a/tests/source/issue-3740.rs b/src/tools/rustfmt/tests/source/issue-3740.rs similarity index 100% rename from tests/source/issue-3740.rs rename to src/tools/rustfmt/tests/source/issue-3740.rs diff --git a/tests/source/issue-3750.rs b/src/tools/rustfmt/tests/source/issue-3750.rs similarity index 100% rename from tests/source/issue-3750.rs rename to src/tools/rustfmt/tests/source/issue-3750.rs diff --git a/tests/source/issue-3751.rs b/src/tools/rustfmt/tests/source/issue-3751.rs similarity index 100% rename from tests/source/issue-3751.rs rename to src/tools/rustfmt/tests/source/issue-3751.rs diff --git a/tests/source/issue-3779/ice.rs b/src/tools/rustfmt/tests/source/issue-3779/ice.rs similarity index 100% rename from tests/source/issue-3779/ice.rs rename to src/tools/rustfmt/tests/source/issue-3779/ice.rs diff --git a/tests/source/issue-3779/lib.rs b/src/tools/rustfmt/tests/source/issue-3779/lib.rs similarity index 100% rename from tests/source/issue-3779/lib.rs rename to src/tools/rustfmt/tests/source/issue-3779/lib.rs diff --git a/tests/source/issue-3786.rs b/src/tools/rustfmt/tests/source/issue-3786.rs similarity index 100% rename from tests/source/issue-3786.rs rename to src/tools/rustfmt/tests/source/issue-3786.rs diff --git a/tests/source/issue-3787.rs b/src/tools/rustfmt/tests/source/issue-3787.rs similarity index 100% rename from tests/source/issue-3787.rs rename to src/tools/rustfmt/tests/source/issue-3787.rs diff --git a/tests/source/issue-3805.rs b/src/tools/rustfmt/tests/source/issue-3805.rs similarity index 100% rename from tests/source/issue-3805.rs rename to src/tools/rustfmt/tests/source/issue-3805.rs diff --git a/tests/source/issue-3840/version-one_hard-tabs.rs b/src/tools/rustfmt/tests/source/issue-3840/version-one_hard-tabs.rs similarity index 100% rename from tests/source/issue-3840/version-one_hard-tabs.rs rename to src/tools/rustfmt/tests/source/issue-3840/version-one_hard-tabs.rs diff --git a/tests/source/issue-3840/version-one_soft-tabs.rs b/src/tools/rustfmt/tests/source/issue-3840/version-one_soft-tabs.rs similarity index 100% rename from tests/source/issue-3840/version-one_soft-tabs.rs rename to src/tools/rustfmt/tests/source/issue-3840/version-one_soft-tabs.rs diff --git a/tests/source/issue-3840/version-two_hard-tabs.rs b/src/tools/rustfmt/tests/source/issue-3840/version-two_hard-tabs.rs similarity index 100% rename from tests/source/issue-3840/version-two_hard-tabs.rs rename to src/tools/rustfmt/tests/source/issue-3840/version-two_hard-tabs.rs diff --git a/tests/source/issue-3840/version-two_soft-tabs.rs b/src/tools/rustfmt/tests/source/issue-3840/version-two_soft-tabs.rs similarity index 100% rename from tests/source/issue-3840/version-two_soft-tabs.rs rename to src/tools/rustfmt/tests/source/issue-3840/version-two_soft-tabs.rs diff --git a/tests/source/issue-3984.rs b/src/tools/rustfmt/tests/source/issue-3984.rs similarity index 100% rename from tests/source/issue-3984.rs rename to src/tools/rustfmt/tests/source/issue-3984.rs diff --git a/tests/source/issue-3987/format_macro_bodies_true.rs b/src/tools/rustfmt/tests/source/issue-3987/format_macro_bodies_true.rs similarity index 100% rename from tests/source/issue-3987/format_macro_bodies_true.rs rename to src/tools/rustfmt/tests/source/issue-3987/format_macro_bodies_true.rs diff --git a/tests/source/issue-4018.rs b/src/tools/rustfmt/tests/source/issue-4018.rs similarity index 100% rename from tests/source/issue-4018.rs rename to src/tools/rustfmt/tests/source/issue-4018.rs diff --git a/tests/source/issue-4036/one.rs b/src/tools/rustfmt/tests/source/issue-4036/one.rs similarity index 100% rename from tests/source/issue-4036/one.rs rename to src/tools/rustfmt/tests/source/issue-4036/one.rs diff --git a/tests/source/issue-4036/three.rs b/src/tools/rustfmt/tests/source/issue-4036/three.rs similarity index 100% rename from tests/source/issue-4036/three.rs rename to src/tools/rustfmt/tests/source/issue-4036/three.rs diff --git a/tests/source/issue-4036/two.rs b/src/tools/rustfmt/tests/source/issue-4036/two.rs similarity index 100% rename from tests/source/issue-4036/two.rs rename to src/tools/rustfmt/tests/source/issue-4036/two.rs diff --git a/tests/source/issue-4041.rs b/src/tools/rustfmt/tests/source/issue-4041.rs similarity index 100% rename from tests/source/issue-4041.rs rename to src/tools/rustfmt/tests/source/issue-4041.rs diff --git a/tests/source/issue-4079.rs b/src/tools/rustfmt/tests/source/issue-4079.rs similarity index 100% rename from tests/source/issue-4079.rs rename to src/tools/rustfmt/tests/source/issue-4079.rs diff --git a/tests/source/issue-4120.rs b/src/tools/rustfmt/tests/source/issue-4120.rs similarity index 100% rename from tests/source/issue-4120.rs rename to src/tools/rustfmt/tests/source/issue-4120.rs diff --git a/tests/source/issue-4243.rs b/src/tools/rustfmt/tests/source/issue-4243.rs similarity index 100% rename from tests/source/issue-4243.rs rename to src/tools/rustfmt/tests/source/issue-4243.rs diff --git a/tests/source/issue-4244.rs b/src/tools/rustfmt/tests/source/issue-4244.rs similarity index 100% rename from tests/source/issue-4244.rs rename to src/tools/rustfmt/tests/source/issue-4244.rs diff --git a/tests/source/issue-4245.rs b/src/tools/rustfmt/tests/source/issue-4245.rs similarity index 100% rename from tests/source/issue-4245.rs rename to src/tools/rustfmt/tests/source/issue-4245.rs diff --git a/tests/source/issue-4312.rs b/src/tools/rustfmt/tests/source/issue-4312.rs similarity index 100% rename from tests/source/issue-4312.rs rename to src/tools/rustfmt/tests/source/issue-4312.rs diff --git a/tests/source/issue-4381/style_edition_2015.rs b/src/tools/rustfmt/tests/source/issue-4381/style_edition_2015.rs similarity index 100% rename from tests/source/issue-4381/style_edition_2015.rs rename to src/tools/rustfmt/tests/source/issue-4381/style_edition_2015.rs diff --git a/tests/source/issue-4382.rs b/src/tools/rustfmt/tests/source/issue-4382.rs similarity index 100% rename from tests/source/issue-4382.rs rename to src/tools/rustfmt/tests/source/issue-4382.rs diff --git a/tests/source/issue-4398.rs b/src/tools/rustfmt/tests/source/issue-4398.rs similarity index 100% rename from tests/source/issue-4398.rs rename to src/tools/rustfmt/tests/source/issue-4398.rs diff --git a/tests/source/issue-4427.rs b/src/tools/rustfmt/tests/source/issue-4427.rs similarity index 100% rename from tests/source/issue-4427.rs rename to src/tools/rustfmt/tests/source/issue-4427.rs diff --git a/tests/source/issue-447.rs b/src/tools/rustfmt/tests/source/issue-447.rs similarity index 100% rename from tests/source/issue-447.rs rename to src/tools/rustfmt/tests/source/issue-447.rs diff --git a/tests/source/issue-4530.rs b/src/tools/rustfmt/tests/source/issue-4530.rs similarity index 100% rename from tests/source/issue-4530.rs rename to src/tools/rustfmt/tests/source/issue-4530.rs diff --git a/tests/source/issue-4577.rs b/src/tools/rustfmt/tests/source/issue-4577.rs similarity index 100% rename from tests/source/issue-4577.rs rename to src/tools/rustfmt/tests/source/issue-4577.rs diff --git a/tests/source/issue-4603.rs b/src/tools/rustfmt/tests/source/issue-4603.rs similarity index 100% rename from tests/source/issue-4603.rs rename to src/tools/rustfmt/tests/source/issue-4603.rs diff --git a/tests/source/issue-4615/minimum_example.rs b/src/tools/rustfmt/tests/source/issue-4615/minimum_example.rs similarity index 100% rename from tests/source/issue-4615/minimum_example.rs rename to src/tools/rustfmt/tests/source/issue-4615/minimum_example.rs diff --git a/tests/source/issue-4643.rs b/src/tools/rustfmt/tests/source/issue-4643.rs similarity index 100% rename from tests/source/issue-4643.rs rename to src/tools/rustfmt/tests/source/issue-4643.rs diff --git a/tests/source/issue-4646.rs b/src/tools/rustfmt/tests/source/issue-4646.rs similarity index 100% rename from tests/source/issue-4646.rs rename to src/tools/rustfmt/tests/source/issue-4646.rs diff --git a/tests/source/issue-4656/format_me_please.rs b/src/tools/rustfmt/tests/source/issue-4656/format_me_please.rs similarity index 100% rename from tests/source/issue-4656/format_me_please.rs rename to src/tools/rustfmt/tests/source/issue-4656/format_me_please.rs diff --git a/tests/source/issue-4656/lib.rs b/src/tools/rustfmt/tests/source/issue-4656/lib.rs similarity index 100% rename from tests/source/issue-4656/lib.rs rename to src/tools/rustfmt/tests/source/issue-4656/lib.rs diff --git a/tests/source/issue-4656/lib2.rs b/src/tools/rustfmt/tests/source/issue-4656/lib2.rs similarity index 100% rename from tests/source/issue-4656/lib2.rs rename to src/tools/rustfmt/tests/source/issue-4656/lib2.rs diff --git a/tests/source/issue-4689/one.rs b/src/tools/rustfmt/tests/source/issue-4689/one.rs similarity index 100% rename from tests/source/issue-4689/one.rs rename to src/tools/rustfmt/tests/source/issue-4689/one.rs diff --git a/tests/source/issue-4689/two.rs b/src/tools/rustfmt/tests/source/issue-4689/two.rs similarity index 100% rename from tests/source/issue-4689/two.rs rename to src/tools/rustfmt/tests/source/issue-4689/two.rs diff --git a/tests/source/issue-4791/buggy.rs b/src/tools/rustfmt/tests/source/issue-4791/buggy.rs similarity index 100% rename from tests/source/issue-4791/buggy.rs rename to src/tools/rustfmt/tests/source/issue-4791/buggy.rs diff --git a/tests/source/issue-4791/trailing_comma.rs b/src/tools/rustfmt/tests/source/issue-4791/trailing_comma.rs similarity index 100% rename from tests/source/issue-4791/trailing_comma.rs rename to src/tools/rustfmt/tests/source/issue-4791/trailing_comma.rs diff --git a/tests/source/issue-4808.rs b/src/tools/rustfmt/tests/source/issue-4808.rs similarity index 100% rename from tests/source/issue-4808.rs rename to src/tools/rustfmt/tests/source/issue-4808.rs diff --git a/tests/source/issue-4816/lib.rs b/src/tools/rustfmt/tests/source/issue-4816/lib.rs similarity index 100% rename from tests/source/issue-4816/lib.rs rename to src/tools/rustfmt/tests/source/issue-4816/lib.rs diff --git a/tests/source/issue-4926/deeply_nested_struct.rs b/src/tools/rustfmt/tests/source/issue-4926/deeply_nested_struct.rs similarity index 100% rename from tests/source/issue-4926/deeply_nested_struct.rs rename to src/tools/rustfmt/tests/source/issue-4926/deeply_nested_struct.rs diff --git a/tests/source/issue-4926/deeply_nested_struct_with_long_field_names.rs b/src/tools/rustfmt/tests/source/issue-4926/deeply_nested_struct_with_long_field_names.rs similarity index 100% rename from tests/source/issue-4926/deeply_nested_struct_with_long_field_names.rs rename to src/tools/rustfmt/tests/source/issue-4926/deeply_nested_struct_with_long_field_names.rs diff --git a/tests/source/issue-4926/deeply_nested_struct_with_many_fields.rs b/src/tools/rustfmt/tests/source/issue-4926/deeply_nested_struct_with_many_fields.rs similarity index 100% rename from tests/source/issue-4926/deeply_nested_struct_with_many_fields.rs rename to src/tools/rustfmt/tests/source/issue-4926/deeply_nested_struct_with_many_fields.rs diff --git a/tests/source/issue-4926/enum_struct_field.rs b/src/tools/rustfmt/tests/source/issue-4926/enum_struct_field.rs similarity index 100% rename from tests/source/issue-4926/enum_struct_field.rs rename to src/tools/rustfmt/tests/source/issue-4926/enum_struct_field.rs diff --git a/tests/source/issue-4926/minimum_example.rs b/src/tools/rustfmt/tests/source/issue-4926/minimum_example.rs similarity index 100% rename from tests/source/issue-4926/minimum_example.rs rename to src/tools/rustfmt/tests/source/issue-4926/minimum_example.rs diff --git a/tests/source/issue-4926/struct_with_long_field_names.rs b/src/tools/rustfmt/tests/source/issue-4926/struct_with_long_field_names.rs similarity index 100% rename from tests/source/issue-4926/struct_with_long_field_names.rs rename to src/tools/rustfmt/tests/source/issue-4926/struct_with_long_field_names.rs diff --git a/tests/source/issue-4926/struct_with_many_fields.rs b/src/tools/rustfmt/tests/source/issue-4926/struct_with_many_fields.rs similarity index 100% rename from tests/source/issue-4926/struct_with_many_fields.rs rename to src/tools/rustfmt/tests/source/issue-4926/struct_with_many_fields.rs diff --git a/tests/source/issue-4984/minimum_example.rs b/src/tools/rustfmt/tests/source/issue-4984/minimum_example.rs similarity index 100% rename from tests/source/issue-4984/minimum_example.rs rename to src/tools/rustfmt/tests/source/issue-4984/minimum_example.rs diff --git a/tests/source/issue-4984/multi_line_derive.rs b/src/tools/rustfmt/tests/source/issue-4984/multi_line_derive.rs similarity index 100% rename from tests/source/issue-4984/multi_line_derive.rs rename to src/tools/rustfmt/tests/source/issue-4984/multi_line_derive.rs diff --git a/tests/source/issue-4984/multiple_comments_within.rs b/src/tools/rustfmt/tests/source/issue-4984/multiple_comments_within.rs similarity index 100% rename from tests/source/issue-4984/multiple_comments_within.rs rename to src/tools/rustfmt/tests/source/issue-4984/multiple_comments_within.rs diff --git a/tests/source/issue-5011.rs b/src/tools/rustfmt/tests/source/issue-5011.rs similarity index 100% rename from tests/source/issue-5011.rs rename to src/tools/rustfmt/tests/source/issue-5011.rs diff --git a/tests/source/issue-5023.rs b/src/tools/rustfmt/tests/source/issue-5023.rs similarity index 100% rename from tests/source/issue-5023.rs rename to src/tools/rustfmt/tests/source/issue-5023.rs diff --git a/tests/source/issue-5030.rs b/src/tools/rustfmt/tests/source/issue-5030.rs similarity index 100% rename from tests/source/issue-5030.rs rename to src/tools/rustfmt/tests/source/issue-5030.rs diff --git a/tests/source/issue-5042/multi-line_comment_with_trailing_comma.rs b/src/tools/rustfmt/tests/source/issue-5042/multi-line_comment_with_trailing_comma.rs similarity index 100% rename from tests/source/issue-5042/multi-line_comment_with_trailing_comma.rs rename to src/tools/rustfmt/tests/source/issue-5042/multi-line_comment_with_trailing_comma.rs diff --git a/tests/source/issue-5042/multi-line_comment_without_trailing_comma.rs b/src/tools/rustfmt/tests/source/issue-5042/multi-line_comment_without_trailing_comma.rs similarity index 100% rename from tests/source/issue-5042/multi-line_comment_without_trailing_comma.rs rename to src/tools/rustfmt/tests/source/issue-5042/multi-line_comment_without_trailing_comma.rs diff --git a/tests/source/issue-5042/single-line_comment_with_trailing_comma.rs b/src/tools/rustfmt/tests/source/issue-5042/single-line_comment_with_trailing_comma.rs similarity index 100% rename from tests/source/issue-5042/single-line_comment_with_trailing_comma.rs rename to src/tools/rustfmt/tests/source/issue-5042/single-line_comment_with_trailing_comma.rs diff --git a/tests/source/issue-5042/single-line_comment_without_trailing_comma.rs b/src/tools/rustfmt/tests/source/issue-5042/single-line_comment_without_trailing_comma.rs similarity index 100% rename from tests/source/issue-5042/single-line_comment_without_trailing_comma.rs rename to src/tools/rustfmt/tests/source/issue-5042/single-line_comment_without_trailing_comma.rs diff --git a/tests/source/issue-5088/deeply_nested_long_comment_wrap_comments_true.rs b/src/tools/rustfmt/tests/source/issue-5088/deeply_nested_long_comment_wrap_comments_true.rs similarity index 100% rename from tests/source/issue-5088/deeply_nested_long_comment_wrap_comments_true.rs rename to src/tools/rustfmt/tests/source/issue-5088/deeply_nested_long_comment_wrap_comments_true.rs diff --git a/tests/source/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_true.rs b/src/tools/rustfmt/tests/source/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_true.rs similarity index 100% rename from tests/source/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_true.rs rename to src/tools/rustfmt/tests/source/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_true.rs diff --git a/tests/source/issue-5088/very_long_comment_wrap_comments_true.rs b/src/tools/rustfmt/tests/source/issue-5088/very_long_comment_wrap_comments_true.rs similarity index 100% rename from tests/source/issue-5088/very_long_comment_wrap_comments_true.rs rename to src/tools/rustfmt/tests/source/issue-5088/very_long_comment_wrap_comments_true.rs diff --git a/tests/source/issue-510.rs b/src/tools/rustfmt/tests/source/issue-510.rs similarity index 100% rename from tests/source/issue-510.rs rename to src/tools/rustfmt/tests/source/issue-510.rs diff --git a/tests/source/issue-5136-1.rs b/src/tools/rustfmt/tests/source/issue-5136-1.rs similarity index 100% rename from tests/source/issue-5136-1.rs rename to src/tools/rustfmt/tests/source/issue-5136-1.rs diff --git a/tests/source/issue-5136-2.rs b/src/tools/rustfmt/tests/source/issue-5136-2.rs similarity index 100% rename from tests/source/issue-5136-2.rs rename to src/tools/rustfmt/tests/source/issue-5136-2.rs diff --git a/tests/source/issue-5136-3.rs b/src/tools/rustfmt/tests/source/issue-5136-3.rs similarity index 100% rename from tests/source/issue-5136-3.rs rename to src/tools/rustfmt/tests/source/issue-5136-3.rs diff --git a/tests/source/issue-5136-4.rs b/src/tools/rustfmt/tests/source/issue-5136-4.rs similarity index 100% rename from tests/source/issue-5136-4.rs rename to src/tools/rustfmt/tests/source/issue-5136-4.rs diff --git a/tests/source/issue-5136-5.rs b/src/tools/rustfmt/tests/source/issue-5136-5.rs similarity index 100% rename from tests/source/issue-5136-5.rs rename to src/tools/rustfmt/tests/source/issue-5136-5.rs diff --git a/tests/source/issue-5157/indented_itemized_markdown_blockquote.rs b/src/tools/rustfmt/tests/source/issue-5157/indented_itemized_markdown_blockquote.rs similarity index 100% rename from tests/source/issue-5157/indented_itemized_markdown_blockquote.rs rename to src/tools/rustfmt/tests/source/issue-5157/indented_itemized_markdown_blockquote.rs diff --git a/tests/source/issue-5157/nested_itemized_markdown_blockquote.rs b/src/tools/rustfmt/tests/source/issue-5157/nested_itemized_markdown_blockquote.rs similarity index 100% rename from tests/source/issue-5157/nested_itemized_markdown_blockquote.rs rename to src/tools/rustfmt/tests/source/issue-5157/nested_itemized_markdown_blockquote.rs diff --git a/tests/source/issue-5157/support_itemized_markdown_blockquote.rs b/src/tools/rustfmt/tests/source/issue-5157/support_itemized_markdown_blockquote.rs similarity index 100% rename from tests/source/issue-5157/support_itemized_markdown_blockquote.rs rename to src/tools/rustfmt/tests/source/issue-5157/support_itemized_markdown_blockquote.rs diff --git a/tests/source/issue-5234.rs b/src/tools/rustfmt/tests/source/issue-5234.rs similarity index 100% rename from tests/source/issue-5234.rs rename to src/tools/rustfmt/tests/source/issue-5234.rs diff --git a/tests/source/issue-5238/markdown_header_wrap_comments_false.rs b/src/tools/rustfmt/tests/source/issue-5238/markdown_header_wrap_comments_false.rs similarity index 100% rename from tests/source/issue-5238/markdown_header_wrap_comments_false.rs rename to src/tools/rustfmt/tests/source/issue-5238/markdown_header_wrap_comments_false.rs diff --git a/tests/source/issue-5238/markdown_header_wrap_comments_true.rs b/src/tools/rustfmt/tests/source/issue-5238/markdown_header_wrap_comments_true.rs similarity index 100% rename from tests/source/issue-5238/markdown_header_wrap_comments_true.rs rename to src/tools/rustfmt/tests/source/issue-5238/markdown_header_wrap_comments_true.rs diff --git a/tests/source/issue-5260.rs b/src/tools/rustfmt/tests/source/issue-5260.rs similarity index 100% rename from tests/source/issue-5260.rs rename to src/tools/rustfmt/tests/source/issue-5260.rs diff --git a/tests/source/issue-5270/merge_derives_true.rs b/src/tools/rustfmt/tests/source/issue-5270/merge_derives_true.rs similarity index 100% rename from tests/source/issue-5270/merge_derives_true.rs rename to src/tools/rustfmt/tests/source/issue-5270/merge_derives_true.rs diff --git a/tests/source/issue-539.rs b/src/tools/rustfmt/tests/source/issue-539.rs similarity index 100% rename from tests/source/issue-539.rs rename to src/tools/rustfmt/tests/source/issue-539.rs diff --git a/tests/source/issue-5488.rs b/src/tools/rustfmt/tests/source/issue-5488.rs similarity index 100% rename from tests/source/issue-5488.rs rename to src/tools/rustfmt/tests/source/issue-5488.rs diff --git a/tests/source/issue-5586.rs b/src/tools/rustfmt/tests/source/issue-5586.rs similarity index 100% rename from tests/source/issue-5586.rs rename to src/tools/rustfmt/tests/source/issue-5586.rs diff --git a/tests/source/issue-5655/one.rs b/src/tools/rustfmt/tests/source/issue-5655/one.rs similarity index 100% rename from tests/source/issue-5655/one.rs rename to src/tools/rustfmt/tests/source/issue-5655/one.rs diff --git a/tests/source/issue-5655/two.rs b/src/tools/rustfmt/tests/source/issue-5655/two.rs similarity index 100% rename from tests/source/issue-5655/two.rs rename to src/tools/rustfmt/tests/source/issue-5655/two.rs diff --git a/tests/source/issue-5791.rs b/src/tools/rustfmt/tests/source/issue-5791.rs similarity index 100% rename from tests/source/issue-5791.rs rename to src/tools/rustfmt/tests/source/issue-5791.rs diff --git a/tests/source/issue-5801/attribute_unexpectedly_wraps_before_max_width.rs b/src/tools/rustfmt/tests/source/issue-5801/attribute_unexpectedly_wraps_before_max_width.rs similarity index 100% rename from tests/source/issue-5801/attribute_unexpectedly_wraps_before_max_width.rs rename to src/tools/rustfmt/tests/source/issue-5801/attribute_unexpectedly_wraps_before_max_width.rs diff --git a/tests/source/issue-5801/comment_unexpectedly_wraps_before_max_width.rs b/src/tools/rustfmt/tests/source/issue-5801/comment_unexpectedly_wraps_before_max_width.rs similarity index 100% rename from tests/source/issue-5801/comment_unexpectedly_wraps_before_max_width.rs rename to src/tools/rustfmt/tests/source/issue-5801/comment_unexpectedly_wraps_before_max_width.rs diff --git a/tests/source/issue-5835.rs b/src/tools/rustfmt/tests/source/issue-5835.rs similarity index 100% rename from tests/source/issue-5835.rs rename to src/tools/rustfmt/tests/source/issue-5835.rs diff --git a/tests/source/issue-5852/default.rs b/src/tools/rustfmt/tests/source/issue-5852/default.rs similarity index 100% rename from tests/source/issue-5852/default.rs rename to src/tools/rustfmt/tests/source/issue-5852/default.rs diff --git a/tests/source/issue-5852/horizontal.rs b/src/tools/rustfmt/tests/source/issue-5852/horizontal.rs similarity index 100% rename from tests/source/issue-5852/horizontal.rs rename to src/tools/rustfmt/tests/source/issue-5852/horizontal.rs diff --git a/tests/source/issue-5852/horizontal_vertical.rs b/src/tools/rustfmt/tests/source/issue-5852/horizontal_vertical.rs similarity index 100% rename from tests/source/issue-5852/horizontal_vertical.rs rename to src/tools/rustfmt/tests/source/issue-5852/horizontal_vertical.rs diff --git a/tests/source/issue-5852/issue_example.rs b/src/tools/rustfmt/tests/source/issue-5852/issue_example.rs similarity index 100% rename from tests/source/issue-5852/issue_example.rs rename to src/tools/rustfmt/tests/source/issue-5852/issue_example.rs diff --git a/tests/source/issue-5852/split.rs b/src/tools/rustfmt/tests/source/issue-5852/split.rs similarity index 100% rename from tests/source/issue-5852/split.rs rename to src/tools/rustfmt/tests/source/issue-5852/split.rs diff --git a/tests/source/issue-5852/vertical.rs b/src/tools/rustfmt/tests/source/issue-5852/vertical.rs similarity index 100% rename from tests/source/issue-5852/vertical.rs rename to src/tools/rustfmt/tests/source/issue-5852/vertical.rs diff --git a/tests/source/issue-5935.rs b/src/tools/rustfmt/tests/source/issue-5935.rs similarity index 100% rename from tests/source/issue-5935.rs rename to src/tools/rustfmt/tests/source/issue-5935.rs diff --git a/tests/source/issue-5987/two.rs b/src/tools/rustfmt/tests/source/issue-5987/two.rs similarity index 100% rename from tests/source/issue-5987/two.rs rename to src/tools/rustfmt/tests/source/issue-5987/two.rs diff --git a/tests/source/issue-6059/repro.rs b/src/tools/rustfmt/tests/source/issue-6059/repro.rs similarity index 100% rename from tests/source/issue-6059/repro.rs rename to src/tools/rustfmt/tests/source/issue-6059/repro.rs diff --git a/tests/source/issue-6147/case_rustfmt_v1.rs b/src/tools/rustfmt/tests/source/issue-6147/case_rustfmt_v1.rs similarity index 100% rename from tests/source/issue-6147/case_rustfmt_v1.rs rename to src/tools/rustfmt/tests/source/issue-6147/case_rustfmt_v1.rs diff --git a/tests/source/issue-6147/case_rustfmt_v2.rs b/src/tools/rustfmt/tests/source/issue-6147/case_rustfmt_v2.rs similarity index 100% rename from tests/source/issue-6147/case_rustfmt_v2.rs rename to src/tools/rustfmt/tests/source/issue-6147/case_rustfmt_v2.rs diff --git a/tests/source/issue-6202/long_pat.rs b/src/tools/rustfmt/tests/source/issue-6202/long_pat.rs similarity index 100% rename from tests/source/issue-6202/long_pat.rs rename to src/tools/rustfmt/tests/source/issue-6202/long_pat.rs diff --git a/tests/source/issue-6243.rs b/src/tools/rustfmt/tests/source/issue-6243.rs similarity index 100% rename from tests/source/issue-6243.rs rename to src/tools/rustfmt/tests/source/issue-6243.rs diff --git a/tests/source/issue-6333.rs b/src/tools/rustfmt/tests/source/issue-6333.rs similarity index 100% rename from tests/source/issue-6333.rs rename to src/tools/rustfmt/tests/source/issue-6333.rs diff --git a/tests/source/issue-6561/trait-fn.rs b/src/tools/rustfmt/tests/source/issue-6561/trait-fn.rs similarity index 100% rename from tests/source/issue-6561/trait-fn.rs rename to src/tools/rustfmt/tests/source/issue-6561/trait-fn.rs diff --git a/tests/source/issue-6561/variadic.rs b/src/tools/rustfmt/tests/source/issue-6561/variadic.rs similarity index 100% rename from tests/source/issue-6561/variadic.rs rename to src/tools/rustfmt/tests/source/issue-6561/variadic.rs diff --git a/tests/source/issue-6607/fn-type.rs b/src/tools/rustfmt/tests/source/issue-6607/fn-type.rs similarity index 100% rename from tests/source/issue-6607/fn-type.rs rename to src/tools/rustfmt/tests/source/issue-6607/fn-type.rs diff --git a/tests/source/issue-6651/custom_width.rs b/src/tools/rustfmt/tests/source/issue-6651/custom_width.rs similarity index 100% rename from tests/source/issue-6651/custom_width.rs rename to src/tools/rustfmt/tests/source/issue-6651/custom_width.rs diff --git a/tests/source/issue-6651/default.rs b/src/tools/rustfmt/tests/source/issue-6651/default.rs similarity index 100% rename from tests/source/issue-6651/default.rs rename to src/tools/rustfmt/tests/source/issue-6651/default.rs diff --git a/tests/source/issue-6788.rs b/src/tools/rustfmt/tests/source/issue-6788.rs similarity index 100% rename from tests/source/issue-6788.rs rename to src/tools/rustfmt/tests/source/issue-6788.rs diff --git a/tests/source/issue-6795.rs b/src/tools/rustfmt/tests/source/issue-6795.rs similarity index 100% rename from tests/source/issue-6795.rs rename to src/tools/rustfmt/tests/source/issue-6795.rs diff --git a/tests/source/issue-6825.rs b/src/tools/rustfmt/tests/source/issue-6825.rs similarity index 100% rename from tests/source/issue-6825.rs rename to src/tools/rustfmt/tests/source/issue-6825.rs diff --git a/tests/source/issue-683.rs b/src/tools/rustfmt/tests/source/issue-683.rs similarity index 100% rename from tests/source/issue-683.rs rename to src/tools/rustfmt/tests/source/issue-683.rs diff --git a/tests/source/issue-6863/empty-stmt.rs b/src/tools/rustfmt/tests/source/issue-6863/empty-stmt.rs similarity index 100% rename from tests/source/issue-6863/empty-stmt.rs rename to src/tools/rustfmt/tests/source/issue-6863/empty-stmt.rs diff --git a/tests/source/issue-6863/fn-stmts.rs b/src/tools/rustfmt/tests/source/issue-6863/fn-stmts.rs similarity index 100% rename from tests/source/issue-6863/fn-stmts.rs rename to src/tools/rustfmt/tests/source/issue-6863/fn-stmts.rs diff --git a/tests/source/issue-6985.rs b/src/tools/rustfmt/tests/source/issue-6985.rs similarity index 100% rename from tests/source/issue-6985.rs rename to src/tools/rustfmt/tests/source/issue-6985.rs diff --git a/tests/source/issue-7011.rs b/src/tools/rustfmt/tests/source/issue-7011.rs similarity index 100% rename from tests/source/issue-7011.rs rename to src/tools/rustfmt/tests/source/issue-7011.rs diff --git a/tests/source/issue-7054.rs b/src/tools/rustfmt/tests/source/issue-7054.rs similarity index 100% rename from tests/source/issue-7054.rs rename to src/tools/rustfmt/tests/source/issue-7054.rs diff --git a/tests/source/issue-7056.rs b/src/tools/rustfmt/tests/source/issue-7056.rs similarity index 100% rename from tests/source/issue-7056.rs rename to src/tools/rustfmt/tests/source/issue-7056.rs diff --git a/tests/source/issue-811.rs b/src/tools/rustfmt/tests/source/issue-811.rs similarity index 100% rename from tests/source/issue-811.rs rename to src/tools/rustfmt/tests/source/issue-811.rs diff --git a/tests/source/issue-850.rs b/src/tools/rustfmt/tests/source/issue-850.rs similarity index 100% rename from tests/source/issue-850.rs rename to src/tools/rustfmt/tests/source/issue-850.rs diff --git a/tests/source/issue-855.rs b/src/tools/rustfmt/tests/source/issue-855.rs similarity index 100% rename from tests/source/issue-855.rs rename to src/tools/rustfmt/tests/source/issue-855.rs diff --git a/tests/source/issue-913.rs b/src/tools/rustfmt/tests/source/issue-913.rs similarity index 100% rename from tests/source/issue-913.rs rename to src/tools/rustfmt/tests/source/issue-913.rs diff --git a/tests/source/issue-945.rs b/src/tools/rustfmt/tests/source/issue-945.rs similarity index 100% rename from tests/source/issue-945.rs rename to src/tools/rustfmt/tests/source/issue-945.rs diff --git a/tests/source/issue-977.rs b/src/tools/rustfmt/tests/source/issue-977.rs similarity index 100% rename from tests/source/issue-977.rs rename to src/tools/rustfmt/tests/source/issue-977.rs diff --git a/tests/source/issue_1306.rs b/src/tools/rustfmt/tests/source/issue_1306.rs similarity index 100% rename from tests/source/issue_1306.rs rename to src/tools/rustfmt/tests/source/issue_1306.rs diff --git a/tests/source/issue_3245.rs b/src/tools/rustfmt/tests/source/issue_3245.rs similarity index 100% rename from tests/source/issue_3245.rs rename to src/tools/rustfmt/tests/source/issue_3245.rs diff --git a/tests/source/issue_3561.rs b/src/tools/rustfmt/tests/source/issue_3561.rs similarity index 100% rename from tests/source/issue_3561.rs rename to src/tools/rustfmt/tests/source/issue_3561.rs diff --git a/tests/source/issue_3839.rs b/src/tools/rustfmt/tests/source/issue_3839.rs similarity index 100% rename from tests/source/issue_3839.rs rename to src/tools/rustfmt/tests/source/issue_3839.rs diff --git a/tests/source/issue_3844.rs b/src/tools/rustfmt/tests/source/issue_3844.rs similarity index 100% rename from tests/source/issue_3844.rs rename to src/tools/rustfmt/tests/source/issue_3844.rs diff --git a/tests/source/issue_3853.rs b/src/tools/rustfmt/tests/source/issue_3853.rs similarity index 100% rename from tests/source/issue_3853.rs rename to src/tools/rustfmt/tests/source/issue_3853.rs diff --git a/tests/source/issue_3868.rs b/src/tools/rustfmt/tests/source/issue_3868.rs similarity index 100% rename from tests/source/issue_3868.rs rename to src/tools/rustfmt/tests/source/issue_3868.rs diff --git a/tests/source/issue_4032.rs b/src/tools/rustfmt/tests/source/issue_4032.rs similarity index 100% rename from tests/source/issue_4032.rs rename to src/tools/rustfmt/tests/source/issue_4032.rs diff --git a/tests/source/issue_4037.rs b/src/tools/rustfmt/tests/source/issue_4037.rs similarity index 100% rename from tests/source/issue_4037.rs rename to src/tools/rustfmt/tests/source/issue_4037.rs diff --git a/tests/source/issue_4057.rs b/src/tools/rustfmt/tests/source/issue_4057.rs similarity index 100% rename from tests/source/issue_4057.rs rename to src/tools/rustfmt/tests/source/issue_4057.rs diff --git a/tests/source/issue_4086.rs b/src/tools/rustfmt/tests/source/issue_4086.rs similarity index 100% rename from tests/source/issue_4086.rs rename to src/tools/rustfmt/tests/source/issue_4086.rs diff --git a/tests/source/issue_4257.rs b/src/tools/rustfmt/tests/source/issue_4257.rs similarity index 100% rename from tests/source/issue_4257.rs rename to src/tools/rustfmt/tests/source/issue_4257.rs diff --git a/tests/source/issue_4322.rs b/src/tools/rustfmt/tests/source/issue_4322.rs similarity index 100% rename from tests/source/issue_4322.rs rename to src/tools/rustfmt/tests/source/issue_4322.rs diff --git a/tests/source/issue_4374.rs b/src/tools/rustfmt/tests/source/issue_4374.rs similarity index 100% rename from tests/source/issue_4374.rs rename to src/tools/rustfmt/tests/source/issue_4374.rs diff --git a/tests/source/issue_4475.rs b/src/tools/rustfmt/tests/source/issue_4475.rs similarity index 100% rename from tests/source/issue_4475.rs rename to src/tools/rustfmt/tests/source/issue_4475.rs diff --git a/tests/source/issue_4528.rs b/src/tools/rustfmt/tests/source/issue_4528.rs similarity index 100% rename from tests/source/issue_4528.rs rename to src/tools/rustfmt/tests/source/issue_4528.rs diff --git a/tests/source/issue_4579.rs b/src/tools/rustfmt/tests/source/issue_4579.rs similarity index 100% rename from tests/source/issue_4579.rs rename to src/tools/rustfmt/tests/source/issue_4579.rs diff --git a/tests/source/issue_4584.rs b/src/tools/rustfmt/tests/source/issue_4584.rs similarity index 100% rename from tests/source/issue_4584.rs rename to src/tools/rustfmt/tests/source/issue_4584.rs diff --git a/tests/source/issue_4636.rs b/src/tools/rustfmt/tests/source/issue_4636.rs similarity index 100% rename from tests/source/issue_4636.rs rename to src/tools/rustfmt/tests/source/issue_4636.rs diff --git a/tests/source/issue_4675.rs b/src/tools/rustfmt/tests/source/issue_4675.rs similarity index 100% rename from tests/source/issue_4675.rs rename to src/tools/rustfmt/tests/source/issue_4675.rs diff --git a/tests/source/issue_4823.rs b/src/tools/rustfmt/tests/source/issue_4823.rs similarity index 100% rename from tests/source/issue_4823.rs rename to src/tools/rustfmt/tests/source/issue_4823.rs diff --git a/tests/source/issue_4854.rs b/src/tools/rustfmt/tests/source/issue_4854.rs similarity index 100% rename from tests/source/issue_4854.rs rename to src/tools/rustfmt/tests/source/issue_4854.rs diff --git a/tests/source/issue_4911.rs b/src/tools/rustfmt/tests/source/issue_4911.rs similarity index 100% rename from tests/source/issue_4911.rs rename to src/tools/rustfmt/tests/source/issue_4911.rs diff --git a/tests/source/issue_4943.rs b/src/tools/rustfmt/tests/source/issue_4943.rs similarity index 100% rename from tests/source/issue_4943.rs rename to src/tools/rustfmt/tests/source/issue_4943.rs diff --git a/tests/source/issue_4954.rs b/src/tools/rustfmt/tests/source/issue_4954.rs similarity index 100% rename from tests/source/issue_4954.rs rename to src/tools/rustfmt/tests/source/issue_4954.rs diff --git a/tests/source/issue_4963.rs b/src/tools/rustfmt/tests/source/issue_4963.rs similarity index 100% rename from tests/source/issue_4963.rs rename to src/tools/rustfmt/tests/source/issue_4963.rs diff --git a/tests/source/issue_5027.rs b/src/tools/rustfmt/tests/source/issue_5027.rs similarity index 100% rename from tests/source/issue_5027.rs rename to src/tools/rustfmt/tests/source/issue_5027.rs diff --git a/tests/source/issue_5086.rs b/src/tools/rustfmt/tests/source/issue_5086.rs similarity index 100% rename from tests/source/issue_5086.rs rename to src/tools/rustfmt/tests/source/issue_5086.rs diff --git a/tests/source/issue_5686.rs b/src/tools/rustfmt/tests/source/issue_5686.rs similarity index 100% rename from tests/source/issue_5686.rs rename to src/tools/rustfmt/tests/source/issue_5686.rs diff --git a/tests/source/issue_5721.rs b/src/tools/rustfmt/tests/source/issue_5721.rs similarity index 100% rename from tests/source/issue_5721.rs rename to src/tools/rustfmt/tests/source/issue_5721.rs diff --git a/tests/source/issue_5730.rs b/src/tools/rustfmt/tests/source/issue_5730.rs similarity index 100% rename from tests/source/issue_5730.rs rename to src/tools/rustfmt/tests/source/issue_5730.rs diff --git a/tests/source/issue_5735.rs b/src/tools/rustfmt/tests/source/issue_5735.rs similarity index 100% rename from tests/source/issue_5735.rs rename to src/tools/rustfmt/tests/source/issue_5735.rs diff --git a/tests/source/issue_5739.rs b/src/tools/rustfmt/tests/source/issue_5739.rs similarity index 100% rename from tests/source/issue_5739.rs rename to src/tools/rustfmt/tests/source/issue_5739.rs diff --git a/tests/source/issue_5882.rs b/src/tools/rustfmt/tests/source/issue_5882.rs similarity index 100% rename from tests/source/issue_5882.rs rename to src/tools/rustfmt/tests/source/issue_5882.rs diff --git a/tests/source/issue_5912.rs b/src/tools/rustfmt/tests/source/issue_5912.rs similarity index 100% rename from tests/source/issue_5912.rs rename to src/tools/rustfmt/tests/source/issue_5912.rs diff --git a/tests/source/issue_5920_style_edition_2024.rs b/src/tools/rustfmt/tests/source/issue_5920_style_edition_2024.rs similarity index 100% rename from tests/source/issue_5920_style_edition_2024.rs rename to src/tools/rustfmt/tests/source/issue_5920_style_edition_2024.rs diff --git a/tests/source/issue_5920_style_edition_2027.rs b/src/tools/rustfmt/tests/source/issue_5920_style_edition_2027.rs similarity index 100% rename from tests/source/issue_5920_style_edition_2027.rs rename to src/tools/rustfmt/tests/source/issue_5920_style_edition_2027.rs diff --git a/tests/source/issue_5982_style_edition_2024.rs b/src/tools/rustfmt/tests/source/issue_5982_style_edition_2024.rs similarity index 100% rename from tests/source/issue_5982_style_edition_2024.rs rename to src/tools/rustfmt/tests/source/issue_5982_style_edition_2024.rs diff --git a/tests/source/issue_5982_style_edition_2027.rs b/src/tools/rustfmt/tests/source/issue_5982_style_edition_2027.rs similarity index 100% rename from tests/source/issue_5982_style_edition_2027.rs rename to src/tools/rustfmt/tests/source/issue_5982_style_edition_2027.rs diff --git a/tests/source/issue_6209.rs b/src/tools/rustfmt/tests/source/issue_6209.rs similarity index 100% rename from tests/source/issue_6209.rs rename to src/tools/rustfmt/tests/source/issue_6209.rs diff --git a/tests/source/issue_6381_style_edition_2027.rs b/src/tools/rustfmt/tests/source/issue_6381_style_edition_2027.rs similarity index 100% rename from tests/source/issue_6381_style_edition_2027.rs rename to src/tools/rustfmt/tests/source/issue_6381_style_edition_2027.rs diff --git a/tests/source/issue_6558.rs b/src/tools/rustfmt/tests/source/issue_6558.rs similarity index 100% rename from tests/source/issue_6558.rs rename to src/tools/rustfmt/tests/source/issue_6558.rs diff --git a/tests/source/issue_6801.rs b/src/tools/rustfmt/tests/source/issue_6801.rs similarity index 100% rename from tests/source/issue_6801.rs rename to src/tools/rustfmt/tests/source/issue_6801.rs diff --git a/tests/source/issue_6831_style_edition_2021.rs b/src/tools/rustfmt/tests/source/issue_6831_style_edition_2021.rs similarity index 100% rename from tests/source/issue_6831_style_edition_2021.rs rename to src/tools/rustfmt/tests/source/issue_6831_style_edition_2021.rs diff --git a/tests/source/issue_6831_style_edition_2024.rs b/src/tools/rustfmt/tests/source/issue_6831_style_edition_2024.rs similarity index 100% rename from tests/source/issue_6831_style_edition_2024.rs rename to src/tools/rustfmt/tests/source/issue_6831_style_edition_2024.rs diff --git a/tests/source/issue_6831_style_edition_2027.rs b/src/tools/rustfmt/tests/source/issue_6831_style_edition_2027.rs similarity index 100% rename from tests/source/issue_6831_style_edition_2027.rs rename to src/tools/rustfmt/tests/source/issue_6831_style_edition_2027.rs diff --git a/tests/source/issue_7003_style_edition_2024.rs b/src/tools/rustfmt/tests/source/issue_7003_style_edition_2024.rs similarity index 100% rename from tests/source/issue_7003_style_edition_2024.rs rename to src/tools/rustfmt/tests/source/issue_7003_style_edition_2024.rs diff --git a/tests/source/issue_7003_style_edition_2027.rs b/src/tools/rustfmt/tests/source/issue_7003_style_edition_2027.rs similarity index 100% rename from tests/source/issue_7003_style_edition_2027.rs rename to src/tools/rustfmt/tests/source/issue_7003_style_edition_2027.rs diff --git a/tests/source/issue_7036.rs b/src/tools/rustfmt/tests/source/issue_7036.rs similarity index 100% rename from tests/source/issue_7036.rs rename to src/tools/rustfmt/tests/source/issue_7036.rs diff --git a/tests/source/issue_7055_style_edition_2024.rs b/src/tools/rustfmt/tests/source/issue_7055_style_edition_2024.rs similarity index 100% rename from tests/source/issue_7055_style_edition_2024.rs rename to src/tools/rustfmt/tests/source/issue_7055_style_edition_2024.rs diff --git a/tests/source/issue_7055_style_edition_2027.rs b/src/tools/rustfmt/tests/source/issue_7055_style_edition_2027.rs similarity index 100% rename from tests/source/issue_7055_style_edition_2027.rs rename to src/tools/rustfmt/tests/source/issue_7055_style_edition_2027.rs diff --git a/tests/source/issue_7088_stable.rs b/src/tools/rustfmt/tests/source/issue_7088_stable.rs similarity index 100% rename from tests/source/issue_7088_stable.rs rename to src/tools/rustfmt/tests/source/issue_7088_stable.rs diff --git a/tests/source/issue_7088_unstable.rs b/src/tools/rustfmt/tests/source/issue_7088_unstable.rs similarity index 100% rename from tests/source/issue_7088_unstable.rs rename to src/tools/rustfmt/tests/source/issue_7088_unstable.rs diff --git a/tests/source/item-brace-style-always-next-line.rs b/src/tools/rustfmt/tests/source/item-brace-style-always-next-line.rs similarity index 100% rename from tests/source/item-brace-style-always-next-line.rs rename to src/tools/rustfmt/tests/source/item-brace-style-always-next-line.rs diff --git a/tests/source/item-brace-style-prefer-same-line.rs b/src/tools/rustfmt/tests/source/item-brace-style-prefer-same-line.rs similarity index 100% rename from tests/source/item-brace-style-prefer-same-line.rs rename to src/tools/rustfmt/tests/source/item-brace-style-prefer-same-line.rs diff --git a/tests/source/item-brace-style-same-line-where.rs b/src/tools/rustfmt/tests/source/item-brace-style-same-line-where.rs similarity index 100% rename from tests/source/item-brace-style-same-line-where.rs rename to src/tools/rustfmt/tests/source/item-brace-style-same-line-where.rs diff --git a/tests/source/itemized-blocks/no_wrap.rs b/src/tools/rustfmt/tests/source/itemized-blocks/no_wrap.rs similarity index 100% rename from tests/source/itemized-blocks/no_wrap.rs rename to src/tools/rustfmt/tests/source/itemized-blocks/no_wrap.rs diff --git a/tests/source/itemized-blocks/rewrite_fail.rs b/src/tools/rustfmt/tests/source/itemized-blocks/rewrite_fail.rs similarity index 100% rename from tests/source/itemized-blocks/rewrite_fail.rs rename to src/tools/rustfmt/tests/source/itemized-blocks/rewrite_fail.rs diff --git a/tests/source/itemized-blocks/urls.rs b/src/tools/rustfmt/tests/source/itemized-blocks/urls.rs similarity index 100% rename from tests/source/itemized-blocks/urls.rs rename to src/tools/rustfmt/tests/source/itemized-blocks/urls.rs diff --git a/tests/source/itemized-blocks/wrap.rs b/src/tools/rustfmt/tests/source/itemized-blocks/wrap.rs similarity index 100% rename from tests/source/itemized-blocks/wrap.rs rename to src/tools/rustfmt/tests/source/itemized-blocks/wrap.rs diff --git a/tests/source/label_break.rs b/src/tools/rustfmt/tests/source/label_break.rs similarity index 100% rename from tests/source/label_break.rs rename to src/tools/rustfmt/tests/source/label_break.rs diff --git a/tests/source/large-block.rs b/src/tools/rustfmt/tests/source/large-block.rs similarity index 100% rename from tests/source/large-block.rs rename to src/tools/rustfmt/tests/source/large-block.rs diff --git a/tests/source/large_vec.rs b/src/tools/rustfmt/tests/source/large_vec.rs similarity index 100% rename from tests/source/large_vec.rs rename to src/tools/rustfmt/tests/source/large_vec.rs diff --git a/tests/source/lazy_staic_before_2027.rs b/src/tools/rustfmt/tests/source/lazy_staic_before_2027.rs similarity index 100% rename from tests/source/lazy_staic_before_2027.rs rename to src/tools/rustfmt/tests/source/lazy_staic_before_2027.rs diff --git a/tests/source/lazy_static.rs b/src/tools/rustfmt/tests/source/lazy_static.rs similarity index 100% rename from tests/source/lazy_static.rs rename to src/tools/rustfmt/tests/source/lazy_static.rs diff --git a/tests/source/let_chains.rs b/src/tools/rustfmt/tests/source/let_chains.rs similarity index 100% rename from tests/source/let_chains.rs rename to src/tools/rustfmt/tests/source/let_chains.rs diff --git a/tests/source/let_else.rs b/src/tools/rustfmt/tests/source/let_else.rs similarity index 100% rename from tests/source/let_else.rs rename to src/tools/rustfmt/tests/source/let_else.rs diff --git a/tests/source/let_else_v2.rs b/src/tools/rustfmt/tests/source/let_else_v2.rs similarity index 100% rename from tests/source/let_else_v2.rs rename to src/tools/rustfmt/tests/source/let_else_v2.rs diff --git a/tests/source/long-fn-1/version_one.rs b/src/tools/rustfmt/tests/source/long-fn-1/version_one.rs similarity index 100% rename from tests/source/long-fn-1/version_one.rs rename to src/tools/rustfmt/tests/source/long-fn-1/version_one.rs diff --git a/tests/source/long-fn-1/version_two.rs b/src/tools/rustfmt/tests/source/long-fn-1/version_two.rs similarity index 100% rename from tests/source/long-fn-1/version_two.rs rename to src/tools/rustfmt/tests/source/long-fn-1/version_two.rs diff --git a/tests/source/long-match-arms-brace-newline.rs b/src/tools/rustfmt/tests/source/long-match-arms-brace-newline.rs similarity index 100% rename from tests/source/long-match-arms-brace-newline.rs rename to src/tools/rustfmt/tests/source/long-match-arms-brace-newline.rs diff --git a/tests/source/long-use-statement-issue-3154.rs b/src/tools/rustfmt/tests/source/long-use-statement-issue-3154.rs similarity index 100% rename from tests/source/long-use-statement-issue-3154.rs rename to src/tools/rustfmt/tests/source/long-use-statement-issue-3154.rs diff --git a/tests/source/long_field_access.rs b/src/tools/rustfmt/tests/source/long_field_access.rs similarity index 100% rename from tests/source/long_field_access.rs rename to src/tools/rustfmt/tests/source/long_field_access.rs diff --git a/tests/source/loop.rs b/src/tools/rustfmt/tests/source/loop.rs similarity index 100% rename from tests/source/loop.rs rename to src/tools/rustfmt/tests/source/loop.rs diff --git a/tests/source/macro_not_expr.rs b/src/tools/rustfmt/tests/source/macro_not_expr.rs similarity index 100% rename from tests/source/macro_not_expr.rs rename to src/tools/rustfmt/tests/source/macro_not_expr.rs diff --git a/tests/source/macro_rules.rs b/src/tools/rustfmt/tests/source/macro_rules.rs similarity index 100% rename from tests/source/macro_rules.rs rename to src/tools/rustfmt/tests/source/macro_rules.rs diff --git a/tests/source/macros.rs b/src/tools/rustfmt/tests/source/macros.rs similarity index 100% rename from tests/source/macros.rs rename to src/tools/rustfmt/tests/source/macros.rs diff --git a/tests/source/macros/rewrite-const-item.rs b/src/tools/rustfmt/tests/source/macros/rewrite-const-item.rs similarity index 100% rename from tests/source/macros/rewrite-const-item.rs rename to src/tools/rustfmt/tests/source/macros/rewrite-const-item.rs diff --git a/tests/source/markdown-comment-with-options.rs b/src/tools/rustfmt/tests/source/markdown-comment-with-options.rs similarity index 100% rename from tests/source/markdown-comment-with-options.rs rename to src/tools/rustfmt/tests/source/markdown-comment-with-options.rs diff --git a/tests/source/markdown-comment.rs b/src/tools/rustfmt/tests/source/markdown-comment.rs similarity index 100% rename from tests/source/markdown-comment.rs rename to src/tools/rustfmt/tests/source/markdown-comment.rs diff --git a/tests/source/match-block-trailing-comma.rs b/src/tools/rustfmt/tests/source/match-block-trailing-comma.rs similarity index 100% rename from tests/source/match-block-trailing-comma.rs rename to src/tools/rustfmt/tests/source/match-block-trailing-comma.rs diff --git a/tests/source/match-flattening.rs b/src/tools/rustfmt/tests/source/match-flattening.rs similarity index 100% rename from tests/source/match-flattening.rs rename to src/tools/rustfmt/tests/source/match-flattening.rs diff --git a/tests/source/match-nowrap-trailing-comma.rs b/src/tools/rustfmt/tests/source/match-nowrap-trailing-comma.rs similarity index 100% rename from tests/source/match-nowrap-trailing-comma.rs rename to src/tools/rustfmt/tests/source/match-nowrap-trailing-comma.rs diff --git a/tests/source/match-nowrap.rs b/src/tools/rustfmt/tests/source/match-nowrap.rs similarity index 100% rename from tests/source/match-nowrap.rs rename to src/tools/rustfmt/tests/source/match-nowrap.rs diff --git a/tests/source/match.rs b/src/tools/rustfmt/tests/source/match.rs similarity index 100% rename from tests/source/match.rs rename to src/tools/rustfmt/tests/source/match.rs diff --git a/tests/source/match_overflow_expr.rs b/src/tools/rustfmt/tests/source/match_overflow_expr.rs similarity index 100% rename from tests/source/match_overflow_expr.rs rename to src/tools/rustfmt/tests/source/match_overflow_expr.rs diff --git a/tests/source/max-line-length-in-chars.rs b/src/tools/rustfmt/tests/source/max-line-length-in-chars.rs similarity index 100% rename from tests/source/max-line-length-in-chars.rs rename to src/tools/rustfmt/tests/source/max-line-length-in-chars.rs diff --git a/tests/source/merge_imports_true_compat.rs b/src/tools/rustfmt/tests/source/merge_imports_true_compat.rs similarity index 100% rename from tests/source/merge_imports_true_compat.rs rename to src/tools/rustfmt/tests/source/merge_imports_true_compat.rs diff --git a/tests/source/mod-1.rs b/src/tools/rustfmt/tests/source/mod-1.rs similarity index 100% rename from tests/source/mod-1.rs rename to src/tools/rustfmt/tests/source/mod-1.rs diff --git a/tests/source/mod-2.rs b/src/tools/rustfmt/tests/source/mod-2.rs similarity index 100% rename from tests/source/mod-2.rs rename to src/tools/rustfmt/tests/source/mod-2.rs diff --git a/tests/source/mod_skip_child.rs b/src/tools/rustfmt/tests/source/mod_skip_child.rs similarity index 100% rename from tests/source/mod_skip_child.rs rename to src/tools/rustfmt/tests/source/mod_skip_child.rs diff --git a/tests/source/multiple.rs b/src/tools/rustfmt/tests/source/multiple.rs similarity index 100% rename from tests/source/multiple.rs rename to src/tools/rustfmt/tests/source/multiple.rs diff --git a/tests/source/mut-restriction.rs b/src/tools/rustfmt/tests/source/mut-restriction.rs similarity index 100% rename from tests/source/mut-restriction.rs rename to src/tools/rustfmt/tests/source/mut-restriction.rs diff --git a/tests/source/mut_ref.rs b/src/tools/rustfmt/tests/source/mut_ref.rs similarity index 100% rename from tests/source/mut_ref.rs rename to src/tools/rustfmt/tests/source/mut_ref.rs diff --git a/tests/source/negative-impl.rs b/src/tools/rustfmt/tests/source/negative-impl.rs similarity index 100% rename from tests/source/negative-impl.rs rename to src/tools/rustfmt/tests/source/negative-impl.rs diff --git a/tests/source/nested-if-else.rs b/src/tools/rustfmt/tests/source/nested-if-else.rs similarity index 100% rename from tests/source/nested-if-else.rs rename to src/tools/rustfmt/tests/source/nested-if-else.rs diff --git a/tests/source/nested_skipped/mod.rs b/src/tools/rustfmt/tests/source/nested_skipped/mod.rs similarity index 100% rename from tests/source/nested_skipped/mod.rs rename to src/tools/rustfmt/tests/source/nested_skipped/mod.rs diff --git a/tests/source/nestedmod/mod.rs b/src/tools/rustfmt/tests/source/nestedmod/mod.rs similarity index 100% rename from tests/source/nestedmod/mod.rs rename to src/tools/rustfmt/tests/source/nestedmod/mod.rs diff --git a/tests/source/nestedmod/mod2a.rs b/src/tools/rustfmt/tests/source/nestedmod/mod2a.rs similarity index 100% rename from tests/source/nestedmod/mod2a.rs rename to src/tools/rustfmt/tests/source/nestedmod/mod2a.rs diff --git a/tests/source/nestedmod/mod2b.rs b/src/tools/rustfmt/tests/source/nestedmod/mod2b.rs similarity index 100% rename from tests/source/nestedmod/mod2b.rs rename to src/tools/rustfmt/tests/source/nestedmod/mod2b.rs diff --git a/tests/source/nestedmod/mod2c.rs b/src/tools/rustfmt/tests/source/nestedmod/mod2c.rs similarity index 100% rename from tests/source/nestedmod/mod2c.rs rename to src/tools/rustfmt/tests/source/nestedmod/mod2c.rs diff --git a/tests/source/nestedmod/mymod1/mod3a.rs b/src/tools/rustfmt/tests/source/nestedmod/mymod1/mod3a.rs similarity index 100% rename from tests/source/nestedmod/mymod1/mod3a.rs rename to src/tools/rustfmt/tests/source/nestedmod/mymod1/mod3a.rs diff --git a/tests/source/nestedmod/submod2/a.rs b/src/tools/rustfmt/tests/source/nestedmod/submod2/a.rs similarity index 100% rename from tests/source/nestedmod/submod2/a.rs rename to src/tools/rustfmt/tests/source/nestedmod/submod2/a.rs diff --git a/tests/source/nestedmod/submod2/mod.rs b/src/tools/rustfmt/tests/source/nestedmod/submod2/mod.rs similarity index 100% rename from tests/source/nestedmod/submod2/mod.rs rename to src/tools/rustfmt/tests/source/nestedmod/submod2/mod.rs diff --git a/tests/source/no_arg_with_comment.rs b/src/tools/rustfmt/tests/source/no_arg_with_comment.rs similarity index 100% rename from tests/source/no_arg_with_comment.rs rename to src/tools/rustfmt/tests/source/no_arg_with_comment.rs diff --git a/tests/source/no_new_line_beginning.rs b/src/tools/rustfmt/tests/source/no_new_line_beginning.rs similarity index 100% rename from tests/source/no_new_line_beginning.rs rename to src/tools/rustfmt/tests/source/no_new_line_beginning.rs diff --git a/tests/source/non-lifetime-binders.rs b/src/tools/rustfmt/tests/source/non-lifetime-binders.rs similarity index 100% rename from tests/source/non-lifetime-binders.rs rename to src/tools/rustfmt/tests/source/non-lifetime-binders.rs diff --git a/tests/source/non_ascii_numerics_import_asciibetically.rs b/src/tools/rustfmt/tests/source/non_ascii_numerics_import_asciibetically.rs similarity index 100% rename from tests/source/non_ascii_numerics_import_asciibetically.rs rename to src/tools/rustfmt/tests/source/non_ascii_numerics_import_asciibetically.rs diff --git a/tests/source/non_ascii_numerics_import_versionsort.rs b/src/tools/rustfmt/tests/source/non_ascii_numerics_import_versionsort.rs similarity index 100% rename from tests/source/non_ascii_numerics_import_versionsort.rs rename to src/tools/rustfmt/tests/source/non_ascii_numerics_import_versionsort.rs diff --git a/tests/source/normalize_doc_attributes_should_not_imply_format_doc_comments.rs b/src/tools/rustfmt/tests/source/normalize_doc_attributes_should_not_imply_format_doc_comments.rs similarity index 100% rename from tests/source/normalize_doc_attributes_should_not_imply_format_doc_comments.rs rename to src/tools/rustfmt/tests/source/normalize_doc_attributes_should_not_imply_format_doc_comments.rs diff --git a/tests/source/normalize_multiline_doc_attribute.rs b/src/tools/rustfmt/tests/source/normalize_multiline_doc_attribute.rs similarity index 100% rename from tests/source/normalize_multiline_doc_attribute.rs rename to src/tools/rustfmt/tests/source/normalize_multiline_doc_attribute.rs diff --git a/tests/source/one_line_if_v1.rs b/src/tools/rustfmt/tests/source/one_line_if_v1.rs similarity index 100% rename from tests/source/one_line_if_v1.rs rename to src/tools/rustfmt/tests/source/one_line_if_v1.rs diff --git a/tests/source/one_line_if_v2.rs b/src/tools/rustfmt/tests/source/one_line_if_v2.rs similarity index 100% rename from tests/source/one_line_if_v2.rs rename to src/tools/rustfmt/tests/source/one_line_if_v2.rs diff --git a/tests/source/other.rs b/src/tools/rustfmt/tests/source/other.rs similarity index 100% rename from tests/source/other.rs rename to src/tools/rustfmt/tests/source/other.rs diff --git a/tests/source/paren.rs b/src/tools/rustfmt/tests/source/paren.rs similarity index 100% rename from tests/source/paren.rs rename to src/tools/rustfmt/tests/source/paren.rs diff --git a/tests/source/path_clarity/foo.rs b/src/tools/rustfmt/tests/source/path_clarity/foo.rs similarity index 100% rename from tests/source/path_clarity/foo.rs rename to src/tools/rustfmt/tests/source/path_clarity/foo.rs diff --git a/tests/source/path_clarity/foo/bar.rs b/src/tools/rustfmt/tests/source/path_clarity/foo/bar.rs similarity index 100% rename from tests/source/path_clarity/foo/bar.rs rename to src/tools/rustfmt/tests/source/path_clarity/foo/bar.rs diff --git a/tests/source/paths.rs b/src/tools/rustfmt/tests/source/paths.rs similarity index 100% rename from tests/source/paths.rs rename to src/tools/rustfmt/tests/source/paths.rs diff --git a/tests/source/pattern-condense-wildcards.rs b/src/tools/rustfmt/tests/source/pattern-condense-wildcards.rs similarity index 100% rename from tests/source/pattern-condense-wildcards.rs rename to src/tools/rustfmt/tests/source/pattern-condense-wildcards.rs diff --git a/tests/source/pattern.rs b/src/tools/rustfmt/tests/source/pattern.rs similarity index 100% rename from tests/source/pattern.rs rename to src/tools/rustfmt/tests/source/pattern.rs diff --git a/tests/source/pin_sugar.rs b/src/tools/rustfmt/tests/source/pin_sugar.rs similarity index 100% rename from tests/source/pin_sugar.rs rename to src/tools/rustfmt/tests/source/pin_sugar.rs diff --git a/tests/source/postfix-match/pf-match.rs b/src/tools/rustfmt/tests/source/postfix-match/pf-match.rs similarity index 100% rename from tests/source/postfix-match/pf-match.rs rename to src/tools/rustfmt/tests/source/postfix-match/pf-match.rs diff --git a/tests/source/precise-capturing.rs b/src/tools/rustfmt/tests/source/precise-capturing.rs similarity index 100% rename from tests/source/precise-capturing.rs rename to src/tools/rustfmt/tests/source/precise-capturing.rs diff --git a/tests/source/preserves_carriage_return_for_unix.rs b/src/tools/rustfmt/tests/source/preserves_carriage_return_for_unix.rs similarity index 100% rename from tests/source/preserves_carriage_return_for_unix.rs rename to src/tools/rustfmt/tests/source/preserves_carriage_return_for_unix.rs diff --git a/tests/source/preserves_carriage_return_for_windows.rs b/src/tools/rustfmt/tests/source/preserves_carriage_return_for_windows.rs similarity index 100% rename from tests/source/preserves_carriage_return_for_windows.rs rename to src/tools/rustfmt/tests/source/preserves_carriage_return_for_windows.rs diff --git a/tests/source/pub-restricted.rs b/src/tools/rustfmt/tests/source/pub-restricted.rs similarity index 100% rename from tests/source/pub-restricted.rs rename to src/tools/rustfmt/tests/source/pub-restricted.rs diff --git a/tests/source/remove_blank_lines.rs b/src/tools/rustfmt/tests/source/remove_blank_lines.rs similarity index 100% rename from tests/source/remove_blank_lines.rs rename to src/tools/rustfmt/tests/source/remove_blank_lines.rs diff --git a/tests/source/reorder-impl-items.rs b/src/tools/rustfmt/tests/source/reorder-impl-items.rs similarity index 100% rename from tests/source/reorder-impl-items.rs rename to src/tools/rustfmt/tests/source/reorder-impl-items.rs diff --git a/tests/source/reorder_modules/A2/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/A2/mod.rs similarity index 100% rename from tests/source/reorder_modules/A2/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/A2/mod.rs diff --git a/tests/source/reorder_modules/ABCD/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/ABCD/mod.rs similarity index 100% rename from tests/source/reorder_modules/ABCD/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/ABCD/mod.rs diff --git a/tests/source/reorder_modules/ZYXW/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/ZYXW/mod.rs similarity index 100% rename from tests/source/reorder_modules/ZYXW/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/ZYXW/mod.rs diff --git a/tests/source/reorder_modules/ZYXW_/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/ZYXW_/mod.rs similarity index 100% rename from tests/source/reorder_modules/ZYXW_/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/ZYXW_/mod.rs diff --git a/tests/source/reorder_modules/ZY_XW/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/ZY_XW/mod.rs similarity index 100% rename from tests/source/reorder_modules/ZY_XW/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/ZY_XW/mod.rs diff --git a/tests/source/reorder_modules/Z_YXW/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/Z_YXW/mod.rs similarity index 100% rename from tests/source/reorder_modules/Z_YXW/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/Z_YXW/mod.rs diff --git a/tests/source/reorder_modules/_ZYXW/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/_ZYXW/mod.rs similarity index 100% rename from tests/source/reorder_modules/_ZYXW/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/_ZYXW/mod.rs diff --git a/tests/source/reorder_modules/_abcd/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/_abcd/mod.rs similarity index 100% rename from tests/source/reorder_modules/_abcd/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/_abcd/mod.rs diff --git a/tests/source/reorder_modules/a1/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/a1/mod.rs similarity index 100% rename from tests/source/reorder_modules/a1/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/a1/mod.rs diff --git a/tests/source/reorder_modules/abcde/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/abcde/mod.rs similarity index 100% rename from tests/source/reorder_modules/abcde/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/abcde/mod.rs diff --git a/tests/source/reorder_modules/disabled_style_edition_2024.rs b/src/tools/rustfmt/tests/source/reorder_modules/disabled_style_edition_2024.rs similarity index 100% rename from tests/source/reorder_modules/disabled_style_edition_2024.rs rename to src/tools/rustfmt/tests/source/reorder_modules/disabled_style_edition_2024.rs diff --git a/tests/source/reorder_modules/disabled_style_edition_2027.rs b/src/tools/rustfmt/tests/source/reorder_modules/disabled_style_edition_2027.rs similarity index 100% rename from tests/source/reorder_modules/disabled_style_edition_2027.rs rename to src/tools/rustfmt/tests/source/reorder_modules/disabled_style_edition_2027.rs diff --git a/tests/source/reorder_modules/enabled_style_edition_2015.rs b/src/tools/rustfmt/tests/source/reorder_modules/enabled_style_edition_2015.rs similarity index 100% rename from tests/source/reorder_modules/enabled_style_edition_2015.rs rename to src/tools/rustfmt/tests/source/reorder_modules/enabled_style_edition_2015.rs diff --git a/tests/source/reorder_modules/enabled_style_edition_2024.rs b/src/tools/rustfmt/tests/source/reorder_modules/enabled_style_edition_2024.rs similarity index 100% rename from tests/source/reorder_modules/enabled_style_edition_2024.rs rename to src/tools/rustfmt/tests/source/reorder_modules/enabled_style_edition_2024.rs diff --git a/tests/source/reorder_modules/enabled_style_edition_2027.rs b/src/tools/rustfmt/tests/source/reorder_modules/enabled_style_edition_2027.rs similarity index 100% rename from tests/source/reorder_modules/enabled_style_edition_2027.rs rename to src/tools/rustfmt/tests/source/reorder_modules/enabled_style_edition_2027.rs diff --git a/tests/source/reorder_modules/u128/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/u128/mod.rs similarity index 100% rename from tests/source/reorder_modules/u128/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/u128/mod.rs diff --git a/tests/source/reorder_modules/u16/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/u16/mod.rs similarity index 100% rename from tests/source/reorder_modules/u16/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/u16/mod.rs diff --git a/tests/source/reorder_modules/u256/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/u256/mod.rs similarity index 100% rename from tests/source/reorder_modules/u256/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/u256/mod.rs diff --git a/tests/source/reorder_modules/u32/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/u32/mod.rs similarity index 100% rename from tests/source/reorder_modules/u32/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/u32/mod.rs diff --git a/tests/source/reorder_modules/u64/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/u64/mod.rs similarity index 100% rename from tests/source/reorder_modules/u64/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/u64/mod.rs diff --git a/tests/source/reorder_modules/u8/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/u8/mod.rs similarity index 100% rename from tests/source/reorder_modules/u8/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/u8/mod.rs diff --git a/tests/source/reorder_modules/u_zzz/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/u_zzz/mod.rs similarity index 100% rename from tests/source/reorder_modules/u_zzz/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/u_zzz/mod.rs diff --git a/tests/source/reorder_modules/ua/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/ua/mod.rs similarity index 100% rename from tests/source/reorder_modules/ua/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/ua/mod.rs diff --git a/tests/source/reorder_modules/usize/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/usize/mod.rs similarity index 100% rename from tests/source/reorder_modules/usize/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/usize/mod.rs diff --git a/tests/source/reorder_modules/uz/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/uz/mod.rs similarity index 100% rename from tests/source/reorder_modules/uz/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/uz/mod.rs diff --git a/tests/source/reorder_modules/v0/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v0/mod.rs similarity index 100% rename from tests/source/reorder_modules/v0/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v0/mod.rs diff --git a/tests/source/reorder_modules/v00/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v00/mod.rs similarity index 100% rename from tests/source/reorder_modules/v00/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v00/mod.rs diff --git a/tests/source/reorder_modules/v000/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v000/mod.rs similarity index 100% rename from tests/source/reorder_modules/v000/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v000/mod.rs diff --git a/tests/source/reorder_modules/v001/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v001/mod.rs similarity index 100% rename from tests/source/reorder_modules/v001/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v001/mod.rs diff --git a/tests/source/reorder_modules/v009/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v009/mod.rs similarity index 100% rename from tests/source/reorder_modules/v009/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v009/mod.rs diff --git a/tests/source/reorder_modules/v00t/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v00t/mod.rs similarity index 100% rename from tests/source/reorder_modules/v00t/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v00t/mod.rs diff --git a/tests/source/reorder_modules/v01/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v01/mod.rs similarity index 100% rename from tests/source/reorder_modules/v01/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v01/mod.rs diff --git a/tests/source/reorder_modules/v010/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v010/mod.rs similarity index 100% rename from tests/source/reorder_modules/v010/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v010/mod.rs diff --git a/tests/source/reorder_modules/v09/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v09/mod.rs similarity index 100% rename from tests/source/reorder_modules/v09/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v09/mod.rs diff --git a/tests/source/reorder_modules/v0s/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v0s/mod.rs similarity index 100% rename from tests/source/reorder_modules/v0s/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v0s/mod.rs diff --git a/tests/source/reorder_modules/v0u/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v0u/mod.rs similarity index 100% rename from tests/source/reorder_modules/v0u/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v0u/mod.rs diff --git a/tests/source/reorder_modules/v1/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v1/mod.rs similarity index 100% rename from tests/source/reorder_modules/v1/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v1/mod.rs diff --git a/tests/source/reorder_modules/v10/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v10/mod.rs similarity index 100% rename from tests/source/reorder_modules/v10/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v10/mod.rs diff --git a/tests/source/reorder_modules/v9/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/v9/mod.rs similarity index 100% rename from tests/source/reorder_modules/v9/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/v9/mod.rs diff --git a/tests/source/reorder_modules/w005s09t/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/w005s09t/mod.rs similarity index 100% rename from tests/source/reorder_modules/w005s09t/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/w005s09t/mod.rs diff --git a/tests/source/reorder_modules/w5s009t/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/w5s009t/mod.rs similarity index 100% rename from tests/source/reorder_modules/w5s009t/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/w5s009t/mod.rs diff --git a/tests/source/reorder_modules/x64/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/x64/mod.rs similarity index 100% rename from tests/source/reorder_modules/x64/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/x64/mod.rs diff --git a/tests/source/reorder_modules/x86/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/x86/mod.rs similarity index 100% rename from tests/source/reorder_modules/x86/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/x86/mod.rs diff --git a/tests/source/reorder_modules/x86_128/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/x86_128/mod.rs similarity index 100% rename from tests/source/reorder_modules/x86_128/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/x86_128/mod.rs diff --git a/tests/source/reorder_modules/x86_32/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/x86_32/mod.rs similarity index 100% rename from tests/source/reorder_modules/x86_32/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/x86_32/mod.rs diff --git a/tests/source/reorder_modules/x86_64/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/x86_64/mod.rs similarity index 100% rename from tests/source/reorder_modules/x86_64/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/x86_64/mod.rs diff --git a/tests/source/reorder_modules/x87/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/x87/mod.rs similarity index 100% rename from tests/source/reorder_modules/x87/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/x87/mod.rs diff --git a/tests/source/reorder_modules/zyxwv/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules/zyxwv/mod.rs similarity index 100% rename from tests/source/reorder_modules/zyxwv/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules/zyxwv/mod.rs diff --git a/tests/source/reorder_modules_2027/abcde/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules_2027/abcde/mod.rs similarity index 100% rename from tests/source/reorder_modules_2027/abcde/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules_2027/abcde/mod.rs diff --git a/tests/source/reorder_modules_2027/zyxwv/mod.rs b/src/tools/rustfmt/tests/source/reorder_modules_2027/zyxwv/mod.rs similarity index 100% rename from tests/source/reorder_modules_2027/zyxwv/mod.rs rename to src/tools/rustfmt/tests/source/reorder_modules_2027/zyxwv/mod.rs diff --git a/tests/source/single-line-if-else.rs b/src/tools/rustfmt/tests/source/single-line-if-else.rs similarity index 100% rename from tests/source/single-line-if-else.rs rename to src/tools/rustfmt/tests/source/single-line-if-else.rs diff --git a/tests/source/single-line-macro/v1.rs b/src/tools/rustfmt/tests/source/single-line-macro/v1.rs similarity index 100% rename from tests/source/single-line-macro/v1.rs rename to src/tools/rustfmt/tests/source/single-line-macro/v1.rs diff --git a/tests/source/single-line-macro/v2.rs b/src/tools/rustfmt/tests/source/single-line-macro/v2.rs similarity index 100% rename from tests/source/single-line-macro/v2.rs rename to src/tools/rustfmt/tests/source/single-line-macro/v2.rs diff --git a/tests/source/skip_macro_invocations/all.rs b/src/tools/rustfmt/tests/source/skip_macro_invocations/all.rs similarity index 100% rename from tests/source/skip_macro_invocations/all.rs rename to src/tools/rustfmt/tests/source/skip_macro_invocations/all.rs diff --git a/tests/source/skip_macro_invocations/all_and_name.rs b/src/tools/rustfmt/tests/source/skip_macro_invocations/all_and_name.rs similarity index 100% rename from tests/source/skip_macro_invocations/all_and_name.rs rename to src/tools/rustfmt/tests/source/skip_macro_invocations/all_and_name.rs diff --git a/tests/source/skip_macro_invocations/config_file.rs b/src/tools/rustfmt/tests/source/skip_macro_invocations/config_file.rs similarity index 100% rename from tests/source/skip_macro_invocations/config_file.rs rename to src/tools/rustfmt/tests/source/skip_macro_invocations/config_file.rs diff --git a/tests/source/skip_macro_invocations/empty.rs b/src/tools/rustfmt/tests/source/skip_macro_invocations/empty.rs similarity index 100% rename from tests/source/skip_macro_invocations/empty.rs rename to src/tools/rustfmt/tests/source/skip_macro_invocations/empty.rs diff --git a/tests/source/skip_macro_invocations/name.rs b/src/tools/rustfmt/tests/source/skip_macro_invocations/name.rs similarity index 100% rename from tests/source/skip_macro_invocations/name.rs rename to src/tools/rustfmt/tests/source/skip_macro_invocations/name.rs diff --git a/tests/source/skip_macro_invocations/name_unknown.rs b/src/tools/rustfmt/tests/source/skip_macro_invocations/name_unknown.rs similarity index 100% rename from tests/source/skip_macro_invocations/name_unknown.rs rename to src/tools/rustfmt/tests/source/skip_macro_invocations/name_unknown.rs diff --git a/tests/source/skip_macro_invocations/names.rs b/src/tools/rustfmt/tests/source/skip_macro_invocations/names.rs similarity index 100% rename from tests/source/skip_macro_invocations/names.rs rename to src/tools/rustfmt/tests/source/skip_macro_invocations/names.rs diff --git a/tests/source/skip_macro_invocations/path_qualified_invocation_mismatch.rs b/src/tools/rustfmt/tests/source/skip_macro_invocations/path_qualified_invocation_mismatch.rs similarity index 100% rename from tests/source/skip_macro_invocations/path_qualified_invocation_mismatch.rs rename to src/tools/rustfmt/tests/source/skip_macro_invocations/path_qualified_invocation_mismatch.rs diff --git a/tests/source/skip_macro_invocations/path_qualified_match.rs b/src/tools/rustfmt/tests/source/skip_macro_invocations/path_qualified_match.rs similarity index 100% rename from tests/source/skip_macro_invocations/path_qualified_match.rs rename to src/tools/rustfmt/tests/source/skip_macro_invocations/path_qualified_match.rs diff --git a/tests/source/skip_macro_invocations/path_qualified_name_mismatch.rs b/src/tools/rustfmt/tests/source/skip_macro_invocations/path_qualified_name_mismatch.rs similarity index 100% rename from tests/source/skip_macro_invocations/path_qualified_name_mismatch.rs rename to src/tools/rustfmt/tests/source/skip_macro_invocations/path_qualified_name_mismatch.rs diff --git a/tests/source/skip_macro_invocations/use_alias_examples.rs b/src/tools/rustfmt/tests/source/skip_macro_invocations/use_alias_examples.rs similarity index 100% rename from tests/source/skip_macro_invocations/use_alias_examples.rs rename to src/tools/rustfmt/tests/source/skip_macro_invocations/use_alias_examples.rs diff --git a/tests/source/soft-wrapping.rs b/src/tools/rustfmt/tests/source/soft-wrapping.rs similarity index 100% rename from tests/source/soft-wrapping.rs rename to src/tools/rustfmt/tests/source/soft-wrapping.rs diff --git a/tests/source/space-not-before-newline.rs b/src/tools/rustfmt/tests/source/space-not-before-newline.rs similarity index 100% rename from tests/source/space-not-before-newline.rs rename to src/tools/rustfmt/tests/source/space-not-before-newline.rs diff --git a/tests/source/spaces-around-ranges.rs b/src/tools/rustfmt/tests/source/spaces-around-ranges.rs similarity index 100% rename from tests/source/spaces-around-ranges.rs rename to src/tools/rustfmt/tests/source/spaces-around-ranges.rs diff --git a/tests/source/statements.rs b/src/tools/rustfmt/tests/source/statements.rs similarity index 100% rename from tests/source/statements.rs rename to src/tools/rustfmt/tests/source/statements.rs diff --git a/tests/source/static.rs b/src/tools/rustfmt/tests/source/static.rs similarity index 100% rename from tests/source/static.rs rename to src/tools/rustfmt/tests/source/static.rs diff --git a/tests/source/string-lit-2.rs b/src/tools/rustfmt/tests/source/string-lit-2.rs similarity index 100% rename from tests/source/string-lit-2.rs rename to src/tools/rustfmt/tests/source/string-lit-2.rs diff --git a/tests/source/string-lit.rs b/src/tools/rustfmt/tests/source/string-lit.rs similarity index 100% rename from tests/source/string-lit.rs rename to src/tools/rustfmt/tests/source/string-lit.rs diff --git a/tests/source/string_lit_unicode_ws.rs b/src/tools/rustfmt/tests/source/string_lit_unicode_ws.rs similarity index 100% rename from tests/source/string_lit_unicode_ws.rs rename to src/tools/rustfmt/tests/source/string_lit_unicode_ws.rs diff --git a/tests/source/string_punctuation.rs b/src/tools/rustfmt/tests/source/string_punctuation.rs similarity index 100% rename from tests/source/string_punctuation.rs rename to src/tools/rustfmt/tests/source/string_punctuation.rs diff --git a/tests/source/struct-field-attributes.rs b/src/tools/rustfmt/tests/source/struct-field-attributes.rs similarity index 100% rename from tests/source/struct-field-attributes.rs rename to src/tools/rustfmt/tests/source/struct-field-attributes.rs diff --git a/tests/source/struct_field_doc_comment.rs b/src/tools/rustfmt/tests/source/struct_field_doc_comment.rs similarity index 100% rename from tests/source/struct_field_doc_comment.rs rename to src/tools/rustfmt/tests/source/struct_field_doc_comment.rs diff --git a/tests/source/struct_lits.rs b/src/tools/rustfmt/tests/source/struct_lits.rs similarity index 100% rename from tests/source/struct_lits.rs rename to src/tools/rustfmt/tests/source/struct_lits.rs diff --git a/tests/source/struct_lits_multiline.rs b/src/tools/rustfmt/tests/source/struct_lits_multiline.rs similarity index 100% rename from tests/source/struct_lits_multiline.rs rename to src/tools/rustfmt/tests/source/struct_lits_multiline.rs diff --git a/tests/source/struct_lits_visual.rs b/src/tools/rustfmt/tests/source/struct_lits_visual.rs similarity index 100% rename from tests/source/struct_lits_visual.rs rename to src/tools/rustfmt/tests/source/struct_lits_visual.rs diff --git a/tests/source/struct_lits_visual_multiline.rs b/src/tools/rustfmt/tests/source/struct_lits_visual_multiline.rs similarity index 100% rename from tests/source/struct_lits_visual_multiline.rs rename to src/tools/rustfmt/tests/source/struct_lits_visual_multiline.rs diff --git a/tests/source/struct_tuple_visual.rs b/src/tools/rustfmt/tests/source/struct_tuple_visual.rs similarity index 100% rename from tests/source/struct_tuple_visual.rs rename to src/tools/rustfmt/tests/source/struct_tuple_visual.rs diff --git a/tests/source/structs.rs b/src/tools/rustfmt/tests/source/structs.rs similarity index 100% rename from tests/source/structs.rs rename to src/tools/rustfmt/tests/source/structs.rs diff --git a/tests/source/super_let.rs b/src/tools/rustfmt/tests/source/super_let.rs similarity index 100% rename from tests/source/super_let.rs rename to src/tools/rustfmt/tests/source/super_let.rs diff --git a/tests/source/trailing-comma-never.rs b/src/tools/rustfmt/tests/source/trailing-comma-never.rs similarity index 100% rename from tests/source/trailing-comma-never.rs rename to src/tools/rustfmt/tests/source/trailing-comma-never.rs diff --git a/tests/source/trailing-semicolon/loop-bodies-edition-2021-style-edition-2027.rs b/src/tools/rustfmt/tests/source/trailing-semicolon/loop-bodies-edition-2021-style-edition-2027.rs similarity index 100% rename from tests/source/trailing-semicolon/loop-bodies-edition-2021-style-edition-2027.rs rename to src/tools/rustfmt/tests/source/trailing-semicolon/loop-bodies-edition-2021-style-edition-2027.rs diff --git a/tests/source/trailing-semicolon/loop-bodies-edition-2024-style-edition-2024.rs b/src/tools/rustfmt/tests/source/trailing-semicolon/loop-bodies-edition-2024-style-edition-2024.rs similarity index 100% rename from tests/source/trailing-semicolon/loop-bodies-edition-2024-style-edition-2024.rs rename to src/tools/rustfmt/tests/source/trailing-semicolon/loop-bodies-edition-2024-style-edition-2024.rs diff --git a/tests/source/trailing-semicolon/loop-bodies.rs b/src/tools/rustfmt/tests/source/trailing-semicolon/loop-bodies.rs similarity index 100% rename from tests/source/trailing-semicolon/loop-bodies.rs rename to src/tools/rustfmt/tests/source/trailing-semicolon/loop-bodies.rs diff --git a/tests/source/trailing_commas.rs b/src/tools/rustfmt/tests/source/trailing_commas.rs similarity index 100% rename from tests/source/trailing_commas.rs rename to src/tools/rustfmt/tests/source/trailing_commas.rs diff --git a/tests/source/trailing_comments/hard_tabs.rs b/src/tools/rustfmt/tests/source/trailing_comments/hard_tabs.rs similarity index 100% rename from tests/source/trailing_comments/hard_tabs.rs rename to src/tools/rustfmt/tests/source/trailing_comments/hard_tabs.rs diff --git a/tests/source/trailing_comments/soft_tabs.rs b/src/tools/rustfmt/tests/source/trailing_comments/soft_tabs.rs similarity index 100% rename from tests/source/trailing_comments/soft_tabs.rs rename to src/tools/rustfmt/tests/source/trailing_comments/soft_tabs.rs diff --git a/tests/source/trait.rs b/src/tools/rustfmt/tests/source/trait.rs similarity index 100% rename from tests/source/trait.rs rename to src/tools/rustfmt/tests/source/trait.rs diff --git a/tests/source/try-conversion.rs b/src/tools/rustfmt/tests/source/try-conversion.rs similarity index 100% rename from tests/source/try-conversion.rs rename to src/tools/rustfmt/tests/source/try-conversion.rs diff --git a/tests/source/try_block.rs b/src/tools/rustfmt/tests/source/try_block.rs similarity index 100% rename from tests/source/try_block.rs rename to src/tools/rustfmt/tests/source/try_block.rs diff --git a/tests/source/try_blocks_heterogeneous.rs b/src/tools/rustfmt/tests/source/try_blocks_heterogeneous.rs similarity index 100% rename from tests/source/try_blocks_heterogeneous.rs rename to src/tools/rustfmt/tests/source/try_blocks_heterogeneous.rs diff --git a/tests/source/tuple.rs b/src/tools/rustfmt/tests/source/tuple.rs similarity index 100% rename from tests/source/tuple.rs rename to src/tools/rustfmt/tests/source/tuple.rs diff --git a/tests/source/tuple_v2.rs b/src/tools/rustfmt/tests/source/tuple_v2.rs similarity index 100% rename from tests/source/tuple_v2.rs rename to src/tools/rustfmt/tests/source/tuple_v2.rs diff --git a/tests/source/type-alias-where-clauses-with-comments.rs b/src/tools/rustfmt/tests/source/type-alias-where-clauses-with-comments.rs similarity index 100% rename from tests/source/type-alias-where-clauses-with-comments.rs rename to src/tools/rustfmt/tests/source/type-alias-where-clauses-with-comments.rs diff --git a/tests/source/type-alias-where-clauses.rs b/src/tools/rustfmt/tests/source/type-alias-where-clauses.rs similarity index 100% rename from tests/source/type-alias-where-clauses.rs rename to src/tools/rustfmt/tests/source/type-alias-where-clauses.rs diff --git a/tests/source/type.rs b/src/tools/rustfmt/tests/source/type.rs similarity index 100% rename from tests/source/type.rs rename to src/tools/rustfmt/tests/source/type.rs diff --git a/tests/source/type_alias.rs b/src/tools/rustfmt/tests/source/type_alias.rs similarity index 100% rename from tests/source/type_alias.rs rename to src/tools/rustfmt/tests/source/type_alias.rs diff --git a/tests/source/unicode.rs b/src/tools/rustfmt/tests/source/unicode.rs similarity index 100% rename from tests/source/unicode.rs rename to src/tools/rustfmt/tests/source/unicode.rs diff --git a/tests/source/unions.rs b/src/tools/rustfmt/tests/source/unions.rs similarity index 100% rename from tests/source/unions.rs rename to src/tools/rustfmt/tests/source/unions.rs diff --git a/tests/source/unsafe-binders.rs b/src/tools/rustfmt/tests/source/unsafe-binders.rs similarity index 100% rename from tests/source/unsafe-binders.rs rename to src/tools/rustfmt/tests/source/unsafe-binders.rs diff --git a/tests/source/unsafe-field.rs b/src/tools/rustfmt/tests/source/unsafe-field.rs similarity index 100% rename from tests/source/unsafe-field.rs rename to src/tools/rustfmt/tests/source/unsafe-field.rs diff --git a/tests/source/unsafe-mod.rs b/src/tools/rustfmt/tests/source/unsafe-mod.rs similarity index 100% rename from tests/source/unsafe-mod.rs rename to src/tools/rustfmt/tests/source/unsafe-mod.rs diff --git a/tests/source/use-identifier-order-mixed-edition.rs b/src/tools/rustfmt/tests/source/use-identifier-order-mixed-edition.rs similarity index 100% rename from tests/source/use-identifier-order-mixed-edition.rs rename to src/tools/rustfmt/tests/source/use-identifier-order-mixed-edition.rs diff --git a/tests/source/use-identifier-order.rs b/src/tools/rustfmt/tests/source/use-identifier-order.rs similarity index 100% rename from tests/source/use-identifier-order.rs rename to src/tools/rustfmt/tests/source/use-identifier-order.rs diff --git a/tests/source/visibility.rs b/src/tools/rustfmt/tests/source/visibility.rs similarity index 100% rename from tests/source/visibility.rs rename to src/tools/rustfmt/tests/source/visibility.rs diff --git a/tests/source/visual-fn-type.rs b/src/tools/rustfmt/tests/source/visual-fn-type.rs similarity index 100% rename from tests/source/visual-fn-type.rs rename to src/tools/rustfmt/tests/source/visual-fn-type.rs diff --git a/tests/source/where-clause-rfc.rs b/src/tools/rustfmt/tests/source/where-clause-rfc.rs similarity index 100% rename from tests/source/where-clause-rfc.rs rename to src/tools/rustfmt/tests/source/where-clause-rfc.rs diff --git a/tests/source/where-clause.rs b/src/tools/rustfmt/tests/source/where-clause.rs similarity index 100% rename from tests/source/where-clause.rs rename to src/tools/rustfmt/tests/source/where-clause.rs diff --git a/tests/source/width-heuristics.rs b/src/tools/rustfmt/tests/source/width-heuristics.rs similarity index 100% rename from tests/source/width-heuristics.rs rename to src/tools/rustfmt/tests/source/width-heuristics.rs diff --git a/tests/source/wrap_comments_should_not_imply_format_doc_comments.rs b/src/tools/rustfmt/tests/source/wrap_comments_should_not_imply_format_doc_comments.rs similarity index 100% rename from tests/source/wrap_comments_should_not_imply_format_doc_comments.rs rename to src/tools/rustfmt/tests/source/wrap_comments_should_not_imply_format_doc_comments.rs diff --git a/tests/target/5131_crate.rs b/src/tools/rustfmt/tests/target/5131_crate.rs similarity index 100% rename from tests/target/5131_crate.rs rename to src/tools/rustfmt/tests/target/5131_crate.rs diff --git a/tests/target/5131_module.rs b/src/tools/rustfmt/tests/target/5131_module.rs similarity index 100% rename from tests/target/5131_module.rs rename to src/tools/rustfmt/tests/target/5131_module.rs diff --git a/tests/target/5131_one.rs b/src/tools/rustfmt/tests/target/5131_one.rs similarity index 100% rename from tests/target/5131_one.rs rename to src/tools/rustfmt/tests/target/5131_one.rs diff --git a/tests/target/6639-non-idempotent-block-doc-comments/inner-block-doc-comment.rs b/src/tools/rustfmt/tests/target/6639-non-idempotent-block-doc-comments/inner-block-doc-comment.rs similarity index 100% rename from tests/target/6639-non-idempotent-block-doc-comments/inner-block-doc-comment.rs rename to src/tools/rustfmt/tests/target/6639-non-idempotent-block-doc-comments/inner-block-doc-comment.rs diff --git a/tests/target/6639-non-idempotent-block-doc-comments/naive-outer-block-comment.rs b/src/tools/rustfmt/tests/target/6639-non-idempotent-block-doc-comments/naive-outer-block-comment.rs similarity index 100% rename from tests/target/6639-non-idempotent-block-doc-comments/naive-outer-block-comment.rs rename to src/tools/rustfmt/tests/target/6639-non-idempotent-block-doc-comments/naive-outer-block-comment.rs diff --git a/tests/target/6639-non-idempotent-block-doc-comments/outer-block-doc-comment.rs b/src/tools/rustfmt/tests/target/6639-non-idempotent-block-doc-comments/outer-block-doc-comment.rs similarity index 100% rename from tests/target/6639-non-idempotent-block-doc-comments/outer-block-doc-comment.rs rename to src/tools/rustfmt/tests/target/6639-non-idempotent-block-doc-comments/outer-block-doc-comment.rs diff --git a/tests/target/6639-non-idempotent-block-doc-comments/rustc-sample-1.rs b/src/tools/rustfmt/tests/target/6639-non-idempotent-block-doc-comments/rustc-sample-1.rs similarity index 100% rename from tests/target/6639-non-idempotent-block-doc-comments/rustc-sample-1.rs rename to src/tools/rustfmt/tests/target/6639-non-idempotent-block-doc-comments/rustc-sample-1.rs diff --git a/tests/target/6639-non-idempotent-block-doc-comments/rustc-sample-2.rs b/src/tools/rustfmt/tests/target/6639-non-idempotent-block-doc-comments/rustc-sample-2.rs similarity index 100% rename from tests/target/6639-non-idempotent-block-doc-comments/rustc-sample-2.rs rename to src/tools/rustfmt/tests/target/6639-non-idempotent-block-doc-comments/rustc-sample-2.rs diff --git a/tests/target/alignment_2633/block_style.rs b/src/tools/rustfmt/tests/target/alignment_2633/block_style.rs similarity index 100% rename from tests/target/alignment_2633/block_style.rs rename to src/tools/rustfmt/tests/target/alignment_2633/block_style.rs diff --git a/tests/target/alignment_2633/horizontal_tactic.rs b/src/tools/rustfmt/tests/target/alignment_2633/horizontal_tactic.rs similarity index 100% rename from tests/target/alignment_2633/horizontal_tactic.rs rename to src/tools/rustfmt/tests/target/alignment_2633/horizontal_tactic.rs diff --git a/tests/target/alignment_2633/visual_style.rs b/src/tools/rustfmt/tests/target/alignment_2633/visual_style.rs similarity index 100% rename from tests/target/alignment_2633/visual_style.rs rename to src/tools/rustfmt/tests/target/alignment_2633/visual_style.rs diff --git a/tests/target/array_comment.rs b/src/tools/rustfmt/tests/target/array_comment.rs similarity index 100% rename from tests/target/array_comment.rs rename to src/tools/rustfmt/tests/target/array_comment.rs diff --git a/tests/target/arrow_in_comments/arrow_in_single_comment.rs b/src/tools/rustfmt/tests/target/arrow_in_comments/arrow_in_single_comment.rs similarity index 100% rename from tests/target/arrow_in_comments/arrow_in_single_comment.rs rename to src/tools/rustfmt/tests/target/arrow_in_comments/arrow_in_single_comment.rs diff --git a/tests/target/arrow_in_comments/multiple_arrows.rs b/src/tools/rustfmt/tests/target/arrow_in_comments/multiple_arrows.rs similarity index 100% rename from tests/target/arrow_in_comments/multiple_arrows.rs rename to src/tools/rustfmt/tests/target/arrow_in_comments/multiple_arrows.rs diff --git a/tests/target/assignment.rs b/src/tools/rustfmt/tests/target/assignment.rs similarity index 100% rename from tests/target/assignment.rs rename to src/tools/rustfmt/tests/target/assignment.rs diff --git a/tests/target/associated-items.rs b/src/tools/rustfmt/tests/target/associated-items.rs similarity index 100% rename from tests/target/associated-items.rs rename to src/tools/rustfmt/tests/target/associated-items.rs diff --git a/tests/target/associated-types-bounds-wrapping.rs b/src/tools/rustfmt/tests/target/associated-types-bounds-wrapping.rs similarity index 100% rename from tests/target/associated-types-bounds-wrapping.rs rename to src/tools/rustfmt/tests/target/associated-types-bounds-wrapping.rs diff --git a/tests/target/associated_type_bounds.rs b/src/tools/rustfmt/tests/target/associated_type_bounds.rs similarity index 100% rename from tests/target/associated_type_bounds.rs rename to src/tools/rustfmt/tests/target/associated_type_bounds.rs diff --git a/tests/target/associated_type_defaults.rs b/src/tools/rustfmt/tests/target/associated_type_defaults.rs similarity index 100% rename from tests/target/associated_type_defaults.rs rename to src/tools/rustfmt/tests/target/associated_type_defaults.rs diff --git a/tests/target/async_block.rs b/src/tools/rustfmt/tests/target/async_block.rs similarity index 100% rename from tests/target/async_block.rs rename to src/tools/rustfmt/tests/target/async_block.rs diff --git a/tests/target/async_closure.rs b/src/tools/rustfmt/tests/target/async_closure.rs similarity index 100% rename from tests/target/async_closure.rs rename to src/tools/rustfmt/tests/target/async_closure.rs diff --git a/tests/target/async_fn.rs b/src/tools/rustfmt/tests/target/async_fn.rs similarity index 100% rename from tests/target/async_fn.rs rename to src/tools/rustfmt/tests/target/async_fn.rs diff --git a/tests/target/asyncness.rs b/src/tools/rustfmt/tests/target/asyncness.rs similarity index 100% rename from tests/target/asyncness.rs rename to src/tools/rustfmt/tests/target/asyncness.rs diff --git a/tests/target/attrib-block-expr.rs b/src/tools/rustfmt/tests/target/attrib-block-expr.rs similarity index 100% rename from tests/target/attrib-block-expr.rs rename to src/tools/rustfmt/tests/target/attrib-block-expr.rs diff --git a/tests/target/attrib-extern-crate.rs b/src/tools/rustfmt/tests/target/attrib-extern-crate.rs similarity index 100% rename from tests/target/attrib-extern-crate.rs rename to src/tools/rustfmt/tests/target/attrib-extern-crate.rs diff --git a/tests/target/attrib.rs b/src/tools/rustfmt/tests/target/attrib.rs similarity index 100% rename from tests/target/attrib.rs rename to src/tools/rustfmt/tests/target/attrib.rs diff --git a/tests/target/big-impl-block.rs b/src/tools/rustfmt/tests/target/big-impl-block.rs similarity index 100% rename from tests/target/big-impl-block.rs rename to src/tools/rustfmt/tests/target/big-impl-block.rs diff --git a/tests/target/big-impl-visual.rs b/src/tools/rustfmt/tests/target/big-impl-visual.rs similarity index 100% rename from tests/target/big-impl-visual.rs rename to src/tools/rustfmt/tests/target/big-impl-visual.rs diff --git a/tests/target/binary-expr.rs b/src/tools/rustfmt/tests/target/binary-expr.rs similarity index 100% rename from tests/target/binary-expr.rs rename to src/tools/rustfmt/tests/target/binary-expr.rs diff --git a/tests/target/binop-separator-back/bitwise.rs b/src/tools/rustfmt/tests/target/binop-separator-back/bitwise.rs similarity index 100% rename from tests/target/binop-separator-back/bitwise.rs rename to src/tools/rustfmt/tests/target/binop-separator-back/bitwise.rs diff --git a/tests/target/binop-separator-back/comp.rs b/src/tools/rustfmt/tests/target/binop-separator-back/comp.rs similarity index 100% rename from tests/target/binop-separator-back/comp.rs rename to src/tools/rustfmt/tests/target/binop-separator-back/comp.rs diff --git a/tests/target/binop-separator-back/logic.rs b/src/tools/rustfmt/tests/target/binop-separator-back/logic.rs similarity index 100% rename from tests/target/binop-separator-back/logic.rs rename to src/tools/rustfmt/tests/target/binop-separator-back/logic.rs diff --git a/tests/target/binop-separator-back/math.rs b/src/tools/rustfmt/tests/target/binop-separator-back/math.rs similarity index 100% rename from tests/target/binop-separator-back/math.rs rename to src/tools/rustfmt/tests/target/binop-separator-back/math.rs diff --git a/tests/target/binop-separator-back/patterns.rs b/src/tools/rustfmt/tests/target/binop-separator-back/patterns.rs similarity index 100% rename from tests/target/binop-separator-back/patterns.rs rename to src/tools/rustfmt/tests/target/binop-separator-back/patterns.rs diff --git a/tests/target/binop-separator-back/range.rs b/src/tools/rustfmt/tests/target/binop-separator-back/range.rs similarity index 100% rename from tests/target/binop-separator-back/range.rs rename to src/tools/rustfmt/tests/target/binop-separator-back/range.rs diff --git a/tests/target/break-and-continue.rs b/src/tools/rustfmt/tests/target/break-and-continue.rs similarity index 100% rename from tests/target/break-and-continue.rs rename to src/tools/rustfmt/tests/target/break-and-continue.rs diff --git a/tests/target/catch.rs b/src/tools/rustfmt/tests/target/catch.rs similarity index 100% rename from tests/target/catch.rs rename to src/tools/rustfmt/tests/target/catch.rs diff --git a/tests/target/cfg_attribute_in_where.rs b/src/tools/rustfmt/tests/target/cfg_attribute_in_where.rs similarity index 100% rename from tests/target/cfg_attribute_in_where.rs rename to src/tools/rustfmt/tests/target/cfg_attribute_in_where.rs diff --git a/tests/target/cfg_if/detect/arch/aarch64.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/arch/aarch64.rs similarity index 100% rename from tests/target/cfg_if/detect/arch/aarch64.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/arch/aarch64.rs diff --git a/tests/target/cfg_if/detect/arch/arm.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/arch/arm.rs similarity index 100% rename from tests/target/cfg_if/detect/arch/arm.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/arch/arm.rs diff --git a/tests/target/cfg_if/detect/arch/mips.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/arch/mips.rs similarity index 100% rename from tests/target/cfg_if/detect/arch/mips.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/arch/mips.rs diff --git a/tests/target/cfg_if/detect/arch/mips64.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/arch/mips64.rs similarity index 100% rename from tests/target/cfg_if/detect/arch/mips64.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/arch/mips64.rs diff --git a/tests/target/cfg_if/detect/arch/powerpc.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/arch/powerpc.rs similarity index 100% rename from tests/target/cfg_if/detect/arch/powerpc.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/arch/powerpc.rs diff --git a/tests/target/cfg_if/detect/arch/powerpc64.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/arch/powerpc64.rs similarity index 100% rename from tests/target/cfg_if/detect/arch/powerpc64.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/arch/powerpc64.rs diff --git a/tests/target/cfg_if/detect/arch/x86.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/arch/x86.rs similarity index 100% rename from tests/target/cfg_if/detect/arch/x86.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/arch/x86.rs diff --git a/tests/target/cfg_if/detect/bit.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/bit.rs similarity index 100% rename from tests/target/cfg_if/detect/bit.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/bit.rs diff --git a/tests/target/cfg_if/detect/cache.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/cache.rs similarity index 100% rename from tests/target/cfg_if/detect/cache.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/cache.rs diff --git a/tests/target/cfg_if/detect/error_macros.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/error_macros.rs similarity index 100% rename from tests/target/cfg_if/detect/error_macros.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/error_macros.rs diff --git a/tests/target/cfg_if/detect/mod.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/mod.rs similarity index 100% rename from tests/target/cfg_if/detect/mod.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/mod.rs diff --git a/tests/target/cfg_if/detect/os/aarch64.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/aarch64.rs similarity index 100% rename from tests/target/cfg_if/detect/os/aarch64.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/aarch64.rs diff --git a/tests/target/cfg_if/detect/os/freebsd/aarch64.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/freebsd/aarch64.rs similarity index 100% rename from tests/target/cfg_if/detect/os/freebsd/aarch64.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/freebsd/aarch64.rs diff --git a/tests/target/cfg_if/detect/os/freebsd/arm.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/freebsd/arm.rs similarity index 100% rename from tests/target/cfg_if/detect/os/freebsd/arm.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/freebsd/arm.rs diff --git a/tests/target/cfg_if/detect/os/freebsd/auxvec.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/freebsd/auxvec.rs similarity index 100% rename from tests/target/cfg_if/detect/os/freebsd/auxvec.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/freebsd/auxvec.rs diff --git a/tests/target/cfg_if/detect/os/freebsd/mod.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/freebsd/mod.rs similarity index 100% rename from tests/target/cfg_if/detect/os/freebsd/mod.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/freebsd/mod.rs diff --git a/tests/target/cfg_if/detect/os/freebsd/powerpc.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/freebsd/powerpc.rs similarity index 100% rename from tests/target/cfg_if/detect/os/freebsd/powerpc.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/freebsd/powerpc.rs diff --git a/tests/target/cfg_if/detect/os/linux/aarch64.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/aarch64.rs similarity index 100% rename from tests/target/cfg_if/detect/os/linux/aarch64.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/aarch64.rs diff --git a/tests/target/cfg_if/detect/os/linux/arm.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/arm.rs similarity index 100% rename from tests/target/cfg_if/detect/os/linux/arm.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/arm.rs diff --git a/tests/target/cfg_if/detect/os/linux/auxvec.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/auxvec.rs similarity index 100% rename from tests/target/cfg_if/detect/os/linux/auxvec.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/auxvec.rs diff --git a/tests/target/cfg_if/detect/os/linux/cpuinfo.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/cpuinfo.rs similarity index 100% rename from tests/target/cfg_if/detect/os/linux/cpuinfo.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/cpuinfo.rs diff --git a/tests/target/cfg_if/detect/os/linux/mips.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/mips.rs similarity index 100% rename from tests/target/cfg_if/detect/os/linux/mips.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/mips.rs diff --git a/tests/target/cfg_if/detect/os/linux/mod.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/mod.rs similarity index 100% rename from tests/target/cfg_if/detect/os/linux/mod.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/mod.rs diff --git a/tests/target/cfg_if/detect/os/linux/powerpc.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/powerpc.rs similarity index 100% rename from tests/target/cfg_if/detect/os/linux/powerpc.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/linux/powerpc.rs diff --git a/tests/target/cfg_if/detect/os/other.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/other.rs similarity index 100% rename from tests/target/cfg_if/detect/os/other.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/other.rs diff --git a/tests/target/cfg_if/detect/os/x86.rs b/src/tools/rustfmt/tests/target/cfg_if/detect/os/x86.rs similarity index 100% rename from tests/target/cfg_if/detect/os/x86.rs rename to src/tools/rustfmt/tests/target/cfg_if/detect/os/x86.rs diff --git a/tests/target/cfg_if/lib.rs b/src/tools/rustfmt/tests/target/cfg_if/lib.rs similarity index 100% rename from tests/target/cfg_if/lib.rs rename to src/tools/rustfmt/tests/target/cfg_if/lib.rs diff --git a/tests/target/cfg_if/mod.rs b/src/tools/rustfmt/tests/target/cfg_if/mod.rs similarity index 100% rename from tests/target/cfg_if/mod.rs rename to src/tools/rustfmt/tests/target/cfg_if/mod.rs diff --git a/tests/target/cfg_mod/bar.rs b/src/tools/rustfmt/tests/target/cfg_mod/bar.rs similarity index 100% rename from tests/target/cfg_mod/bar.rs rename to src/tools/rustfmt/tests/target/cfg_mod/bar.rs diff --git a/tests/target/cfg_mod/dir/dir1/dir2/wasm32.rs b/src/tools/rustfmt/tests/target/cfg_mod/dir/dir1/dir2/wasm32.rs similarity index 100% rename from tests/target/cfg_mod/dir/dir1/dir2/wasm32.rs rename to src/tools/rustfmt/tests/target/cfg_mod/dir/dir1/dir2/wasm32.rs diff --git a/tests/target/cfg_mod/dir/dir1/dir3/wasm32.rs b/src/tools/rustfmt/tests/target/cfg_mod/dir/dir1/dir3/wasm32.rs similarity index 100% rename from tests/target/cfg_mod/dir/dir1/dir3/wasm32.rs rename to src/tools/rustfmt/tests/target/cfg_mod/dir/dir1/dir3/wasm32.rs diff --git a/tests/target/cfg_mod/foo.rs b/src/tools/rustfmt/tests/target/cfg_mod/foo.rs similarity index 100% rename from tests/target/cfg_mod/foo.rs rename to src/tools/rustfmt/tests/target/cfg_mod/foo.rs diff --git a/tests/target/cfg_mod/mod.rs b/src/tools/rustfmt/tests/target/cfg_mod/mod.rs similarity index 100% rename from tests/target/cfg_mod/mod.rs rename to src/tools/rustfmt/tests/target/cfg_mod/mod.rs diff --git a/tests/target/cfg_mod/other.rs b/src/tools/rustfmt/tests/target/cfg_mod/other.rs similarity index 100% rename from tests/target/cfg_mod/other.rs rename to src/tools/rustfmt/tests/target/cfg_mod/other.rs diff --git a/tests/target/cfg_mod/wasm32.rs b/src/tools/rustfmt/tests/target/cfg_mod/wasm32.rs similarity index 100% rename from tests/target/cfg_mod/wasm32.rs rename to src/tools/rustfmt/tests/target/cfg_mod/wasm32.rs diff --git a/tests/target/cfg_select.rs b/src/tools/rustfmt/tests/target/cfg_select.rs similarity index 100% rename from tests/target/cfg_select.rs rename to src/tools/rustfmt/tests/target/cfg_select.rs diff --git a/tests/target/cfg_select/format_me_please_1.rs b/src/tools/rustfmt/tests/target/cfg_select/format_me_please_1.rs similarity index 100% rename from tests/target/cfg_select/format_me_please_1.rs rename to src/tools/rustfmt/tests/target/cfg_select/format_me_please_1.rs diff --git a/tests/target/cfg_select/format_me_please_2.rs b/src/tools/rustfmt/tests/target/cfg_select/format_me_please_2.rs similarity index 100% rename from tests/target/cfg_select/format_me_please_2.rs rename to src/tools/rustfmt/tests/target/cfg_select/format_me_please_2.rs diff --git a/tests/target/cfg_select/format_me_please_3.rs b/src/tools/rustfmt/tests/target/cfg_select/format_me_please_3.rs similarity index 100% rename from tests/target/cfg_select/format_me_please_3.rs rename to src/tools/rustfmt/tests/target/cfg_select/format_me_please_3.rs diff --git a/tests/target/cfg_select/format_me_please_4.rs b/src/tools/rustfmt/tests/target/cfg_select/format_me_please_4.rs similarity index 100% rename from tests/target/cfg_select/format_me_please_4.rs rename to src/tools/rustfmt/tests/target/cfg_select/format_me_please_4.rs diff --git a/tests/target/cfg_select/lib.rs b/src/tools/rustfmt/tests/target/cfg_select/lib.rs similarity index 100% rename from tests/target/cfg_select/lib.rs rename to src/tools/rustfmt/tests/target/cfg_select/lib.rs diff --git a/tests/target/cfg_select/lib2.rs b/src/tools/rustfmt/tests/target/cfg_select/lib2.rs similarity index 100% rename from tests/target/cfg_select/lib2.rs rename to src/tools/rustfmt/tests/target/cfg_select/lib2.rs diff --git a/tests/target/cfg_select_stable.rs b/src/tools/rustfmt/tests/target/cfg_select_stable.rs similarity index 100% rename from tests/target/cfg_select_stable.rs rename to src/tools/rustfmt/tests/target/cfg_select_stable.rs diff --git a/tests/target/chain_yield_with_comments.rs b/src/tools/rustfmt/tests/target/chain_yield_with_comments.rs similarity index 100% rename from tests/target/chain_yield_with_comments.rs rename to src/tools/rustfmt/tests/target/chain_yield_with_comments.rs diff --git a/tests/target/chains-visual.rs b/src/tools/rustfmt/tests/target/chains-visual.rs similarity index 100% rename from tests/target/chains-visual.rs rename to src/tools/rustfmt/tests/target/chains-visual.rs diff --git a/tests/target/chains.rs b/src/tools/rustfmt/tests/target/chains.rs similarity index 100% rename from tests/target/chains.rs rename to src/tools/rustfmt/tests/target/chains.rs diff --git a/tests/target/chains_with_comment.rs b/src/tools/rustfmt/tests/target/chains_with_comment.rs similarity index 100% rename from tests/target/chains_with_comment.rs rename to src/tools/rustfmt/tests/target/chains_with_comment.rs diff --git a/tests/target/closure-block-inside-macro.rs b/src/tools/rustfmt/tests/target/closure-block-inside-macro.rs similarity index 100% rename from tests/target/closure-block-inside-macro.rs rename to src/tools/rustfmt/tests/target/closure-block-inside-macro.rs diff --git a/tests/target/closure-block-labels.rs b/src/tools/rustfmt/tests/target/closure-block-labels.rs similarity index 100% rename from tests/target/closure-block-labels.rs rename to src/tools/rustfmt/tests/target/closure-block-labels.rs diff --git a/tests/target/closure.rs b/src/tools/rustfmt/tests/target/closure.rs similarity index 100% rename from tests/target/closure.rs rename to src/tools/rustfmt/tests/target/closure.rs diff --git a/tests/target/comment-inside-const.rs b/src/tools/rustfmt/tests/target/comment-inside-const.rs similarity index 100% rename from tests/target/comment-inside-const.rs rename to src/tools/rustfmt/tests/target/comment-inside-const.rs diff --git a/tests/target/comment-not-disappear.rs b/src/tools/rustfmt/tests/target/comment-not-disappear.rs similarity index 100% rename from tests/target/comment-not-disappear.rs rename to src/tools/rustfmt/tests/target/comment-not-disappear.rs diff --git a/tests/target/comment.rs b/src/tools/rustfmt/tests/target/comment.rs similarity index 100% rename from tests/target/comment.rs rename to src/tools/rustfmt/tests/target/comment.rs diff --git a/tests/target/comment2.rs b/src/tools/rustfmt/tests/target/comment2.rs similarity index 100% rename from tests/target/comment2.rs rename to src/tools/rustfmt/tests/target/comment2.rs diff --git a/tests/target/comment3.rs b/src/tools/rustfmt/tests/target/comment3.rs similarity index 100% rename from tests/target/comment3.rs rename to src/tools/rustfmt/tests/target/comment3.rs diff --git a/tests/target/comment4.rs b/src/tools/rustfmt/tests/target/comment4.rs similarity index 100% rename from tests/target/comment4.rs rename to src/tools/rustfmt/tests/target/comment4.rs diff --git a/tests/target/comment5.rs b/src/tools/rustfmt/tests/target/comment5.rs similarity index 100% rename from tests/target/comment5.rs rename to src/tools/rustfmt/tests/target/comment5.rs diff --git a/tests/target/comment6.rs b/src/tools/rustfmt/tests/target/comment6.rs similarity index 100% rename from tests/target/comment6.rs rename to src/tools/rustfmt/tests/target/comment6.rs diff --git a/tests/target/comment_crlf_newline.rs b/src/tools/rustfmt/tests/target/comment_crlf_newline.rs similarity index 100% rename from tests/target/comment_crlf_newline.rs rename to src/tools/rustfmt/tests/target/comment_crlf_newline.rs diff --git a/tests/target/comments-fn.rs b/src/tools/rustfmt/tests/target/comments-fn.rs similarity index 100% rename from tests/target/comments-fn.rs rename to src/tools/rustfmt/tests/target/comments-fn.rs diff --git a/tests/target/comments-in-lists/format-doc-comments.rs b/src/tools/rustfmt/tests/target/comments-in-lists/format-doc-comments.rs similarity index 100% rename from tests/target/comments-in-lists/format-doc-comments.rs rename to src/tools/rustfmt/tests/target/comments-in-lists/format-doc-comments.rs diff --git a/tests/target/comments-in-lists/wrap-comments-false.rs b/src/tools/rustfmt/tests/target/comments-in-lists/wrap-comments-false.rs similarity index 100% rename from tests/target/comments-in-lists/wrap-comments-false.rs rename to src/tools/rustfmt/tests/target/comments-in-lists/wrap-comments-false.rs diff --git a/tests/target/comments-in-lists/wrap-comments-not-normalized.rs b/src/tools/rustfmt/tests/target/comments-in-lists/wrap-comments-not-normalized.rs similarity index 100% rename from tests/target/comments-in-lists/wrap-comments-not-normalized.rs rename to src/tools/rustfmt/tests/target/comments-in-lists/wrap-comments-not-normalized.rs diff --git a/tests/target/comments-in-lists/wrap-comments-true.rs b/src/tools/rustfmt/tests/target/comments-in-lists/wrap-comments-true.rs similarity index 100% rename from tests/target/comments-in-lists/wrap-comments-true.rs rename to src/tools/rustfmt/tests/target/comments-in-lists/wrap-comments-true.rs diff --git a/tests/target/comments_unicode.rs b/src/tools/rustfmt/tests/target/comments_unicode.rs similarity index 100% rename from tests/target/comments_unicode.rs rename to src/tools/rustfmt/tests/target/comments_unicode.rs diff --git a/tests/target/configs/blank_lines_lower_bound/1.rs b/src/tools/rustfmt/tests/target/configs/blank_lines_lower_bound/1.rs similarity index 100% rename from tests/target/configs/blank_lines_lower_bound/1.rs rename to src/tools/rustfmt/tests/target/configs/blank_lines_lower_bound/1.rs diff --git a/tests/target/configs/blank_lines_upper_bound/1.rs b/src/tools/rustfmt/tests/target/configs/blank_lines_upper_bound/1.rs similarity index 100% rename from tests/target/configs/blank_lines_upper_bound/1.rs rename to src/tools/rustfmt/tests/target/configs/blank_lines_upper_bound/1.rs diff --git a/tests/target/configs/blank_lines_upper_bound/2.rs b/src/tools/rustfmt/tests/target/configs/blank_lines_upper_bound/2.rs similarity index 100% rename from tests/target/configs/blank_lines_upper_bound/2.rs rename to src/tools/rustfmt/tests/target/configs/blank_lines_upper_bound/2.rs diff --git a/tests/target/configs/brace_style/fn_always_next_line.rs b/src/tools/rustfmt/tests/target/configs/brace_style/fn_always_next_line.rs similarity index 100% rename from tests/target/configs/brace_style/fn_always_next_line.rs rename to src/tools/rustfmt/tests/target/configs/brace_style/fn_always_next_line.rs diff --git a/tests/target/configs/brace_style/fn_prefer_same_line.rs b/src/tools/rustfmt/tests/target/configs/brace_style/fn_prefer_same_line.rs similarity index 100% rename from tests/target/configs/brace_style/fn_prefer_same_line.rs rename to src/tools/rustfmt/tests/target/configs/brace_style/fn_prefer_same_line.rs diff --git a/tests/target/configs/brace_style/fn_same_line_where.rs b/src/tools/rustfmt/tests/target/configs/brace_style/fn_same_line_where.rs similarity index 100% rename from tests/target/configs/brace_style/fn_same_line_where.rs rename to src/tools/rustfmt/tests/target/configs/brace_style/fn_same_line_where.rs diff --git a/tests/target/configs/brace_style/item_always_next_line.rs b/src/tools/rustfmt/tests/target/configs/brace_style/item_always_next_line.rs similarity index 100% rename from tests/target/configs/brace_style/item_always_next_line.rs rename to src/tools/rustfmt/tests/target/configs/brace_style/item_always_next_line.rs diff --git a/tests/target/configs/brace_style/item_prefer_same_line.rs b/src/tools/rustfmt/tests/target/configs/brace_style/item_prefer_same_line.rs similarity index 100% rename from tests/target/configs/brace_style/item_prefer_same_line.rs rename to src/tools/rustfmt/tests/target/configs/brace_style/item_prefer_same_line.rs diff --git a/tests/target/configs/brace_style/item_same_line_where.rs b/src/tools/rustfmt/tests/target/configs/brace_style/item_same_line_where.rs similarity index 100% rename from tests/target/configs/brace_style/item_same_line_where.rs rename to src/tools/rustfmt/tests/target/configs/brace_style/item_same_line_where.rs diff --git a/tests/target/configs/chain_width/always.rs b/src/tools/rustfmt/tests/target/configs/chain_width/always.rs similarity index 100% rename from tests/target/configs/chain_width/always.rs rename to src/tools/rustfmt/tests/target/configs/chain_width/always.rs diff --git a/tests/target/configs/chain_width/small.rs b/src/tools/rustfmt/tests/target/configs/chain_width/small.rs similarity index 100% rename from tests/target/configs/chain_width/small.rs rename to src/tools/rustfmt/tests/target/configs/chain_width/small.rs diff --git a/tests/target/configs/chain_width/tiny.rs b/src/tools/rustfmt/tests/target/configs/chain_width/tiny.rs similarity index 100% rename from tests/target/configs/chain_width/tiny.rs rename to src/tools/rustfmt/tests/target/configs/chain_width/tiny.rs diff --git a/tests/target/configs/combine_control_expr/false.rs b/src/tools/rustfmt/tests/target/configs/combine_control_expr/false.rs similarity index 100% rename from tests/target/configs/combine_control_expr/false.rs rename to src/tools/rustfmt/tests/target/configs/combine_control_expr/false.rs diff --git a/tests/target/configs/combine_control_expr/true.rs b/src/tools/rustfmt/tests/target/configs/combine_control_expr/true.rs similarity index 100% rename from tests/target/configs/combine_control_expr/true.rs rename to src/tools/rustfmt/tests/target/configs/combine_control_expr/true.rs diff --git a/tests/target/configs/comment_width/above.rs b/src/tools/rustfmt/tests/target/configs/comment_width/above.rs similarity index 100% rename from tests/target/configs/comment_width/above.rs rename to src/tools/rustfmt/tests/target/configs/comment_width/above.rs diff --git a/tests/target/configs/comment_width/below.rs b/src/tools/rustfmt/tests/target/configs/comment_width/below.rs similarity index 100% rename from tests/target/configs/comment_width/below.rs rename to src/tools/rustfmt/tests/target/configs/comment_width/below.rs diff --git a/tests/target/configs/comment_width/ignore.rs b/src/tools/rustfmt/tests/target/configs/comment_width/ignore.rs similarity index 100% rename from tests/target/configs/comment_width/ignore.rs rename to src/tools/rustfmt/tests/target/configs/comment_width/ignore.rs diff --git a/tests/target/configs/condense_wildcard_suffixes/false.rs b/src/tools/rustfmt/tests/target/configs/condense_wildcard_suffixes/false.rs similarity index 100% rename from tests/target/configs/condense_wildcard_suffixes/false.rs rename to src/tools/rustfmt/tests/target/configs/condense_wildcard_suffixes/false.rs diff --git a/tests/target/configs/condense_wildcard_suffixes/true.rs b/src/tools/rustfmt/tests/target/configs/condense_wildcard_suffixes/true.rs similarity index 100% rename from tests/target/configs/condense_wildcard_suffixes/true.rs rename to src/tools/rustfmt/tests/target/configs/condense_wildcard_suffixes/true.rs diff --git a/tests/target/configs/control_brace_style/always_next_line.rs b/src/tools/rustfmt/tests/target/configs/control_brace_style/always_next_line.rs similarity index 100% rename from tests/target/configs/control_brace_style/always_next_line.rs rename to src/tools/rustfmt/tests/target/configs/control_brace_style/always_next_line.rs diff --git a/tests/target/configs/control_brace_style/always_same_line.rs b/src/tools/rustfmt/tests/target/configs/control_brace_style/always_same_line.rs similarity index 100% rename from tests/target/configs/control_brace_style/always_same_line.rs rename to src/tools/rustfmt/tests/target/configs/control_brace_style/always_same_line.rs diff --git a/tests/target/configs/control_brace_style/closing_next_line.rs b/src/tools/rustfmt/tests/target/configs/control_brace_style/closing_next_line.rs similarity index 100% rename from tests/target/configs/control_brace_style/closing_next_line.rs rename to src/tools/rustfmt/tests/target/configs/control_brace_style/closing_next_line.rs diff --git a/tests/target/configs/disable_all_formatting/false.rs b/src/tools/rustfmt/tests/target/configs/disable_all_formatting/false.rs similarity index 100% rename from tests/target/configs/disable_all_formatting/false.rs rename to src/tools/rustfmt/tests/target/configs/disable_all_formatting/false.rs diff --git a/tests/target/configs/disable_all_formatting/true.rs b/src/tools/rustfmt/tests/target/configs/disable_all_formatting/true.rs similarity index 100% rename from tests/target/configs/disable_all_formatting/true.rs rename to src/tools/rustfmt/tests/target/configs/disable_all_formatting/true.rs diff --git a/tests/target/configs/doc_comment_code_block_small_heuristics/default-to-max.rs b/src/tools/rustfmt/tests/target/configs/doc_comment_code_block_small_heuristics/default-to-max.rs similarity index 100% rename from tests/target/configs/doc_comment_code_block_small_heuristics/default-to-max.rs rename to src/tools/rustfmt/tests/target/configs/doc_comment_code_block_small_heuristics/default-to-max.rs diff --git a/tests/target/configs/doc_comment_code_block_small_heuristics/max-to-default.rs b/src/tools/rustfmt/tests/target/configs/doc_comment_code_block_small_heuristics/max-to-default.rs similarity index 100% rename from tests/target/configs/doc_comment_code_block_small_heuristics/max-to-default.rs rename to src/tools/rustfmt/tests/target/configs/doc_comment_code_block_small_heuristics/max-to-default.rs diff --git a/tests/target/configs/doc_comment_code_block_width/100.rs b/src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/100.rs similarity index 100% rename from tests/target/configs/doc_comment_code_block_width/100.rs rename to src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/100.rs diff --git a/tests/target/configs/doc_comment_code_block_width/100_greater_max_width.rs b/src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/100_greater_max_width.rs similarity index 100% rename from tests/target/configs/doc_comment_code_block_width/100_greater_max_width.rs rename to src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/100_greater_max_width.rs diff --git a/tests/target/configs/doc_comment_code_block_width/50.rs b/src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/50.rs similarity index 100% rename from tests/target/configs/doc_comment_code_block_width/50.rs rename to src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/50.rs diff --git a/tests/target/configs/empty_item_single_line/false.rs b/src/tools/rustfmt/tests/target/configs/empty_item_single_line/false.rs similarity index 100% rename from tests/target/configs/empty_item_single_line/false.rs rename to src/tools/rustfmt/tests/target/configs/empty_item_single_line/false.rs diff --git a/tests/target/configs/empty_item_single_line/true.rs b/src/tools/rustfmt/tests/target/configs/empty_item_single_line/true.rs similarity index 100% rename from tests/target/configs/empty_item_single_line/true.rs rename to src/tools/rustfmt/tests/target/configs/empty_item_single_line/true.rs diff --git a/tests/target/configs/enum_discrim_align_threshold/40.rs b/src/tools/rustfmt/tests/target/configs/enum_discrim_align_threshold/40.rs similarity index 100% rename from tests/target/configs/enum_discrim_align_threshold/40.rs rename to src/tools/rustfmt/tests/target/configs/enum_discrim_align_threshold/40.rs diff --git a/tests/target/configs/error_on_line_overflow/false.rs b/src/tools/rustfmt/tests/target/configs/error_on_line_overflow/false.rs similarity index 100% rename from tests/target/configs/error_on_line_overflow/false.rs rename to src/tools/rustfmt/tests/target/configs/error_on_line_overflow/false.rs diff --git a/tests/target/configs/error_on_unformatted/false.rs b/src/tools/rustfmt/tests/target/configs/error_on_unformatted/false.rs similarity index 100% rename from tests/target/configs/error_on_unformatted/false.rs rename to src/tools/rustfmt/tests/target/configs/error_on_unformatted/false.rs diff --git a/tests/target/configs/float_literal_trailing_zero/always.rs b/src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/always.rs similarity index 100% rename from tests/target/configs/float_literal_trailing_zero/always.rs rename to src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/always.rs diff --git a/tests/target/configs/float_literal_trailing_zero/always_spaces_around_ranges_true.rs b/src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/always_spaces_around_ranges_true.rs similarity index 100% rename from tests/target/configs/float_literal_trailing_zero/always_spaces_around_ranges_true.rs rename to src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/always_spaces_around_ranges_true.rs diff --git a/tests/target/configs/float_literal_trailing_zero/if-no-postfix.rs b/src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/if-no-postfix.rs similarity index 100% rename from tests/target/configs/float_literal_trailing_zero/if-no-postfix.rs rename to src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/if-no-postfix.rs diff --git a/tests/target/configs/float_literal_trailing_zero/if-no-postfix_spaces_around_ranges_true.rs b/src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/if-no-postfix_spaces_around_ranges_true.rs similarity index 100% rename from tests/target/configs/float_literal_trailing_zero/if-no-postfix_spaces_around_ranges_true.rs rename to src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/if-no-postfix_spaces_around_ranges_true.rs diff --git a/tests/target/configs/float_literal_trailing_zero/never.rs b/src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/never.rs similarity index 100% rename from tests/target/configs/float_literal_trailing_zero/never.rs rename to src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/never.rs diff --git a/tests/target/configs/float_literal_trailing_zero/never_spaces_around_ranges_true.rs b/src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/never_spaces_around_ranges_true.rs similarity index 100% rename from tests/target/configs/float_literal_trailing_zero/never_spaces_around_ranges_true.rs rename to src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/never_spaces_around_ranges_true.rs diff --git a/tests/target/configs/float_literal_trailing_zero/preserve.rs b/src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/preserve.rs similarity index 100% rename from tests/target/configs/float_literal_trailing_zero/preserve.rs rename to src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/preserve.rs diff --git a/tests/target/configs/float_literal_trailing_zero/preserve_spaces_around_ranges_true.rs b/src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/preserve_spaces_around_ranges_true.rs similarity index 100% rename from tests/target/configs/float_literal_trailing_zero/preserve_spaces_around_ranges_true.rs rename to src/tools/rustfmt/tests/target/configs/float_literal_trailing_zero/preserve_spaces_around_ranges_true.rs diff --git a/tests/target/configs/fn_params_layout/compressed.rs b/src/tools/rustfmt/tests/target/configs/fn_params_layout/compressed.rs similarity index 100% rename from tests/target/configs/fn_params_layout/compressed.rs rename to src/tools/rustfmt/tests/target/configs/fn_params_layout/compressed.rs diff --git a/tests/target/configs/fn_params_layout/tall.rs b/src/tools/rustfmt/tests/target/configs/fn_params_layout/tall.rs similarity index 100% rename from tests/target/configs/fn_params_layout/tall.rs rename to src/tools/rustfmt/tests/target/configs/fn_params_layout/tall.rs diff --git a/tests/target/configs/fn_params_layout/vertical.rs b/src/tools/rustfmt/tests/target/configs/fn_params_layout/vertical.rs similarity index 100% rename from tests/target/configs/fn_params_layout/vertical.rs rename to src/tools/rustfmt/tests/target/configs/fn_params_layout/vertical.rs diff --git a/tests/target/configs/fn_params_layout/vertical_style_2027.rs b/src/tools/rustfmt/tests/target/configs/fn_params_layout/vertical_style_2027.rs similarity index 100% rename from tests/target/configs/fn_params_layout/vertical_style_2027.rs rename to src/tools/rustfmt/tests/target/configs/fn_params_layout/vertical_style_2027.rs diff --git a/tests/target/configs/fn_single_line/false.rs b/src/tools/rustfmt/tests/target/configs/fn_single_line/false.rs similarity index 100% rename from tests/target/configs/fn_single_line/false.rs rename to src/tools/rustfmt/tests/target/configs/fn_single_line/false.rs diff --git a/tests/target/configs/fn_single_line/true.rs b/src/tools/rustfmt/tests/target/configs/fn_single_line/true.rs similarity index 100% rename from tests/target/configs/fn_single_line/true.rs rename to src/tools/rustfmt/tests/target/configs/fn_single_line/true.rs diff --git a/tests/target/configs/force_explicit_abi/false.rs b/src/tools/rustfmt/tests/target/configs/force_explicit_abi/false.rs similarity index 100% rename from tests/target/configs/force_explicit_abi/false.rs rename to src/tools/rustfmt/tests/target/configs/force_explicit_abi/false.rs diff --git a/tests/target/configs/force_explicit_abi/true.rs b/src/tools/rustfmt/tests/target/configs/force_explicit_abi/true.rs similarity index 100% rename from tests/target/configs/force_explicit_abi/true.rs rename to src/tools/rustfmt/tests/target/configs/force_explicit_abi/true.rs diff --git a/tests/target/configs/force_multiline_block/false.rs b/src/tools/rustfmt/tests/target/configs/force_multiline_block/false.rs similarity index 100% rename from tests/target/configs/force_multiline_block/false.rs rename to src/tools/rustfmt/tests/target/configs/force_multiline_block/false.rs diff --git a/tests/target/configs/force_multiline_block/true.rs b/src/tools/rustfmt/tests/target/configs/force_multiline_block/true.rs similarity index 100% rename from tests/target/configs/force_multiline_block/true.rs rename to src/tools/rustfmt/tests/target/configs/force_multiline_block/true.rs diff --git a/tests/target/configs/format_generated_files/false.rs b/src/tools/rustfmt/tests/target/configs/format_generated_files/false.rs similarity index 100% rename from tests/target/configs/format_generated_files/false.rs rename to src/tools/rustfmt/tests/target/configs/format_generated_files/false.rs diff --git a/tests/target/configs/format_generated_files/false_with_generated_marker_line_search_limit.rs b/src/tools/rustfmt/tests/target/configs/format_generated_files/false_with_generated_marker_line_search_limit.rs similarity index 100% rename from tests/target/configs/format_generated_files/false_with_generated_marker_line_search_limit.rs rename to src/tools/rustfmt/tests/target/configs/format_generated_files/false_with_generated_marker_line_search_limit.rs diff --git a/tests/target/configs/format_generated_files/false_with_marker_out_scope_size.rs b/src/tools/rustfmt/tests/target/configs/format_generated_files/false_with_marker_out_scope_size.rs similarity index 100% rename from tests/target/configs/format_generated_files/false_with_marker_out_scope_size.rs rename to src/tools/rustfmt/tests/target/configs/format_generated_files/false_with_marker_out_scope_size.rs diff --git a/tests/target/configs/format_generated_files/false_with_zero_search_limit.rs b/src/tools/rustfmt/tests/target/configs/format_generated_files/false_with_zero_search_limit.rs similarity index 100% rename from tests/target/configs/format_generated_files/false_with_zero_search_limit.rs rename to src/tools/rustfmt/tests/target/configs/format_generated_files/false_with_zero_search_limit.rs diff --git a/tests/target/configs/format_generated_files/true.rs b/src/tools/rustfmt/tests/target/configs/format_generated_files/true.rs similarity index 100% rename from tests/target/configs/format_generated_files/true.rs rename to src/tools/rustfmt/tests/target/configs/format_generated_files/true.rs diff --git a/tests/target/configs/format_generated_files/true_with_marker_in_scope_size.rs b/src/tools/rustfmt/tests/target/configs/format_generated_files/true_with_marker_in_scope_size.rs similarity index 100% rename from tests/target/configs/format_generated_files/true_with_marker_in_scope_size.rs rename to src/tools/rustfmt/tests/target/configs/format_generated_files/true_with_marker_in_scope_size.rs diff --git a/tests/target/configs/format_generated_files/true_with_marker_not_in_header.rs b/src/tools/rustfmt/tests/target/configs/format_generated_files/true_with_marker_not_in_header.rs similarity index 100% rename from tests/target/configs/format_generated_files/true_with_marker_not_in_header.rs rename to src/tools/rustfmt/tests/target/configs/format_generated_files/true_with_marker_not_in_header.rs diff --git a/tests/target/configs/format_macro_bodies/false.rs b/src/tools/rustfmt/tests/target/configs/format_macro_bodies/false.rs similarity index 100% rename from tests/target/configs/format_macro_bodies/false.rs rename to src/tools/rustfmt/tests/target/configs/format_macro_bodies/false.rs diff --git a/tests/target/configs/format_macro_bodies/true.rs b/src/tools/rustfmt/tests/target/configs/format_macro_bodies/true.rs similarity index 100% rename from tests/target/configs/format_macro_bodies/true.rs rename to src/tools/rustfmt/tests/target/configs/format_macro_bodies/true.rs diff --git a/tests/target/configs/format_macro_matchers/false.rs b/src/tools/rustfmt/tests/target/configs/format_macro_matchers/false.rs similarity index 100% rename from tests/target/configs/format_macro_matchers/false.rs rename to src/tools/rustfmt/tests/target/configs/format_macro_matchers/false.rs diff --git a/tests/target/configs/format_macro_matchers/true.rs b/src/tools/rustfmt/tests/target/configs/format_macro_matchers/true.rs similarity index 100% rename from tests/target/configs/format_macro_matchers/true.rs rename to src/tools/rustfmt/tests/target/configs/format_macro_matchers/true.rs diff --git a/tests/target/configs/format_strings/false.rs b/src/tools/rustfmt/tests/target/configs/format_strings/false.rs similarity index 100% rename from tests/target/configs/format_strings/false.rs rename to src/tools/rustfmt/tests/target/configs/format_strings/false.rs diff --git a/tests/target/configs/format_strings/true.rs b/src/tools/rustfmt/tests/target/configs/format_strings/true.rs similarity index 100% rename from tests/target/configs/format_strings/true.rs rename to src/tools/rustfmt/tests/target/configs/format_strings/true.rs diff --git a/tests/target/configs/group_imports/One-merge_imports.rs b/src/tools/rustfmt/tests/target/configs/group_imports/One-merge_imports.rs similarity index 100% rename from tests/target/configs/group_imports/One-merge_imports.rs rename to src/tools/rustfmt/tests/target/configs/group_imports/One-merge_imports.rs diff --git a/tests/target/configs/group_imports/One-nested.rs b/src/tools/rustfmt/tests/target/configs/group_imports/One-nested.rs similarity index 100% rename from tests/target/configs/group_imports/One-nested.rs rename to src/tools/rustfmt/tests/target/configs/group_imports/One-nested.rs diff --git a/tests/target/configs/group_imports/One-no_reorder.rs b/src/tools/rustfmt/tests/target/configs/group_imports/One-no_reorder.rs similarity index 100% rename from tests/target/configs/group_imports/One-no_reorder.rs rename to src/tools/rustfmt/tests/target/configs/group_imports/One-no_reorder.rs diff --git a/tests/target/configs/group_imports/One.rs b/src/tools/rustfmt/tests/target/configs/group_imports/One.rs similarity index 100% rename from tests/target/configs/group_imports/One.rs rename to src/tools/rustfmt/tests/target/configs/group_imports/One.rs diff --git a/tests/target/configs/group_imports/StdExternalCrate-merge_imports.rs b/src/tools/rustfmt/tests/target/configs/group_imports/StdExternalCrate-merge_imports.rs similarity index 100% rename from tests/target/configs/group_imports/StdExternalCrate-merge_imports.rs rename to src/tools/rustfmt/tests/target/configs/group_imports/StdExternalCrate-merge_imports.rs diff --git a/tests/target/configs/group_imports/StdExternalCrate-nested.rs b/src/tools/rustfmt/tests/target/configs/group_imports/StdExternalCrate-nested.rs similarity index 100% rename from tests/target/configs/group_imports/StdExternalCrate-nested.rs rename to src/tools/rustfmt/tests/target/configs/group_imports/StdExternalCrate-nested.rs diff --git a/tests/target/configs/group_imports/StdExternalCrate-no_reorder.rs b/src/tools/rustfmt/tests/target/configs/group_imports/StdExternalCrate-no_reorder.rs similarity index 100% rename from tests/target/configs/group_imports/StdExternalCrate-no_reorder.rs rename to src/tools/rustfmt/tests/target/configs/group_imports/StdExternalCrate-no_reorder.rs diff --git a/tests/target/configs/group_imports/StdExternalCrate-non_consecutive.rs b/src/tools/rustfmt/tests/target/configs/group_imports/StdExternalCrate-non_consecutive.rs similarity index 100% rename from tests/target/configs/group_imports/StdExternalCrate-non_consecutive.rs rename to src/tools/rustfmt/tests/target/configs/group_imports/StdExternalCrate-non_consecutive.rs diff --git a/tests/target/configs/group_imports/StdExternalCrate.rs b/src/tools/rustfmt/tests/target/configs/group_imports/StdExternalCrate.rs similarity index 100% rename from tests/target/configs/group_imports/StdExternalCrate.rs rename to src/tools/rustfmt/tests/target/configs/group_imports/StdExternalCrate.rs diff --git a/tests/target/configs/hard_tabs/false.rs b/src/tools/rustfmt/tests/target/configs/hard_tabs/false.rs similarity index 100% rename from tests/target/configs/hard_tabs/false.rs rename to src/tools/rustfmt/tests/target/configs/hard_tabs/false.rs diff --git a/tests/target/configs/hard_tabs/true.rs b/src/tools/rustfmt/tests/target/configs/hard_tabs/true.rs similarity index 100% rename from tests/target/configs/hard_tabs/true.rs rename to src/tools/rustfmt/tests/target/configs/hard_tabs/true.rs diff --git a/tests/target/configs/hex_literal_case/hex_literal_lower.rs b/src/tools/rustfmt/tests/target/configs/hex_literal_case/hex_literal_lower.rs similarity index 100% rename from tests/target/configs/hex_literal_case/hex_literal_lower.rs rename to src/tools/rustfmt/tests/target/configs/hex_literal_case/hex_literal_lower.rs diff --git a/tests/target/configs/hex_literal_case/hex_literal_preserve.rs b/src/tools/rustfmt/tests/target/configs/hex_literal_case/hex_literal_preserve.rs similarity index 100% rename from tests/target/configs/hex_literal_case/hex_literal_preserve.rs rename to src/tools/rustfmt/tests/target/configs/hex_literal_case/hex_literal_preserve.rs diff --git a/tests/target/configs/hex_literal_case/hex_literal_upper.rs b/src/tools/rustfmt/tests/target/configs/hex_literal_case/hex_literal_upper.rs similarity index 100% rename from tests/target/configs/hex_literal_case/hex_literal_upper.rs rename to src/tools/rustfmt/tests/target/configs/hex_literal_case/hex_literal_upper.rs diff --git a/tests/target/configs/imports_indent/block.rs b/src/tools/rustfmt/tests/target/configs/imports_indent/block.rs similarity index 100% rename from tests/target/configs/imports_indent/block.rs rename to src/tools/rustfmt/tests/target/configs/imports_indent/block.rs diff --git a/tests/target/configs/imports_layout/horizontal_vertical.rs b/src/tools/rustfmt/tests/target/configs/imports_layout/horizontal_vertical.rs similarity index 100% rename from tests/target/configs/imports_layout/horizontal_vertical.rs rename to src/tools/rustfmt/tests/target/configs/imports_layout/horizontal_vertical.rs diff --git a/tests/target/configs/imports_layout/merge_mixed.rs b/src/tools/rustfmt/tests/target/configs/imports_layout/merge_mixed.rs similarity index 100% rename from tests/target/configs/imports_layout/merge_mixed.rs rename to src/tools/rustfmt/tests/target/configs/imports_layout/merge_mixed.rs diff --git a/tests/target/configs/imports_layout/mixed.rs b/src/tools/rustfmt/tests/target/configs/imports_layout/mixed.rs similarity index 100% rename from tests/target/configs/imports_layout/mixed.rs rename to src/tools/rustfmt/tests/target/configs/imports_layout/mixed.rs diff --git a/tests/target/configs/indent_style/block_args.rs b/src/tools/rustfmt/tests/target/configs/indent_style/block_args.rs similarity index 100% rename from tests/target/configs/indent_style/block_args.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/block_args.rs diff --git a/tests/target/configs/indent_style/block_array.rs b/src/tools/rustfmt/tests/target/configs/indent_style/block_array.rs similarity index 100% rename from tests/target/configs/indent_style/block_array.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/block_array.rs diff --git a/tests/target/configs/indent_style/block_call.rs b/src/tools/rustfmt/tests/target/configs/indent_style/block_call.rs similarity index 100% rename from tests/target/configs/indent_style/block_call.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/block_call.rs diff --git a/tests/target/configs/indent_style/block_chain.rs b/src/tools/rustfmt/tests/target/configs/indent_style/block_chain.rs similarity index 100% rename from tests/target/configs/indent_style/block_chain.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/block_chain.rs diff --git a/tests/target/configs/indent_style/block_generic.rs b/src/tools/rustfmt/tests/target/configs/indent_style/block_generic.rs similarity index 100% rename from tests/target/configs/indent_style/block_generic.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/block_generic.rs diff --git a/tests/target/configs/indent_style/block_struct_lit.rs b/src/tools/rustfmt/tests/target/configs/indent_style/block_struct_lit.rs similarity index 100% rename from tests/target/configs/indent_style/block_struct_lit.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/block_struct_lit.rs diff --git a/tests/target/configs/indent_style/block_tab_spaces_call.rs b/src/tools/rustfmt/tests/target/configs/indent_style/block_tab_spaces_call.rs similarity index 100% rename from tests/target/configs/indent_style/block_tab_spaces_call.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/block_tab_spaces_call.rs diff --git a/tests/target/configs/indent_style/block_trailing_comma_call/one.rs b/src/tools/rustfmt/tests/target/configs/indent_style/block_trailing_comma_call/one.rs similarity index 100% rename from tests/target/configs/indent_style/block_trailing_comma_call/one.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/block_trailing_comma_call/one.rs diff --git a/tests/target/configs/indent_style/block_trailing_comma_call/two.rs b/src/tools/rustfmt/tests/target/configs/indent_style/block_trailing_comma_call/two.rs similarity index 100% rename from tests/target/configs/indent_style/block_trailing_comma_call/two.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/block_trailing_comma_call/two.rs diff --git a/tests/target/configs/indent_style/block_where_pred.rs b/src/tools/rustfmt/tests/target/configs/indent_style/block_where_pred.rs similarity index 100% rename from tests/target/configs/indent_style/block_where_pred.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/block_where_pred.rs diff --git a/tests/target/configs/indent_style/default.rs b/src/tools/rustfmt/tests/target/configs/indent_style/default.rs similarity index 100% rename from tests/target/configs/indent_style/default.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/default.rs diff --git a/tests/target/configs/indent_style/rfc_control.rs b/src/tools/rustfmt/tests/target/configs/indent_style/rfc_control.rs similarity index 100% rename from tests/target/configs/indent_style/rfc_control.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/rfc_control.rs diff --git a/tests/target/configs/indent_style/rfc_where.rs b/src/tools/rustfmt/tests/target/configs/indent_style/rfc_where.rs similarity index 100% rename from tests/target/configs/indent_style/rfc_where.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/rfc_where.rs diff --git a/tests/target/configs/indent_style/visual_args.rs b/src/tools/rustfmt/tests/target/configs/indent_style/visual_args.rs similarity index 100% rename from tests/target/configs/indent_style/visual_args.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/visual_args.rs diff --git a/tests/target/configs/indent_style/visual_array.rs b/src/tools/rustfmt/tests/target/configs/indent_style/visual_array.rs similarity index 100% rename from tests/target/configs/indent_style/visual_array.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/visual_array.rs diff --git a/tests/target/configs/indent_style/visual_call.rs b/src/tools/rustfmt/tests/target/configs/indent_style/visual_call.rs similarity index 100% rename from tests/target/configs/indent_style/visual_call.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/visual_call.rs diff --git a/tests/target/configs/indent_style/visual_chain.rs b/src/tools/rustfmt/tests/target/configs/indent_style/visual_chain.rs similarity index 100% rename from tests/target/configs/indent_style/visual_chain.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/visual_chain.rs diff --git a/tests/target/configs/indent_style/visual_generics.rs b/src/tools/rustfmt/tests/target/configs/indent_style/visual_generics.rs similarity index 100% rename from tests/target/configs/indent_style/visual_generics.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/visual_generics.rs diff --git a/tests/target/configs/indent_style/visual_struct_lit.rs b/src/tools/rustfmt/tests/target/configs/indent_style/visual_struct_lit.rs similarity index 100% rename from tests/target/configs/indent_style/visual_struct_lit.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/visual_struct_lit.rs diff --git a/tests/target/configs/indent_style/visual_trailing_comma.rs b/src/tools/rustfmt/tests/target/configs/indent_style/visual_trailing_comma.rs similarity index 100% rename from tests/target/configs/indent_style/visual_trailing_comma.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/visual_trailing_comma.rs diff --git a/tests/target/configs/indent_style/visual_where_pred.rs b/src/tools/rustfmt/tests/target/configs/indent_style/visual_where_pred.rs similarity index 100% rename from tests/target/configs/indent_style/visual_where_pred.rs rename to src/tools/rustfmt/tests/target/configs/indent_style/visual_where_pred.rs diff --git a/tests/target/configs/match_arm_blocks/false.rs b/src/tools/rustfmt/tests/target/configs/match_arm_blocks/false.rs similarity index 100% rename from tests/target/configs/match_arm_blocks/false.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_blocks/false.rs diff --git a/tests/target/configs/match_arm_blocks/true.rs b/src/tools/rustfmt/tests/target/configs/match_arm_blocks/true.rs similarity index 100% rename from tests/target/configs/match_arm_blocks/true.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_blocks/true.rs diff --git a/tests/target/configs/match_arm_indent/attrs.rs b/src/tools/rustfmt/tests/target/configs/match_arm_indent/attrs.rs similarity index 100% rename from tests/target/configs/match_arm_indent/attrs.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_indent/attrs.rs diff --git a/tests/target/configs/match_arm_indent/guards.rs b/src/tools/rustfmt/tests/target/configs/match_arm_indent/guards.rs similarity index 100% rename from tests/target/configs/match_arm_indent/guards.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_indent/guards.rs diff --git a/tests/target/configs/match_arm_indent/leading_pipes.rs b/src/tools/rustfmt/tests/target/configs/match_arm_indent/leading_pipes.rs similarity index 100% rename from tests/target/configs/match_arm_indent/leading_pipes.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_indent/leading_pipes.rs diff --git a/tests/target/configs/match_arm_indent/nested.rs b/src/tools/rustfmt/tests/target/configs/match_arm_indent/nested.rs similarity index 100% rename from tests/target/configs/match_arm_indent/nested.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_indent/nested.rs diff --git a/tests/target/configs/match_arm_indent/noindent-tabs.rs b/src/tools/rustfmt/tests/target/configs/match_arm_indent/noindent-tabs.rs similarity index 100% rename from tests/target/configs/match_arm_indent/noindent-tabs.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_indent/noindent-tabs.rs diff --git a/tests/target/configs/match_arm_indent/noindent.rs b/src/tools/rustfmt/tests/target/configs/match_arm_indent/noindent.rs similarity index 100% rename from tests/target/configs/match_arm_indent/noindent.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_indent/noindent.rs diff --git a/tests/target/configs/match_arm_indent/patterns.rs b/src/tools/rustfmt/tests/target/configs/match_arm_indent/patterns.rs similarity index 100% rename from tests/target/configs/match_arm_indent/patterns.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_indent/patterns.rs diff --git a/tests/target/configs/match_arm_indent/unindent.rs b/src/tools/rustfmt/tests/target/configs/match_arm_indent/unindent.rs similarity index 100% rename from tests/target/configs/match_arm_indent/unindent.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_indent/unindent.rs diff --git a/tests/target/configs/match_arm_leading_pipes/always.rs b/src/tools/rustfmt/tests/target/configs/match_arm_leading_pipes/always.rs similarity index 100% rename from tests/target/configs/match_arm_leading_pipes/always.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_leading_pipes/always.rs diff --git a/tests/target/configs/match_arm_leading_pipes/never.rs b/src/tools/rustfmt/tests/target/configs/match_arm_leading_pipes/never.rs similarity index 100% rename from tests/target/configs/match_arm_leading_pipes/never.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_leading_pipes/never.rs diff --git a/tests/target/configs/match_arm_leading_pipes/preserve.rs b/src/tools/rustfmt/tests/target/configs/match_arm_leading_pipes/preserve.rs similarity index 100% rename from tests/target/configs/match_arm_leading_pipes/preserve.rs rename to src/tools/rustfmt/tests/target/configs/match_arm_leading_pipes/preserve.rs diff --git a/tests/target/configs/match_block_trailing_comma/false.rs b/src/tools/rustfmt/tests/target/configs/match_block_trailing_comma/false.rs similarity index 100% rename from tests/target/configs/match_block_trailing_comma/false.rs rename to src/tools/rustfmt/tests/target/configs/match_block_trailing_comma/false.rs diff --git a/tests/target/configs/match_block_trailing_comma/true.rs b/src/tools/rustfmt/tests/target/configs/match_block_trailing_comma/true.rs similarity index 100% rename from tests/target/configs/match_block_trailing_comma/true.rs rename to src/tools/rustfmt/tests/target/configs/match_block_trailing_comma/true.rs diff --git a/tests/target/configs/merge_derives/true.rs b/src/tools/rustfmt/tests/target/configs/merge_derives/true.rs similarity index 100% rename from tests/target/configs/merge_derives/true.rs rename to src/tools/rustfmt/tests/target/configs/merge_derives/true.rs diff --git a/tests/target/configs/normalize_comments/false.rs b/src/tools/rustfmt/tests/target/configs/normalize_comments/false.rs similarity index 100% rename from tests/target/configs/normalize_comments/false.rs rename to src/tools/rustfmt/tests/target/configs/normalize_comments/false.rs diff --git a/tests/target/configs/normalize_comments/true.rs b/src/tools/rustfmt/tests/target/configs/normalize_comments/true.rs similarity index 100% rename from tests/target/configs/normalize_comments/true.rs rename to src/tools/rustfmt/tests/target/configs/normalize_comments/true.rs diff --git a/tests/target/configs/normalize_doc_attributes/false.rs b/src/tools/rustfmt/tests/target/configs/normalize_doc_attributes/false.rs similarity index 100% rename from tests/target/configs/normalize_doc_attributes/false.rs rename to src/tools/rustfmt/tests/target/configs/normalize_doc_attributes/false.rs diff --git a/tests/target/configs/normalize_doc_attributes/true.rs b/src/tools/rustfmt/tests/target/configs/normalize_doc_attributes/true.rs similarity index 100% rename from tests/target/configs/normalize_doc_attributes/true.rs rename to src/tools/rustfmt/tests/target/configs/normalize_doc_attributes/true.rs diff --git a/tests/target/configs/remove_nested_parens/remove_nested_parens.rs b/src/tools/rustfmt/tests/target/configs/remove_nested_parens/remove_nested_parens.rs similarity index 100% rename from tests/target/configs/remove_nested_parens/remove_nested_parens.rs rename to src/tools/rustfmt/tests/target/configs/remove_nested_parens/remove_nested_parens.rs diff --git a/tests/target/configs/reorder_impl_items/false.rs b/src/tools/rustfmt/tests/target/configs/reorder_impl_items/false.rs similarity index 100% rename from tests/target/configs/reorder_impl_items/false.rs rename to src/tools/rustfmt/tests/target/configs/reorder_impl_items/false.rs diff --git a/tests/target/configs/reorder_impl_items/true.rs b/src/tools/rustfmt/tests/target/configs/reorder_impl_items/true.rs similarity index 100% rename from tests/target/configs/reorder_impl_items/true.rs rename to src/tools/rustfmt/tests/target/configs/reorder_impl_items/true.rs diff --git a/tests/target/configs/reorder_imports/false.rs b/src/tools/rustfmt/tests/target/configs/reorder_imports/false.rs similarity index 100% rename from tests/target/configs/reorder_imports/false.rs rename to src/tools/rustfmt/tests/target/configs/reorder_imports/false.rs diff --git a/tests/target/configs/reorder_imports/true.rs b/src/tools/rustfmt/tests/target/configs/reorder_imports/true.rs similarity index 100% rename from tests/target/configs/reorder_imports/true.rs rename to src/tools/rustfmt/tests/target/configs/reorder_imports/true.rs diff --git a/tests/target/configs/reorder_modules/dolor/mod.rs b/src/tools/rustfmt/tests/target/configs/reorder_modules/dolor/mod.rs similarity index 100% rename from tests/target/configs/reorder_modules/dolor/mod.rs rename to src/tools/rustfmt/tests/target/configs/reorder_modules/dolor/mod.rs diff --git a/tests/target/configs/reorder_modules/false.rs b/src/tools/rustfmt/tests/target/configs/reorder_modules/false.rs similarity index 100% rename from tests/target/configs/reorder_modules/false.rs rename to src/tools/rustfmt/tests/target/configs/reorder_modules/false.rs diff --git a/tests/target/configs/reorder_modules/ipsum/mod.rs b/src/tools/rustfmt/tests/target/configs/reorder_modules/ipsum/mod.rs similarity index 100% rename from tests/target/configs/reorder_modules/ipsum/mod.rs rename to src/tools/rustfmt/tests/target/configs/reorder_modules/ipsum/mod.rs diff --git a/tests/target/configs/reorder_modules/lorem/mod.rs b/src/tools/rustfmt/tests/target/configs/reorder_modules/lorem/mod.rs similarity index 100% rename from tests/target/configs/reorder_modules/lorem/mod.rs rename to src/tools/rustfmt/tests/target/configs/reorder_modules/lorem/mod.rs diff --git a/tests/target/configs/reorder_modules/sit/mod.rs b/src/tools/rustfmt/tests/target/configs/reorder_modules/sit/mod.rs similarity index 100% rename from tests/target/configs/reorder_modules/sit/mod.rs rename to src/tools/rustfmt/tests/target/configs/reorder_modules/sit/mod.rs diff --git a/tests/target/configs/reorder_modules/true.rs b/src/tools/rustfmt/tests/target/configs/reorder_modules/true.rs similarity index 100% rename from tests/target/configs/reorder_modules/true.rs rename to src/tools/rustfmt/tests/target/configs/reorder_modules/true.rs diff --git a/tests/target/configs/short_array_element_width_threshold/10.rs b/src/tools/rustfmt/tests/target/configs/short_array_element_width_threshold/10.rs similarity index 100% rename from tests/target/configs/short_array_element_width_threshold/10.rs rename to src/tools/rustfmt/tests/target/configs/short_array_element_width_threshold/10.rs diff --git a/tests/target/configs/short_array_element_width_threshold/20.rs b/src/tools/rustfmt/tests/target/configs/short_array_element_width_threshold/20.rs similarity index 100% rename from tests/target/configs/short_array_element_width_threshold/20.rs rename to src/tools/rustfmt/tests/target/configs/short_array_element_width_threshold/20.rs diff --git a/tests/target/configs/short_array_element_width_threshold/greater_than_max_width.rs b/src/tools/rustfmt/tests/target/configs/short_array_element_width_threshold/greater_than_max_width.rs similarity index 100% rename from tests/target/configs/short_array_element_width_threshold/greater_than_max_width.rs rename to src/tools/rustfmt/tests/target/configs/short_array_element_width_threshold/greater_than_max_width.rs diff --git a/tests/target/configs/single_line_let_else_max_width/100.rs b/src/tools/rustfmt/tests/target/configs/single_line_let_else_max_width/100.rs similarity index 100% rename from tests/target/configs/single_line_let_else_max_width/100.rs rename to src/tools/rustfmt/tests/target/configs/single_line_let_else_max_width/100.rs diff --git a/tests/target/configs/single_line_let_else_max_width/50.rs b/src/tools/rustfmt/tests/target/configs/single_line_let_else_max_width/50.rs similarity index 100% rename from tests/target/configs/single_line_let_else_max_width/50.rs rename to src/tools/rustfmt/tests/target/configs/single_line_let_else_max_width/50.rs diff --git a/tests/target/configs/single_line_let_else_max_width/zero.rs b/src/tools/rustfmt/tests/target/configs/single_line_let_else_max_width/zero.rs similarity index 100% rename from tests/target/configs/single_line_let_else_max_width/zero.rs rename to src/tools/rustfmt/tests/target/configs/single_line_let_else_max_width/zero.rs diff --git a/tests/target/configs/skip_children/foo/mod.rs b/src/tools/rustfmt/tests/target/configs/skip_children/foo/mod.rs similarity index 100% rename from tests/target/configs/skip_children/foo/mod.rs rename to src/tools/rustfmt/tests/target/configs/skip_children/foo/mod.rs diff --git a/tests/target/configs/skip_children/true.rs b/src/tools/rustfmt/tests/target/configs/skip_children/true.rs similarity index 100% rename from tests/target/configs/skip_children/true.rs rename to src/tools/rustfmt/tests/target/configs/skip_children/true.rs diff --git a/tests/target/configs/space_before_colon/true.rs b/src/tools/rustfmt/tests/target/configs/space_before_colon/true.rs similarity index 100% rename from tests/target/configs/space_before_colon/true.rs rename to src/tools/rustfmt/tests/target/configs/space_before_colon/true.rs diff --git a/tests/target/configs/spaces_around_ranges/false.rs b/src/tools/rustfmt/tests/target/configs/spaces_around_ranges/false.rs similarity index 100% rename from tests/target/configs/spaces_around_ranges/false.rs rename to src/tools/rustfmt/tests/target/configs/spaces_around_ranges/false.rs diff --git a/tests/target/configs/spaces_around_ranges/true.rs b/src/tools/rustfmt/tests/target/configs/spaces_around_ranges/true.rs similarity index 100% rename from tests/target/configs/spaces_around_ranges/true.rs rename to src/tools/rustfmt/tests/target/configs/spaces_around_ranges/true.rs diff --git a/tests/target/configs/struct_field_align_threshold/20.rs b/src/tools/rustfmt/tests/target/configs/struct_field_align_threshold/20.rs similarity index 100% rename from tests/target/configs/struct_field_align_threshold/20.rs rename to src/tools/rustfmt/tests/target/configs/struct_field_align_threshold/20.rs diff --git a/tests/target/configs/struct_lit_single_line/false.rs b/src/tools/rustfmt/tests/target/configs/struct_lit_single_line/false.rs similarity index 100% rename from tests/target/configs/struct_lit_single_line/false.rs rename to src/tools/rustfmt/tests/target/configs/struct_lit_single_line/false.rs diff --git a/tests/target/configs/style_edition/overflow_delim_expr_2015.rs b/src/tools/rustfmt/tests/target/configs/style_edition/overflow_delim_expr_2015.rs similarity index 100% rename from tests/target/configs/style_edition/overflow_delim_expr_2015.rs rename to src/tools/rustfmt/tests/target/configs/style_edition/overflow_delim_expr_2015.rs diff --git a/tests/target/configs/style_edition/overflow_delim_expr_2024.rs b/src/tools/rustfmt/tests/target/configs/style_edition/overflow_delim_expr_2024.rs similarity index 100% rename from tests/target/configs/style_edition/overflow_delim_expr_2024.rs rename to src/tools/rustfmt/tests/target/configs/style_edition/overflow_delim_expr_2024.rs diff --git a/tests/target/configs/tab_spaces/2.rs b/src/tools/rustfmt/tests/target/configs/tab_spaces/2.rs similarity index 100% rename from tests/target/configs/tab_spaces/2.rs rename to src/tools/rustfmt/tests/target/configs/tab_spaces/2.rs diff --git a/tests/target/configs/tab_spaces/4.rs b/src/tools/rustfmt/tests/target/configs/tab_spaces/4.rs similarity index 100% rename from tests/target/configs/tab_spaces/4.rs rename to src/tools/rustfmt/tests/target/configs/tab_spaces/4.rs diff --git a/tests/target/configs/trailing_comma/always.rs b/src/tools/rustfmt/tests/target/configs/trailing_comma/always.rs similarity index 100% rename from tests/target/configs/trailing_comma/always.rs rename to src/tools/rustfmt/tests/target/configs/trailing_comma/always.rs diff --git a/tests/target/configs/trailing_comma/never.rs b/src/tools/rustfmt/tests/target/configs/trailing_comma/never.rs similarity index 100% rename from tests/target/configs/trailing_comma/never.rs rename to src/tools/rustfmt/tests/target/configs/trailing_comma/never.rs diff --git a/tests/target/configs/trailing_comma/vertical.rs b/src/tools/rustfmt/tests/target/configs/trailing_comma/vertical.rs similarity index 100% rename from tests/target/configs/trailing_comma/vertical.rs rename to src/tools/rustfmt/tests/target/configs/trailing_comma/vertical.rs diff --git a/tests/target/configs/trailing_semicolon/false.rs b/src/tools/rustfmt/tests/target/configs/trailing_semicolon/false.rs similarity index 100% rename from tests/target/configs/trailing_semicolon/false.rs rename to src/tools/rustfmt/tests/target/configs/trailing_semicolon/false.rs diff --git a/tests/target/configs/trailing_semicolon/true.rs b/src/tools/rustfmt/tests/target/configs/trailing_semicolon/true.rs similarity index 100% rename from tests/target/configs/trailing_semicolon/true.rs rename to src/tools/rustfmt/tests/target/configs/trailing_semicolon/true.rs diff --git a/tests/target/configs/type_punctuation_density/compressed.rs b/src/tools/rustfmt/tests/target/configs/type_punctuation_density/compressed.rs similarity index 100% rename from tests/target/configs/type_punctuation_density/compressed.rs rename to src/tools/rustfmt/tests/target/configs/type_punctuation_density/compressed.rs diff --git a/tests/target/configs/type_punctuation_density/wide.rs b/src/tools/rustfmt/tests/target/configs/type_punctuation_density/wide.rs similarity index 100% rename from tests/target/configs/type_punctuation_density/wide.rs rename to src/tools/rustfmt/tests/target/configs/type_punctuation_density/wide.rs diff --git a/tests/target/configs/use_field_init_shorthand/false.rs b/src/tools/rustfmt/tests/target/configs/use_field_init_shorthand/false.rs similarity index 100% rename from tests/target/configs/use_field_init_shorthand/false.rs rename to src/tools/rustfmt/tests/target/configs/use_field_init_shorthand/false.rs diff --git a/tests/target/configs/use_field_init_shorthand/true.rs b/src/tools/rustfmt/tests/target/configs/use_field_init_shorthand/true.rs similarity index 100% rename from tests/target/configs/use_field_init_shorthand/true.rs rename to src/tools/rustfmt/tests/target/configs/use_field_init_shorthand/true.rs diff --git a/tests/target/configs/use_small_heuristics/default.rs b/src/tools/rustfmt/tests/target/configs/use_small_heuristics/default.rs similarity index 100% rename from tests/target/configs/use_small_heuristics/default.rs rename to src/tools/rustfmt/tests/target/configs/use_small_heuristics/default.rs diff --git a/tests/target/configs/use_small_heuristics/max.rs b/src/tools/rustfmt/tests/target/configs/use_small_heuristics/max.rs similarity index 100% rename from tests/target/configs/use_small_heuristics/max.rs rename to src/tools/rustfmt/tests/target/configs/use_small_heuristics/max.rs diff --git a/tests/target/configs/use_small_heuristics/off.rs b/src/tools/rustfmt/tests/target/configs/use_small_heuristics/off.rs similarity index 100% rename from tests/target/configs/use_small_heuristics/off.rs rename to src/tools/rustfmt/tests/target/configs/use_small_heuristics/off.rs diff --git a/tests/target/configs/use_try_shorthand/false.rs b/src/tools/rustfmt/tests/target/configs/use_try_shorthand/false.rs similarity index 100% rename from tests/target/configs/use_try_shorthand/false.rs rename to src/tools/rustfmt/tests/target/configs/use_try_shorthand/false.rs diff --git a/tests/target/configs/use_try_shorthand/true.rs b/src/tools/rustfmt/tests/target/configs/use_try_shorthand/true.rs similarity index 100% rename from tests/target/configs/use_try_shorthand/true.rs rename to src/tools/rustfmt/tests/target/configs/use_try_shorthand/true.rs diff --git a/tests/target/configs/version/mapped.rs b/src/tools/rustfmt/tests/target/configs/version/mapped.rs similarity index 100% rename from tests/target/configs/version/mapped.rs rename to src/tools/rustfmt/tests/target/configs/version/mapped.rs diff --git a/tests/target/configs/where_single_line/true-with-brace-style.rs b/src/tools/rustfmt/tests/target/configs/where_single_line/true-with-brace-style.rs similarity index 100% rename from tests/target/configs/where_single_line/true-with-brace-style.rs rename to src/tools/rustfmt/tests/target/configs/where_single_line/true-with-brace-style.rs diff --git a/tests/target/configs/where_single_line/true.rs b/src/tools/rustfmt/tests/target/configs/where_single_line/true.rs similarity index 100% rename from tests/target/configs/where_single_line/true.rs rename to src/tools/rustfmt/tests/target/configs/where_single_line/true.rs diff --git a/tests/target/configs/wrap_comments/false.rs b/src/tools/rustfmt/tests/target/configs/wrap_comments/false.rs similarity index 100% rename from tests/target/configs/wrap_comments/false.rs rename to src/tools/rustfmt/tests/target/configs/wrap_comments/false.rs diff --git a/tests/target/configs/wrap_comments/true.rs b/src/tools/rustfmt/tests/target/configs/wrap_comments/true.rs similarity index 100% rename from tests/target/configs/wrap_comments/true.rs rename to src/tools/rustfmt/tests/target/configs/wrap_comments/true.rs diff --git a/tests/target/const-block-items.rs b/src/tools/rustfmt/tests/target/const-block-items.rs similarity index 100% rename from tests/target/const-block-items.rs rename to src/tools/rustfmt/tests/target/const-block-items.rs diff --git a/tests/target/const-generics.rs b/src/tools/rustfmt/tests/target/const-generics.rs similarity index 100% rename from tests/target/const-generics.rs rename to src/tools/rustfmt/tests/target/const-generics.rs diff --git a/tests/target/const_generics.rs b/src/tools/rustfmt/tests/target/const_generics.rs similarity index 100% rename from tests/target/const_generics.rs rename to src/tools/rustfmt/tests/target/const_generics.rs diff --git a/tests/target/const_trait.rs b/src/tools/rustfmt/tests/target/const_trait.rs similarity index 100% rename from tests/target/const_trait.rs rename to src/tools/rustfmt/tests/target/const_trait.rs diff --git a/tests/target/control-brace-style-always-next-line.rs b/src/tools/rustfmt/tests/target/control-brace-style-always-next-line.rs similarity index 100% rename from tests/target/control-brace-style-always-next-line.rs rename to src/tools/rustfmt/tests/target/control-brace-style-always-next-line.rs diff --git a/tests/target/control-brace-style-always-same-line.rs b/src/tools/rustfmt/tests/target/control-brace-style-always-same-line.rs similarity index 100% rename from tests/target/control-brace-style-always-same-line.rs rename to src/tools/rustfmt/tests/target/control-brace-style-always-same-line.rs diff --git a/tests/target/default-field-values.rs b/src/tools/rustfmt/tests/target/default-field-values.rs similarity index 100% rename from tests/target/default-field-values.rs rename to src/tools/rustfmt/tests/target/default-field-values.rs diff --git a/tests/target/direct_const_arg.rs b/src/tools/rustfmt/tests/target/direct_const_arg.rs similarity index 100% rename from tests/target/direct_const_arg.rs rename to src/tools/rustfmt/tests/target/direct_const_arg.rs diff --git a/tests/target/doc-attrib.rs b/src/tools/rustfmt/tests/target/doc-attrib.rs similarity index 100% rename from tests/target/doc-attrib.rs rename to src/tools/rustfmt/tests/target/doc-attrib.rs diff --git a/tests/target/doc-comment-with-example.rs b/src/tools/rustfmt/tests/target/doc-comment-with-example.rs similarity index 100% rename from tests/target/doc-comment-with-example.rs rename to src/tools/rustfmt/tests/target/doc-comment-with-example.rs diff --git a/tests/target/doc-of-generic-item.rs b/src/tools/rustfmt/tests/target/doc-of-generic-item.rs similarity index 100% rename from tests/target/doc-of-generic-item.rs rename to src/tools/rustfmt/tests/target/doc-of-generic-item.rs diff --git a/tests/target/doc.rs b/src/tools/rustfmt/tests/target/doc.rs similarity index 100% rename from tests/target/doc.rs rename to src/tools/rustfmt/tests/target/doc.rs diff --git a/tests/target/dyn_trait.rs b/src/tools/rustfmt/tests/target/dyn_trait.rs similarity index 100% rename from tests/target/dyn_trait.rs rename to src/tools/rustfmt/tests/target/dyn_trait.rs diff --git a/tests/target/else-if-brace-style-always-next-line.rs b/src/tools/rustfmt/tests/target/else-if-brace-style-always-next-line.rs similarity index 100% rename from tests/target/else-if-brace-style-always-next-line.rs rename to src/tools/rustfmt/tests/target/else-if-brace-style-always-next-line.rs diff --git a/tests/target/else-if-brace-style-always-same-line.rs b/src/tools/rustfmt/tests/target/else-if-brace-style-always-same-line.rs similarity index 100% rename from tests/target/else-if-brace-style-always-same-line.rs rename to src/tools/rustfmt/tests/target/else-if-brace-style-always-same-line.rs diff --git a/tests/target/else-if-brace-style-closing-next-line.rs b/src/tools/rustfmt/tests/target/else-if-brace-style-closing-next-line.rs similarity index 100% rename from tests/target/else-if-brace-style-closing-next-line.rs rename to src/tools/rustfmt/tests/target/else-if-brace-style-closing-next-line.rs diff --git a/tests/target/empty-item-single-line-false.rs b/src/tools/rustfmt/tests/target/empty-item-single-line-false.rs similarity index 100% rename from tests/target/empty-item-single-line-false.rs rename to src/tools/rustfmt/tests/target/empty-item-single-line-false.rs diff --git a/tests/target/empty-tuple-no-conversion-to-unit-struct.rs b/src/tools/rustfmt/tests/target/empty-tuple-no-conversion-to-unit-struct.rs similarity index 100% rename from tests/target/empty-tuple-no-conversion-to-unit-struct.rs rename to src/tools/rustfmt/tests/target/empty-tuple-no-conversion-to-unit-struct.rs diff --git a/tests/target/empty_file.rs b/src/tools/rustfmt/tests/target/empty_file.rs similarity index 100% rename from tests/target/empty_file.rs rename to src/tools/rustfmt/tests/target/empty_file.rs diff --git a/tests/target/enum.rs b/src/tools/rustfmt/tests/target/enum.rs similarity index 100% rename from tests/target/enum.rs rename to src/tools/rustfmt/tests/target/enum.rs diff --git a/tests/target/ergonomic_clones.rs b/src/tools/rustfmt/tests/target/ergonomic_clones.rs similarity index 100% rename from tests/target/ergonomic_clones.rs rename to src/tools/rustfmt/tests/target/ergonomic_clones.rs diff --git a/tests/target/existential_type.rs b/src/tools/rustfmt/tests/target/existential_type.rs similarity index 100% rename from tests/target/existential_type.rs rename to src/tools/rustfmt/tests/target/existential_type.rs diff --git a/tests/target/expr-block.rs b/src/tools/rustfmt/tests/target/expr-block.rs similarity index 100% rename from tests/target/expr-block.rs rename to src/tools/rustfmt/tests/target/expr-block.rs diff --git a/tests/target/expr-overflow-delimited.rs b/src/tools/rustfmt/tests/target/expr-overflow-delimited.rs similarity index 100% rename from tests/target/expr-overflow-delimited.rs rename to src/tools/rustfmt/tests/target/expr-overflow-delimited.rs diff --git a/tests/target/expr.rs b/src/tools/rustfmt/tests/target/expr.rs similarity index 100% rename from tests/target/expr.rs rename to src/tools/rustfmt/tests/target/expr.rs diff --git a/tests/target/extern-rust.rs b/src/tools/rustfmt/tests/target/extern-rust.rs similarity index 100% rename from tests/target/extern-rust.rs rename to src/tools/rustfmt/tests/target/extern-rust.rs diff --git a/tests/target/extern.rs b/src/tools/rustfmt/tests/target/extern.rs similarity index 100% rename from tests/target/extern.rs rename to src/tools/rustfmt/tests/target/extern.rs diff --git a/tests/target/extern_not_explicit.rs b/src/tools/rustfmt/tests/target/extern_not_explicit.rs similarity index 100% rename from tests/target/extern_not_explicit.rs rename to src/tools/rustfmt/tests/target/extern_not_explicit.rs diff --git a/tests/target/field-representing-types.rs b/src/tools/rustfmt/tests/target/field-representing-types.rs similarity index 100% rename from tests/target/field-representing-types.rs rename to src/tools/rustfmt/tests/target/field-representing-types.rs diff --git a/tests/target/file-lines-1.rs b/src/tools/rustfmt/tests/target/file-lines-1.rs similarity index 100% rename from tests/target/file-lines-1.rs rename to src/tools/rustfmt/tests/target/file-lines-1.rs diff --git a/tests/target/file-lines-2.rs b/src/tools/rustfmt/tests/target/file-lines-2.rs similarity index 100% rename from tests/target/file-lines-2.rs rename to src/tools/rustfmt/tests/target/file-lines-2.rs diff --git a/tests/target/file-lines-3.rs b/src/tools/rustfmt/tests/target/file-lines-3.rs similarity index 100% rename from tests/target/file-lines-3.rs rename to src/tools/rustfmt/tests/target/file-lines-3.rs diff --git a/tests/target/file-lines-4.rs b/src/tools/rustfmt/tests/target/file-lines-4.rs similarity index 100% rename from tests/target/file-lines-4.rs rename to src/tools/rustfmt/tests/target/file-lines-4.rs diff --git a/tests/target/file-lines-5.rs b/src/tools/rustfmt/tests/target/file-lines-5.rs similarity index 100% rename from tests/target/file-lines-5.rs rename to src/tools/rustfmt/tests/target/file-lines-5.rs diff --git a/tests/target/file-lines-6.rs b/src/tools/rustfmt/tests/target/file-lines-6.rs similarity index 100% rename from tests/target/file-lines-6.rs rename to src/tools/rustfmt/tests/target/file-lines-6.rs diff --git a/tests/target/file-lines-7.rs b/src/tools/rustfmt/tests/target/file-lines-7.rs similarity index 100% rename from tests/target/file-lines-7.rs rename to src/tools/rustfmt/tests/target/file-lines-7.rs diff --git a/tests/target/file-lines-item.rs b/src/tools/rustfmt/tests/target/file-lines-item.rs similarity index 100% rename from tests/target/file-lines-item.rs rename to src/tools/rustfmt/tests/target/file-lines-item.rs diff --git a/tests/target/final-kw.rs b/src/tools/rustfmt/tests/target/final-kw.rs similarity index 100% rename from tests/target/final-kw.rs rename to src/tools/rustfmt/tests/target/final-kw.rs diff --git a/tests/target/fn-args-with-last-line-comment.rs b/src/tools/rustfmt/tests/target/fn-args-with-last-line-comment.rs similarity index 100% rename from tests/target/fn-args-with-last-line-comment.rs rename to src/tools/rustfmt/tests/target/fn-args-with-last-line-comment.rs diff --git a/tests/target/fn-custom-2.rs b/src/tools/rustfmt/tests/target/fn-custom-2.rs similarity index 100% rename from tests/target/fn-custom-2.rs rename to src/tools/rustfmt/tests/target/fn-custom-2.rs diff --git a/tests/target/fn-custom-3.rs b/src/tools/rustfmt/tests/target/fn-custom-3.rs similarity index 100% rename from tests/target/fn-custom-3.rs rename to src/tools/rustfmt/tests/target/fn-custom-3.rs diff --git a/tests/target/fn-custom-4.rs b/src/tools/rustfmt/tests/target/fn-custom-4.rs similarity index 100% rename from tests/target/fn-custom-4.rs rename to src/tools/rustfmt/tests/target/fn-custom-4.rs diff --git a/tests/target/fn-custom-6.rs b/src/tools/rustfmt/tests/target/fn-custom-6.rs similarity index 100% rename from tests/target/fn-custom-6.rs rename to src/tools/rustfmt/tests/target/fn-custom-6.rs diff --git a/tests/target/fn-custom-7.rs b/src/tools/rustfmt/tests/target/fn-custom-7.rs similarity index 100% rename from tests/target/fn-custom-7.rs rename to src/tools/rustfmt/tests/target/fn-custom-7.rs diff --git a/tests/target/fn-custom-8.rs b/src/tools/rustfmt/tests/target/fn-custom-8.rs similarity index 100% rename from tests/target/fn-custom-8.rs rename to src/tools/rustfmt/tests/target/fn-custom-8.rs diff --git a/tests/target/fn-custom.rs b/src/tools/rustfmt/tests/target/fn-custom.rs similarity index 100% rename from tests/target/fn-custom.rs rename to src/tools/rustfmt/tests/target/fn-custom.rs diff --git a/tests/target/fn-param-attributes.rs b/src/tools/rustfmt/tests/target/fn-param-attributes.rs similarity index 100% rename from tests/target/fn-param-attributes.rs rename to src/tools/rustfmt/tests/target/fn-param-attributes.rs diff --git a/tests/target/fn-simple.rs b/src/tools/rustfmt/tests/target/fn-simple.rs similarity index 100% rename from tests/target/fn-simple.rs rename to src/tools/rustfmt/tests/target/fn-simple.rs diff --git a/tests/target/fn-single-line/version_one.rs b/src/tools/rustfmt/tests/target/fn-single-line/version_one.rs similarity index 100% rename from tests/target/fn-single-line/version_one.rs rename to src/tools/rustfmt/tests/target/fn-single-line/version_one.rs diff --git a/tests/target/fn-single-line/version_two.rs b/src/tools/rustfmt/tests/target/fn-single-line/version_two.rs similarity index 100% rename from tests/target/fn-single-line/version_two.rs rename to src/tools/rustfmt/tests/target/fn-single-line/version_two.rs diff --git a/tests/target/fn-ty.rs b/src/tools/rustfmt/tests/target/fn-ty.rs similarity index 100% rename from tests/target/fn-ty.rs rename to src/tools/rustfmt/tests/target/fn-ty.rs diff --git a/tests/target/fn.rs b/src/tools/rustfmt/tests/target/fn.rs similarity index 100% rename from tests/target/fn.rs rename to src/tools/rustfmt/tests/target/fn.rs diff --git a/tests/target/fn_args_indent-block.rs b/src/tools/rustfmt/tests/target/fn_args_indent-block.rs similarity index 100% rename from tests/target/fn_args_indent-block.rs rename to src/tools/rustfmt/tests/target/fn_args_indent-block.rs diff --git a/tests/target/fn_args_layout-vertical.rs b/src/tools/rustfmt/tests/target/fn_args_layout-vertical.rs similarity index 100% rename from tests/target/fn_args_layout-vertical.rs rename to src/tools/rustfmt/tests/target/fn_args_layout-vertical.rs diff --git a/tests/target/fn_once.rs b/src/tools/rustfmt/tests/target/fn_once.rs similarity index 100% rename from tests/target/fn_once.rs rename to src/tools/rustfmt/tests/target/fn_once.rs diff --git a/tests/target/format_strings/issue-202.rs b/src/tools/rustfmt/tests/target/format_strings/issue-202.rs similarity index 100% rename from tests/target/format_strings/issue-202.rs rename to src/tools/rustfmt/tests/target/format_strings/issue-202.rs diff --git a/tests/target/format_strings/issue-2833.rs b/src/tools/rustfmt/tests/target/format_strings/issue-2833.rs similarity index 100% rename from tests/target/format_strings/issue-2833.rs rename to src/tools/rustfmt/tests/target/format_strings/issue-2833.rs diff --git a/tests/target/format_strings/issue-3263.rs b/src/tools/rustfmt/tests/target/format_strings/issue-3263.rs similarity index 100% rename from tests/target/format_strings/issue-3263.rs rename to src/tools/rustfmt/tests/target/format_strings/issue-3263.rs diff --git a/tests/target/format_strings/issue-687.rs b/src/tools/rustfmt/tests/target/format_strings/issue-687.rs similarity index 100% rename from tests/target/format_strings/issue-687.rs rename to src/tools/rustfmt/tests/target/format_strings/issue-687.rs diff --git a/tests/target/format_strings/issue564.rs b/src/tools/rustfmt/tests/target/format_strings/issue564.rs similarity index 100% rename from tests/target/format_strings/issue564.rs rename to src/tools/rustfmt/tests/target/format_strings/issue564.rs diff --git a/tests/target/frontmatter_compact.rs b/src/tools/rustfmt/tests/target/frontmatter_compact.rs similarity index 100% rename from tests/target/frontmatter_compact.rs rename to src/tools/rustfmt/tests/target/frontmatter_compact.rs diff --git a/tests/target/frontmatter_escaped.rs b/src/tools/rustfmt/tests/target/frontmatter_escaped.rs similarity index 100% rename from tests/target/frontmatter_escaped.rs rename to src/tools/rustfmt/tests/target/frontmatter_escaped.rs diff --git a/tests/target/frontmatter_spaced.rs b/src/tools/rustfmt/tests/target/frontmatter_spaced.rs similarity index 100% rename from tests/target/frontmatter_spaced.rs rename to src/tools/rustfmt/tests/target/frontmatter_spaced.rs diff --git a/tests/target/generic_static.rs b/src/tools/rustfmt/tests/target/generic_static.rs similarity index 100% rename from tests/target/generic_static.rs rename to src/tools/rustfmt/tests/target/generic_static.rs diff --git a/tests/target/guard_patterns.rs b/src/tools/rustfmt/tests/target/guard_patterns.rs similarity index 100% rename from tests/target/guard_patterns.rs rename to src/tools/rustfmt/tests/target/guard_patterns.rs diff --git a/tests/target/hard-tabs.rs b/src/tools/rustfmt/tests/target/hard-tabs.rs similarity index 100% rename from tests/target/hard-tabs.rs rename to src/tools/rustfmt/tests/target/hard-tabs.rs diff --git a/tests/target/hello.rs b/src/tools/rustfmt/tests/target/hello.rs similarity index 100% rename from tests/target/hello.rs rename to src/tools/rustfmt/tests/target/hello.rs diff --git a/tests/target/if_while_or_patterns.rs b/src/tools/rustfmt/tests/target/if_while_or_patterns.rs similarity index 100% rename from tests/target/if_while_or_patterns.rs rename to src/tools/rustfmt/tests/target/if_while_or_patterns.rs diff --git a/tests/target/immovable_coroutines.rs b/src/tools/rustfmt/tests/target/immovable_coroutines.rs similarity index 100% rename from tests/target/immovable_coroutines.rs rename to src/tools/rustfmt/tests/target/immovable_coroutines.rs diff --git a/tests/target/impl-restriction.rs b/src/tools/rustfmt/tests/target/impl-restriction.rs similarity index 100% rename from tests/target/impl-restriction.rs rename to src/tools/rustfmt/tests/target/impl-restriction.rs diff --git a/tests/target/impl.rs b/src/tools/rustfmt/tests/target/impl.rs similarity index 100% rename from tests/target/impl.rs rename to src/tools/rustfmt/tests/target/impl.rs diff --git a/tests/target/impls.rs b/src/tools/rustfmt/tests/target/impls.rs similarity index 100% rename from tests/target/impls.rs rename to src/tools/rustfmt/tests/target/impls.rs diff --git a/tests/target/imports/import-fencepost-length.rs b/src/tools/rustfmt/tests/target/imports/import-fencepost-length.rs similarity index 100% rename from tests/target/imports/import-fencepost-length.rs rename to src/tools/rustfmt/tests/target/imports/import-fencepost-length.rs diff --git a/tests/target/imports/imports-impl-only-use.rs b/src/tools/rustfmt/tests/target/imports/imports-impl-only-use.rs similarity index 100% rename from tests/target/imports/imports-impl-only-use.rs rename to src/tools/rustfmt/tests/target/imports/imports-impl-only-use.rs diff --git a/tests/target/imports/imports-reorder-lines-and-items.rs b/src/tools/rustfmt/tests/target/imports/imports-reorder-lines-and-items.rs similarity index 100% rename from tests/target/imports/imports-reorder-lines-and-items.rs rename to src/tools/rustfmt/tests/target/imports/imports-reorder-lines-and-items.rs diff --git a/tests/target/imports/imports-reorder-lines.rs b/src/tools/rustfmt/tests/target/imports/imports-reorder-lines.rs similarity index 100% rename from tests/target/imports/imports-reorder-lines.rs rename to src/tools/rustfmt/tests/target/imports/imports-reorder-lines.rs diff --git a/tests/target/imports/imports-reorder.rs b/src/tools/rustfmt/tests/target/imports/imports-reorder.rs similarity index 100% rename from tests/target/imports/imports-reorder.rs rename to src/tools/rustfmt/tests/target/imports/imports-reorder.rs diff --git a/tests/target/imports/imports.rs b/src/tools/rustfmt/tests/target/imports/imports.rs similarity index 100% rename from tests/target/imports/imports.rs rename to src/tools/rustfmt/tests/target/imports/imports.rs diff --git a/tests/target/imports/imports_2021_edition.rs b/src/tools/rustfmt/tests/target/imports/imports_2021_edition.rs similarity index 100% rename from tests/target/imports/imports_2021_edition.rs rename to src/tools/rustfmt/tests/target/imports/imports_2021_edition.rs diff --git a/tests/target/imports/imports_block_indent.rs b/src/tools/rustfmt/tests/target/imports/imports_block_indent.rs similarity index 100% rename from tests/target/imports/imports_block_indent.rs rename to src/tools/rustfmt/tests/target/imports/imports_block_indent.rs diff --git a/tests/target/imports/imports_granularity_crate.rs b/src/tools/rustfmt/tests/target/imports/imports_granularity_crate.rs similarity index 100% rename from tests/target/imports/imports_granularity_crate.rs rename to src/tools/rustfmt/tests/target/imports/imports_granularity_crate.rs diff --git a/tests/target/imports/imports_granularity_default-with-dups.rs b/src/tools/rustfmt/tests/target/imports/imports_granularity_default-with-dups.rs similarity index 100% rename from tests/target/imports/imports_granularity_default-with-dups.rs rename to src/tools/rustfmt/tests/target/imports/imports_granularity_default-with-dups.rs diff --git a/tests/target/imports/imports_granularity_item-with-dups-StdExternalCrate-no-reorder.rs b/src/tools/rustfmt/tests/target/imports/imports_granularity_item-with-dups-StdExternalCrate-no-reorder.rs similarity index 100% rename from tests/target/imports/imports_granularity_item-with-dups-StdExternalCrate-no-reorder.rs rename to src/tools/rustfmt/tests/target/imports/imports_granularity_item-with-dups-StdExternalCrate-no-reorder.rs diff --git a/tests/target/imports/imports_granularity_item-with-dups.rs b/src/tools/rustfmt/tests/target/imports/imports_granularity_item-with-dups.rs similarity index 100% rename from tests/target/imports/imports_granularity_item-with-dups.rs rename to src/tools/rustfmt/tests/target/imports/imports_granularity_item-with-dups.rs diff --git a/tests/target/imports/imports_granularity_item.rs b/src/tools/rustfmt/tests/target/imports/imports_granularity_item.rs similarity index 100% rename from tests/target/imports/imports_granularity_item.rs rename to src/tools/rustfmt/tests/target/imports/imports_granularity_item.rs diff --git a/tests/target/imports/imports_granularity_module.rs b/src/tools/rustfmt/tests/target/imports/imports_granularity_module.rs similarity index 100% rename from tests/target/imports/imports_granularity_module.rs rename to src/tools/rustfmt/tests/target/imports/imports_granularity_module.rs diff --git a/tests/target/imports/imports_granularity_one.rs b/src/tools/rustfmt/tests/target/imports/imports_granularity_one.rs similarity index 100% rename from tests/target/imports/imports_granularity_one.rs rename to src/tools/rustfmt/tests/target/imports/imports_granularity_one.rs diff --git a/tests/target/imports_raw_identifiers/version_One.rs b/src/tools/rustfmt/tests/target/imports_raw_identifiers/version_One.rs similarity index 100% rename from tests/target/imports_raw_identifiers/version_One.rs rename to src/tools/rustfmt/tests/target/imports_raw_identifiers/version_One.rs diff --git a/tests/target/imports_raw_identifiers/version_Two.rs b/src/tools/rustfmt/tests/target/imports_raw_identifiers/version_Two.rs similarity index 100% rename from tests/target/imports_raw_identifiers/version_Two.rs rename to src/tools/rustfmt/tests/target/imports_raw_identifiers/version_Two.rs diff --git a/tests/target/indented-impl.rs b/src/tools/rustfmt/tests/target/indented-impl.rs similarity index 100% rename from tests/target/indented-impl.rs rename to src/tools/rustfmt/tests/target/indented-impl.rs diff --git a/tests/target/inner-module-path/b.rs b/src/tools/rustfmt/tests/target/inner-module-path/b.rs similarity index 100% rename from tests/target/inner-module-path/b.rs rename to src/tools/rustfmt/tests/target/inner-module-path/b.rs diff --git a/tests/target/inner-module-path/c/d.rs b/src/tools/rustfmt/tests/target/inner-module-path/c/d.rs similarity index 100% rename from tests/target/inner-module-path/c/d.rs rename to src/tools/rustfmt/tests/target/inner-module-path/c/d.rs diff --git a/tests/target/inner-module-path/lib.rs b/src/tools/rustfmt/tests/target/inner-module-path/lib.rs similarity index 100% rename from tests/target/inner-module-path/lib.rs rename to src/tools/rustfmt/tests/target/inner-module-path/lib.rs diff --git a/tests/target/invalid-rust-code-in-doc-comment.rs b/src/tools/rustfmt/tests/target/invalid-rust-code-in-doc-comment.rs similarity index 100% rename from tests/target/invalid-rust-code-in-doc-comment.rs rename to src/tools/rustfmt/tests/target/invalid-rust-code-in-doc-comment.rs diff --git a/tests/target/issue-1021.rs b/src/tools/rustfmt/tests/target/issue-1021.rs similarity index 100% rename from tests/target/issue-1021.rs rename to src/tools/rustfmt/tests/target/issue-1021.rs diff --git a/tests/target/issue-1049.rs b/src/tools/rustfmt/tests/target/issue-1049.rs similarity index 100% rename from tests/target/issue-1049.rs rename to src/tools/rustfmt/tests/target/issue-1049.rs diff --git a/tests/target/issue-1055.rs b/src/tools/rustfmt/tests/target/issue-1055.rs similarity index 100% rename from tests/target/issue-1055.rs rename to src/tools/rustfmt/tests/target/issue-1055.rs diff --git a/tests/target/issue-1096.rs b/src/tools/rustfmt/tests/target/issue-1096.rs similarity index 100% rename from tests/target/issue-1096.rs rename to src/tools/rustfmt/tests/target/issue-1096.rs diff --git a/tests/target/issue-1111.rs b/src/tools/rustfmt/tests/target/issue-1111.rs similarity index 100% rename from tests/target/issue-1111.rs rename to src/tools/rustfmt/tests/target/issue-1111.rs diff --git a/tests/target/issue-1113.rs b/src/tools/rustfmt/tests/target/issue-1113.rs similarity index 100% rename from tests/target/issue-1113.rs rename to src/tools/rustfmt/tests/target/issue-1113.rs diff --git a/tests/target/issue-1120.rs b/src/tools/rustfmt/tests/target/issue-1120.rs similarity index 100% rename from tests/target/issue-1120.rs rename to src/tools/rustfmt/tests/target/issue-1120.rs diff --git a/tests/target/issue-1124.rs b/src/tools/rustfmt/tests/target/issue-1124.rs similarity index 100% rename from tests/target/issue-1124.rs rename to src/tools/rustfmt/tests/target/issue-1124.rs diff --git a/tests/target/issue-1127.rs b/src/tools/rustfmt/tests/target/issue-1127.rs similarity index 100% rename from tests/target/issue-1127.rs rename to src/tools/rustfmt/tests/target/issue-1127.rs diff --git a/tests/target/issue-1158.rs b/src/tools/rustfmt/tests/target/issue-1158.rs similarity index 100% rename from tests/target/issue-1158.rs rename to src/tools/rustfmt/tests/target/issue-1158.rs diff --git a/tests/target/issue-1177.rs b/src/tools/rustfmt/tests/target/issue-1177.rs similarity index 100% rename from tests/target/issue-1177.rs rename to src/tools/rustfmt/tests/target/issue-1177.rs diff --git a/tests/target/issue-1192.rs b/src/tools/rustfmt/tests/target/issue-1192.rs similarity index 100% rename from tests/target/issue-1192.rs rename to src/tools/rustfmt/tests/target/issue-1192.rs diff --git a/tests/target/issue-1210/a.rs b/src/tools/rustfmt/tests/target/issue-1210/a.rs similarity index 100% rename from tests/target/issue-1210/a.rs rename to src/tools/rustfmt/tests/target/issue-1210/a.rs diff --git a/tests/target/issue-1210/b.rs b/src/tools/rustfmt/tests/target/issue-1210/b.rs similarity index 100% rename from tests/target/issue-1210/b.rs rename to src/tools/rustfmt/tests/target/issue-1210/b.rs diff --git a/tests/target/issue-1210/c.rs b/src/tools/rustfmt/tests/target/issue-1210/c.rs similarity index 100% rename from tests/target/issue-1210/c.rs rename to src/tools/rustfmt/tests/target/issue-1210/c.rs diff --git a/tests/target/issue-1210/d.rs b/src/tools/rustfmt/tests/target/issue-1210/d.rs similarity index 100% rename from tests/target/issue-1210/d.rs rename to src/tools/rustfmt/tests/target/issue-1210/d.rs diff --git a/tests/target/issue-1210/e.rs b/src/tools/rustfmt/tests/target/issue-1210/e.rs similarity index 100% rename from tests/target/issue-1210/e.rs rename to src/tools/rustfmt/tests/target/issue-1210/e.rs diff --git a/tests/target/issue-1211.rs b/src/tools/rustfmt/tests/target/issue-1211.rs similarity index 100% rename from tests/target/issue-1211.rs rename to src/tools/rustfmt/tests/target/issue-1211.rs diff --git a/tests/target/issue-1214.rs b/src/tools/rustfmt/tests/target/issue-1214.rs similarity index 100% rename from tests/target/issue-1214.rs rename to src/tools/rustfmt/tests/target/issue-1214.rs diff --git a/tests/target/issue-1216.rs b/src/tools/rustfmt/tests/target/issue-1216.rs similarity index 100% rename from tests/target/issue-1216.rs rename to src/tools/rustfmt/tests/target/issue-1216.rs diff --git a/tests/target/issue-1239.rs b/src/tools/rustfmt/tests/target/issue-1239.rs similarity index 100% rename from tests/target/issue-1239.rs rename to src/tools/rustfmt/tests/target/issue-1239.rs diff --git a/tests/target/issue-1247.rs b/src/tools/rustfmt/tests/target/issue-1247.rs similarity index 100% rename from tests/target/issue-1247.rs rename to src/tools/rustfmt/tests/target/issue-1247.rs diff --git a/tests/target/issue-1255.rs b/src/tools/rustfmt/tests/target/issue-1255.rs similarity index 100% rename from tests/target/issue-1255.rs rename to src/tools/rustfmt/tests/target/issue-1255.rs diff --git a/tests/target/issue-1278.rs b/src/tools/rustfmt/tests/target/issue-1278.rs similarity index 100% rename from tests/target/issue-1278.rs rename to src/tools/rustfmt/tests/target/issue-1278.rs diff --git a/tests/target/issue-1350.rs b/src/tools/rustfmt/tests/target/issue-1350.rs similarity index 100% rename from tests/target/issue-1350.rs rename to src/tools/rustfmt/tests/target/issue-1350.rs diff --git a/tests/target/issue-1366.rs b/src/tools/rustfmt/tests/target/issue-1366.rs similarity index 100% rename from tests/target/issue-1366.rs rename to src/tools/rustfmt/tests/target/issue-1366.rs diff --git a/tests/target/issue-1397.rs b/src/tools/rustfmt/tests/target/issue-1397.rs similarity index 100% rename from tests/target/issue-1397.rs rename to src/tools/rustfmt/tests/target/issue-1397.rs diff --git a/tests/target/issue-1468.rs b/src/tools/rustfmt/tests/target/issue-1468.rs similarity index 100% rename from tests/target/issue-1468.rs rename to src/tools/rustfmt/tests/target/issue-1468.rs diff --git a/tests/target/issue-1598.rs b/src/tools/rustfmt/tests/target/issue-1598.rs similarity index 100% rename from tests/target/issue-1598.rs rename to src/tools/rustfmt/tests/target/issue-1598.rs diff --git a/tests/target/issue-1624.rs b/src/tools/rustfmt/tests/target/issue-1624.rs similarity index 100% rename from tests/target/issue-1624.rs rename to src/tools/rustfmt/tests/target/issue-1624.rs diff --git a/tests/target/issue-1681.rs b/src/tools/rustfmt/tests/target/issue-1681.rs similarity index 100% rename from tests/target/issue-1681.rs rename to src/tools/rustfmt/tests/target/issue-1681.rs diff --git a/tests/target/issue-1693.rs b/src/tools/rustfmt/tests/target/issue-1693.rs similarity index 100% rename from tests/target/issue-1693.rs rename to src/tools/rustfmt/tests/target/issue-1693.rs diff --git a/tests/target/issue-1703.rs b/src/tools/rustfmt/tests/target/issue-1703.rs similarity index 100% rename from tests/target/issue-1703.rs rename to src/tools/rustfmt/tests/target/issue-1703.rs diff --git a/tests/target/issue-1800.rs b/src/tools/rustfmt/tests/target/issue-1800.rs similarity index 100% rename from tests/target/issue-1800.rs rename to src/tools/rustfmt/tests/target/issue-1800.rs diff --git a/tests/target/issue-1802.rs b/src/tools/rustfmt/tests/target/issue-1802.rs similarity index 100% rename from tests/target/issue-1802.rs rename to src/tools/rustfmt/tests/target/issue-1802.rs diff --git a/tests/target/issue-1824.rs b/src/tools/rustfmt/tests/target/issue-1824.rs similarity index 100% rename from tests/target/issue-1824.rs rename to src/tools/rustfmt/tests/target/issue-1824.rs diff --git a/tests/target/issue-1914.rs b/src/tools/rustfmt/tests/target/issue-1914.rs similarity index 100% rename from tests/target/issue-1914.rs rename to src/tools/rustfmt/tests/target/issue-1914.rs diff --git a/tests/target/issue-2025.rs b/src/tools/rustfmt/tests/target/issue-2025.rs similarity index 100% rename from tests/target/issue-2025.rs rename to src/tools/rustfmt/tests/target/issue-2025.rs diff --git a/tests/target/issue-2103.rs b/src/tools/rustfmt/tests/target/issue-2103.rs similarity index 100% rename from tests/target/issue-2103.rs rename to src/tools/rustfmt/tests/target/issue-2103.rs diff --git a/tests/target/issue-2111.rs b/src/tools/rustfmt/tests/target/issue-2111.rs similarity index 100% rename from tests/target/issue-2111.rs rename to src/tools/rustfmt/tests/target/issue-2111.rs diff --git a/tests/target/issue-2123.rs b/src/tools/rustfmt/tests/target/issue-2123.rs similarity index 100% rename from tests/target/issue-2123.rs rename to src/tools/rustfmt/tests/target/issue-2123.rs diff --git a/tests/target/issue-2164.rs b/src/tools/rustfmt/tests/target/issue-2164.rs similarity index 100% rename from tests/target/issue-2164.rs rename to src/tools/rustfmt/tests/target/issue-2164.rs diff --git a/tests/target/issue-2179/one.rs b/src/tools/rustfmt/tests/target/issue-2179/one.rs similarity index 100% rename from tests/target/issue-2179/one.rs rename to src/tools/rustfmt/tests/target/issue-2179/one.rs diff --git a/tests/target/issue-2179/two.rs b/src/tools/rustfmt/tests/target/issue-2179/two.rs similarity index 100% rename from tests/target/issue-2179/two.rs rename to src/tools/rustfmt/tests/target/issue-2179/two.rs diff --git a/tests/target/issue-2197.rs b/src/tools/rustfmt/tests/target/issue-2197.rs similarity index 100% rename from tests/target/issue-2197.rs rename to src/tools/rustfmt/tests/target/issue-2197.rs diff --git a/tests/target/issue-2256.rs b/src/tools/rustfmt/tests/target/issue-2256.rs similarity index 100% rename from tests/target/issue-2256.rs rename to src/tools/rustfmt/tests/target/issue-2256.rs diff --git a/tests/target/issue-2324.rs b/src/tools/rustfmt/tests/target/issue-2324.rs similarity index 100% rename from tests/target/issue-2324.rs rename to src/tools/rustfmt/tests/target/issue-2324.rs diff --git a/tests/target/issue-2329.rs b/src/tools/rustfmt/tests/target/issue-2329.rs similarity index 100% rename from tests/target/issue-2329.rs rename to src/tools/rustfmt/tests/target/issue-2329.rs diff --git a/tests/target/issue-2342.rs b/src/tools/rustfmt/tests/target/issue-2342.rs similarity index 100% rename from tests/target/issue-2342.rs rename to src/tools/rustfmt/tests/target/issue-2342.rs diff --git a/tests/target/issue-2346.rs b/src/tools/rustfmt/tests/target/issue-2346.rs similarity index 100% rename from tests/target/issue-2346.rs rename to src/tools/rustfmt/tests/target/issue-2346.rs diff --git a/tests/target/issue-2401.rs b/src/tools/rustfmt/tests/target/issue-2401.rs similarity index 100% rename from tests/target/issue-2401.rs rename to src/tools/rustfmt/tests/target/issue-2401.rs diff --git a/tests/target/issue-2445.rs b/src/tools/rustfmt/tests/target/issue-2445.rs similarity index 100% rename from tests/target/issue-2445.rs rename to src/tools/rustfmt/tests/target/issue-2445.rs diff --git a/tests/target/issue-2446.rs b/src/tools/rustfmt/tests/target/issue-2446.rs similarity index 100% rename from tests/target/issue-2446.rs rename to src/tools/rustfmt/tests/target/issue-2446.rs diff --git a/tests/target/issue-2479.rs b/src/tools/rustfmt/tests/target/issue-2479.rs similarity index 100% rename from tests/target/issue-2479.rs rename to src/tools/rustfmt/tests/target/issue-2479.rs diff --git a/tests/target/issue-2482/a.rs b/src/tools/rustfmt/tests/target/issue-2482/a.rs similarity index 100% rename from tests/target/issue-2482/a.rs rename to src/tools/rustfmt/tests/target/issue-2482/a.rs diff --git a/tests/target/issue-2482/b.rs b/src/tools/rustfmt/tests/target/issue-2482/b.rs similarity index 100% rename from tests/target/issue-2482/b.rs rename to src/tools/rustfmt/tests/target/issue-2482/b.rs diff --git a/tests/target/issue-2482/c.rs b/src/tools/rustfmt/tests/target/issue-2482/c.rs similarity index 100% rename from tests/target/issue-2482/c.rs rename to src/tools/rustfmt/tests/target/issue-2482/c.rs diff --git a/tests/target/issue-2496.rs b/src/tools/rustfmt/tests/target/issue-2496.rs similarity index 100% rename from tests/target/issue-2496.rs rename to src/tools/rustfmt/tests/target/issue-2496.rs diff --git a/tests/target/issue-2520.rs b/src/tools/rustfmt/tests/target/issue-2520.rs similarity index 100% rename from tests/target/issue-2520.rs rename to src/tools/rustfmt/tests/target/issue-2520.rs diff --git a/tests/target/issue-2523.rs b/src/tools/rustfmt/tests/target/issue-2523.rs similarity index 100% rename from tests/target/issue-2523.rs rename to src/tools/rustfmt/tests/target/issue-2523.rs diff --git a/tests/target/issue-2526.rs b/src/tools/rustfmt/tests/target/issue-2526.rs similarity index 100% rename from tests/target/issue-2526.rs rename to src/tools/rustfmt/tests/target/issue-2526.rs diff --git a/tests/target/issue-2534/format_macro_matchers_false.rs b/src/tools/rustfmt/tests/target/issue-2534/format_macro_matchers_false.rs similarity index 100% rename from tests/target/issue-2534/format_macro_matchers_false.rs rename to src/tools/rustfmt/tests/target/issue-2534/format_macro_matchers_false.rs diff --git a/tests/target/issue-2534/format_macro_matchers_true.rs b/src/tools/rustfmt/tests/target/issue-2534/format_macro_matchers_true.rs similarity index 100% rename from tests/target/issue-2534/format_macro_matchers_true.rs rename to src/tools/rustfmt/tests/target/issue-2534/format_macro_matchers_true.rs diff --git a/tests/target/issue-2551.rs b/src/tools/rustfmt/tests/target/issue-2551.rs similarity index 100% rename from tests/target/issue-2551.rs rename to src/tools/rustfmt/tests/target/issue-2551.rs diff --git a/tests/target/issue-2554.rs b/src/tools/rustfmt/tests/target/issue-2554.rs similarity index 100% rename from tests/target/issue-2554.rs rename to src/tools/rustfmt/tests/target/issue-2554.rs diff --git a/tests/target/issue-2582.rs b/src/tools/rustfmt/tests/target/issue-2582.rs similarity index 100% rename from tests/target/issue-2582.rs rename to src/tools/rustfmt/tests/target/issue-2582.rs diff --git a/tests/target/issue-2641.rs b/src/tools/rustfmt/tests/target/issue-2641.rs similarity index 100% rename from tests/target/issue-2641.rs rename to src/tools/rustfmt/tests/target/issue-2641.rs diff --git a/tests/target/issue-2644.rs b/src/tools/rustfmt/tests/target/issue-2644.rs similarity index 100% rename from tests/target/issue-2644.rs rename to src/tools/rustfmt/tests/target/issue-2644.rs diff --git a/tests/target/issue-2673-nonmodrs-mods/foo.rs b/src/tools/rustfmt/tests/target/issue-2673-nonmodrs-mods/foo.rs similarity index 100% rename from tests/target/issue-2673-nonmodrs-mods/foo.rs rename to src/tools/rustfmt/tests/target/issue-2673-nonmodrs-mods/foo.rs diff --git a/tests/target/issue-2673-nonmodrs-mods/foo/bar.rs b/src/tools/rustfmt/tests/target/issue-2673-nonmodrs-mods/foo/bar.rs similarity index 100% rename from tests/target/issue-2673-nonmodrs-mods/foo/bar.rs rename to src/tools/rustfmt/tests/target/issue-2673-nonmodrs-mods/foo/bar.rs diff --git a/tests/target/issue-2673-nonmodrs-mods/lib.rs b/src/tools/rustfmt/tests/target/issue-2673-nonmodrs-mods/lib.rs similarity index 100% rename from tests/target/issue-2673-nonmodrs-mods/lib.rs rename to src/tools/rustfmt/tests/target/issue-2673-nonmodrs-mods/lib.rs diff --git a/tests/target/issue-2728.rs b/src/tools/rustfmt/tests/target/issue-2728.rs similarity index 100% rename from tests/target/issue-2728.rs rename to src/tools/rustfmt/tests/target/issue-2728.rs diff --git a/tests/target/issue-2759.rs b/src/tools/rustfmt/tests/target/issue-2759.rs similarity index 100% rename from tests/target/issue-2759.rs rename to src/tools/rustfmt/tests/target/issue-2759.rs diff --git a/tests/target/issue-2761.rs b/src/tools/rustfmt/tests/target/issue-2761.rs similarity index 100% rename from tests/target/issue-2761.rs rename to src/tools/rustfmt/tests/target/issue-2761.rs diff --git a/tests/target/issue-2781.rs b/src/tools/rustfmt/tests/target/issue-2781.rs similarity index 100% rename from tests/target/issue-2781.rs rename to src/tools/rustfmt/tests/target/issue-2781.rs diff --git a/tests/target/issue-2794.rs b/src/tools/rustfmt/tests/target/issue-2794.rs similarity index 100% rename from tests/target/issue-2794.rs rename to src/tools/rustfmt/tests/target/issue-2794.rs diff --git a/tests/target/issue-2810.rs b/src/tools/rustfmt/tests/target/issue-2810.rs similarity index 100% rename from tests/target/issue-2810.rs rename to src/tools/rustfmt/tests/target/issue-2810.rs diff --git a/tests/target/issue-2835.rs b/src/tools/rustfmt/tests/target/issue-2835.rs similarity index 100% rename from tests/target/issue-2835.rs rename to src/tools/rustfmt/tests/target/issue-2835.rs diff --git a/tests/target/issue-2863.rs b/src/tools/rustfmt/tests/target/issue-2863.rs similarity index 100% rename from tests/target/issue-2863.rs rename to src/tools/rustfmt/tests/target/issue-2863.rs diff --git a/tests/target/issue-2869.rs b/src/tools/rustfmt/tests/target/issue-2869.rs similarity index 100% rename from tests/target/issue-2869.rs rename to src/tools/rustfmt/tests/target/issue-2869.rs diff --git a/tests/target/issue-2896.rs b/src/tools/rustfmt/tests/target/issue-2896.rs similarity index 100% rename from tests/target/issue-2896.rs rename to src/tools/rustfmt/tests/target/issue-2896.rs diff --git a/tests/target/issue-2916.rs b/src/tools/rustfmt/tests/target/issue-2916.rs similarity index 100% rename from tests/target/issue-2916.rs rename to src/tools/rustfmt/tests/target/issue-2916.rs diff --git a/tests/target/issue-2917/minimal.rs b/src/tools/rustfmt/tests/target/issue-2917/minimal.rs similarity index 100% rename from tests/target/issue-2917/minimal.rs rename to src/tools/rustfmt/tests/target/issue-2917/minimal.rs diff --git a/tests/target/issue-2917/packed_simd.rs b/src/tools/rustfmt/tests/target/issue-2917/packed_simd.rs similarity index 100% rename from tests/target/issue-2917/packed_simd.rs rename to src/tools/rustfmt/tests/target/issue-2917/packed_simd.rs diff --git a/tests/target/issue-2922.rs b/src/tools/rustfmt/tests/target/issue-2922.rs similarity index 100% rename from tests/target/issue-2922.rs rename to src/tools/rustfmt/tests/target/issue-2922.rs diff --git a/tests/target/issue-2927-2.rs b/src/tools/rustfmt/tests/target/issue-2927-2.rs similarity index 100% rename from tests/target/issue-2927-2.rs rename to src/tools/rustfmt/tests/target/issue-2927-2.rs diff --git a/tests/target/issue-2927.rs b/src/tools/rustfmt/tests/target/issue-2927.rs similarity index 100% rename from tests/target/issue-2927.rs rename to src/tools/rustfmt/tests/target/issue-2927.rs diff --git a/tests/target/issue-2930.rs b/src/tools/rustfmt/tests/target/issue-2930.rs similarity index 100% rename from tests/target/issue-2930.rs rename to src/tools/rustfmt/tests/target/issue-2930.rs diff --git a/tests/target/issue-2936.rs b/src/tools/rustfmt/tests/target/issue-2936.rs similarity index 100% rename from tests/target/issue-2936.rs rename to src/tools/rustfmt/tests/target/issue-2936.rs diff --git a/tests/target/issue-2941.rs b/src/tools/rustfmt/tests/target/issue-2941.rs similarity index 100% rename from tests/target/issue-2941.rs rename to src/tools/rustfmt/tests/target/issue-2941.rs diff --git a/tests/target/issue-2955.rs b/src/tools/rustfmt/tests/target/issue-2955.rs similarity index 100% rename from tests/target/issue-2955.rs rename to src/tools/rustfmt/tests/target/issue-2955.rs diff --git a/tests/target/issue-2973.rs b/src/tools/rustfmt/tests/target/issue-2973.rs similarity index 100% rename from tests/target/issue-2973.rs rename to src/tools/rustfmt/tests/target/issue-2973.rs diff --git a/tests/target/issue-2976.rs b/src/tools/rustfmt/tests/target/issue-2976.rs similarity index 100% rename from tests/target/issue-2976.rs rename to src/tools/rustfmt/tests/target/issue-2976.rs diff --git a/tests/target/issue-2977/block.rs b/src/tools/rustfmt/tests/target/issue-2977/block.rs similarity index 100% rename from tests/target/issue-2977/block.rs rename to src/tools/rustfmt/tests/target/issue-2977/block.rs diff --git a/tests/target/issue-2977/impl.rs b/src/tools/rustfmt/tests/target/issue-2977/impl.rs similarity index 100% rename from tests/target/issue-2977/impl.rs rename to src/tools/rustfmt/tests/target/issue-2977/impl.rs diff --git a/tests/target/issue-2977/item.rs b/src/tools/rustfmt/tests/target/issue-2977/item.rs similarity index 100% rename from tests/target/issue-2977/item.rs rename to src/tools/rustfmt/tests/target/issue-2977/item.rs diff --git a/tests/target/issue-2977/trait.rs b/src/tools/rustfmt/tests/target/issue-2977/trait.rs similarity index 100% rename from tests/target/issue-2977/trait.rs rename to src/tools/rustfmt/tests/target/issue-2977/trait.rs diff --git a/tests/target/issue-2985.rs b/src/tools/rustfmt/tests/target/issue-2985.rs similarity index 100% rename from tests/target/issue-2985.rs rename to src/tools/rustfmt/tests/target/issue-2985.rs diff --git a/tests/target/issue-2995.rs b/src/tools/rustfmt/tests/target/issue-2995.rs similarity index 100% rename from tests/target/issue-2995.rs rename to src/tools/rustfmt/tests/target/issue-2995.rs diff --git a/tests/target/issue-3029.rs b/src/tools/rustfmt/tests/target/issue-3029.rs similarity index 100% rename from tests/target/issue-3029.rs rename to src/tools/rustfmt/tests/target/issue-3029.rs diff --git a/tests/target/issue-3032.rs b/src/tools/rustfmt/tests/target/issue-3032.rs similarity index 100% rename from tests/target/issue-3032.rs rename to src/tools/rustfmt/tests/target/issue-3032.rs diff --git a/tests/target/issue-3038.rs b/src/tools/rustfmt/tests/target/issue-3038.rs similarity index 100% rename from tests/target/issue-3038.rs rename to src/tools/rustfmt/tests/target/issue-3038.rs diff --git a/tests/target/issue-3043.rs b/src/tools/rustfmt/tests/target/issue-3043.rs similarity index 100% rename from tests/target/issue-3043.rs rename to src/tools/rustfmt/tests/target/issue-3043.rs diff --git a/tests/target/issue-3049.rs b/src/tools/rustfmt/tests/target/issue-3049.rs similarity index 100% rename from tests/target/issue-3049.rs rename to src/tools/rustfmt/tests/target/issue-3049.rs diff --git a/tests/target/issue-3055/backtick.rs b/src/tools/rustfmt/tests/target/issue-3055/backtick.rs similarity index 100% rename from tests/target/issue-3055/backtick.rs rename to src/tools/rustfmt/tests/target/issue-3055/backtick.rs diff --git a/tests/target/issue-3055/empty-code-block.rs b/src/tools/rustfmt/tests/target/issue-3055/empty-code-block.rs similarity index 100% rename from tests/target/issue-3055/empty-code-block.rs rename to src/tools/rustfmt/tests/target/issue-3055/empty-code-block.rs diff --git a/tests/target/issue-3055/original.rs b/src/tools/rustfmt/tests/target/issue-3055/original.rs similarity index 100% rename from tests/target/issue-3055/original.rs rename to src/tools/rustfmt/tests/target/issue-3055/original.rs diff --git a/tests/target/issue-3059.rs b/src/tools/rustfmt/tests/target/issue-3059.rs similarity index 100% rename from tests/target/issue-3059.rs rename to src/tools/rustfmt/tests/target/issue-3059.rs diff --git a/tests/target/issue-3066.rs b/src/tools/rustfmt/tests/target/issue-3066.rs similarity index 100% rename from tests/target/issue-3066.rs rename to src/tools/rustfmt/tests/target/issue-3066.rs diff --git a/tests/target/issue-3105.rs b/src/tools/rustfmt/tests/target/issue-3105.rs similarity index 100% rename from tests/target/issue-3105.rs rename to src/tools/rustfmt/tests/target/issue-3105.rs diff --git a/tests/target/issue-3118.rs b/src/tools/rustfmt/tests/target/issue-3118.rs similarity index 100% rename from tests/target/issue-3118.rs rename to src/tools/rustfmt/tests/target/issue-3118.rs diff --git a/tests/target/issue-3124.rs b/src/tools/rustfmt/tests/target/issue-3124.rs similarity index 100% rename from tests/target/issue-3124.rs rename to src/tools/rustfmt/tests/target/issue-3124.rs diff --git a/tests/target/issue-3131.rs b/src/tools/rustfmt/tests/target/issue-3131.rs similarity index 100% rename from tests/target/issue-3131.rs rename to src/tools/rustfmt/tests/target/issue-3131.rs diff --git a/tests/target/issue-3132.rs b/src/tools/rustfmt/tests/target/issue-3132.rs similarity index 100% rename from tests/target/issue-3132.rs rename to src/tools/rustfmt/tests/target/issue-3132.rs diff --git a/tests/target/issue-3153.rs b/src/tools/rustfmt/tests/target/issue-3153.rs similarity index 100% rename from tests/target/issue-3153.rs rename to src/tools/rustfmt/tests/target/issue-3153.rs diff --git a/tests/target/issue-3158.rs b/src/tools/rustfmt/tests/target/issue-3158.rs similarity index 100% rename from tests/target/issue-3158.rs rename to src/tools/rustfmt/tests/target/issue-3158.rs diff --git a/tests/target/issue-3182.rs b/src/tools/rustfmt/tests/target/issue-3182.rs similarity index 100% rename from tests/target/issue-3182.rs rename to src/tools/rustfmt/tests/target/issue-3182.rs diff --git a/tests/target/issue-3184.rs b/src/tools/rustfmt/tests/target/issue-3184.rs similarity index 100% rename from tests/target/issue-3184.rs rename to src/tools/rustfmt/tests/target/issue-3184.rs diff --git a/tests/target/issue-3194.rs b/src/tools/rustfmt/tests/target/issue-3194.rs similarity index 100% rename from tests/target/issue-3194.rs rename to src/tools/rustfmt/tests/target/issue-3194.rs diff --git a/tests/target/issue-3198.rs b/src/tools/rustfmt/tests/target/issue-3198.rs similarity index 100% rename from tests/target/issue-3198.rs rename to src/tools/rustfmt/tests/target/issue-3198.rs diff --git a/tests/target/issue-3213/version_one.rs b/src/tools/rustfmt/tests/target/issue-3213/version_one.rs similarity index 100% rename from tests/target/issue-3213/version_one.rs rename to src/tools/rustfmt/tests/target/issue-3213/version_one.rs diff --git a/tests/target/issue-3213/version_two.rs b/src/tools/rustfmt/tests/target/issue-3213/version_two.rs similarity index 100% rename from tests/target/issue-3213/version_two.rs rename to src/tools/rustfmt/tests/target/issue-3213/version_two.rs diff --git a/tests/target/issue-3217.rs b/src/tools/rustfmt/tests/target/issue-3217.rs similarity index 100% rename from tests/target/issue-3217.rs rename to src/tools/rustfmt/tests/target/issue-3217.rs diff --git a/tests/target/issue-3224.rs b/src/tools/rustfmt/tests/target/issue-3224.rs similarity index 100% rename from tests/target/issue-3224.rs rename to src/tools/rustfmt/tests/target/issue-3224.rs diff --git a/tests/target/issue-3227/one.rs b/src/tools/rustfmt/tests/target/issue-3227/one.rs similarity index 100% rename from tests/target/issue-3227/one.rs rename to src/tools/rustfmt/tests/target/issue-3227/one.rs diff --git a/tests/target/issue-3227/two.rs b/src/tools/rustfmt/tests/target/issue-3227/two.rs similarity index 100% rename from tests/target/issue-3227/two.rs rename to src/tools/rustfmt/tests/target/issue-3227/two.rs diff --git a/tests/target/issue-3234.rs b/src/tools/rustfmt/tests/target/issue-3234.rs similarity index 100% rename from tests/target/issue-3234.rs rename to src/tools/rustfmt/tests/target/issue-3234.rs diff --git a/tests/target/issue-3241.rs b/src/tools/rustfmt/tests/target/issue-3241.rs similarity index 100% rename from tests/target/issue-3241.rs rename to src/tools/rustfmt/tests/target/issue-3241.rs diff --git a/tests/target/issue-3253/bar.rs b/src/tools/rustfmt/tests/target/issue-3253/bar.rs similarity index 100% rename from tests/target/issue-3253/bar.rs rename to src/tools/rustfmt/tests/target/issue-3253/bar.rs diff --git a/tests/target/issue-3253/foo.rs b/src/tools/rustfmt/tests/target/issue-3253/foo.rs similarity index 100% rename from tests/target/issue-3253/foo.rs rename to src/tools/rustfmt/tests/target/issue-3253/foo.rs diff --git a/tests/target/issue-3253/lib.rs b/src/tools/rustfmt/tests/target/issue-3253/lib.rs similarity index 100% rename from tests/target/issue-3253/lib.rs rename to src/tools/rustfmt/tests/target/issue-3253/lib.rs diff --git a/tests/target/issue-3253/paths/bar_foo.rs b/src/tools/rustfmt/tests/target/issue-3253/paths/bar_foo.rs similarity index 100% rename from tests/target/issue-3253/paths/bar_foo.rs rename to src/tools/rustfmt/tests/target/issue-3253/paths/bar_foo.rs diff --git a/tests/target/issue-3253/paths/excluded.rs b/src/tools/rustfmt/tests/target/issue-3253/paths/excluded.rs similarity index 100% rename from tests/target/issue-3253/paths/excluded.rs rename to src/tools/rustfmt/tests/target/issue-3253/paths/excluded.rs diff --git a/tests/target/issue-3253/paths/foo_bar.rs b/src/tools/rustfmt/tests/target/issue-3253/paths/foo_bar.rs similarity index 100% rename from tests/target/issue-3253/paths/foo_bar.rs rename to src/tools/rustfmt/tests/target/issue-3253/paths/foo_bar.rs diff --git a/tests/target/issue-3265.rs b/src/tools/rustfmt/tests/target/issue-3265.rs similarity index 100% rename from tests/target/issue-3265.rs rename to src/tools/rustfmt/tests/target/issue-3265.rs diff --git a/tests/target/issue-3270/one.rs b/src/tools/rustfmt/tests/target/issue-3270/one.rs similarity index 100% rename from tests/target/issue-3270/one.rs rename to src/tools/rustfmt/tests/target/issue-3270/one.rs diff --git a/tests/target/issue-3270/two.rs b/src/tools/rustfmt/tests/target/issue-3270/two.rs similarity index 100% rename from tests/target/issue-3270/two.rs rename to src/tools/rustfmt/tests/target/issue-3270/two.rs diff --git a/tests/target/issue-3270/wrap.rs b/src/tools/rustfmt/tests/target/issue-3270/wrap.rs similarity index 100% rename from tests/target/issue-3270/wrap.rs rename to src/tools/rustfmt/tests/target/issue-3270/wrap.rs diff --git a/tests/target/issue-3272/v1.rs b/src/tools/rustfmt/tests/target/issue-3272/v1.rs similarity index 100% rename from tests/target/issue-3272/v1.rs rename to src/tools/rustfmt/tests/target/issue-3272/v1.rs diff --git a/tests/target/issue-3272/v2.rs b/src/tools/rustfmt/tests/target/issue-3272/v2.rs similarity index 100% rename from tests/target/issue-3272/v2.rs rename to src/tools/rustfmt/tests/target/issue-3272/v2.rs diff --git a/tests/target/issue-3278/version_one.rs b/src/tools/rustfmt/tests/target/issue-3278/version_one.rs similarity index 100% rename from tests/target/issue-3278/version_one.rs rename to src/tools/rustfmt/tests/target/issue-3278/version_one.rs diff --git a/tests/target/issue-3278/version_two.rs b/src/tools/rustfmt/tests/target/issue-3278/version_two.rs similarity index 100% rename from tests/target/issue-3278/version_two.rs rename to src/tools/rustfmt/tests/target/issue-3278/version_two.rs diff --git a/tests/target/issue-3295/two.rs b/src/tools/rustfmt/tests/target/issue-3295/two.rs similarity index 100% rename from tests/target/issue-3295/two.rs rename to src/tools/rustfmt/tests/target/issue-3295/two.rs diff --git a/tests/target/issue-3302.rs b/src/tools/rustfmt/tests/target/issue-3302.rs similarity index 100% rename from tests/target/issue-3302.rs rename to src/tools/rustfmt/tests/target/issue-3302.rs diff --git a/tests/target/issue-3304.rs b/src/tools/rustfmt/tests/target/issue-3304.rs similarity index 100% rename from tests/target/issue-3304.rs rename to src/tools/rustfmt/tests/target/issue-3304.rs diff --git a/tests/target/issue-3314.rs b/src/tools/rustfmt/tests/target/issue-3314.rs similarity index 100% rename from tests/target/issue-3314.rs rename to src/tools/rustfmt/tests/target/issue-3314.rs diff --git a/tests/target/issue-3343.rs b/src/tools/rustfmt/tests/target/issue-3343.rs similarity index 100% rename from tests/target/issue-3343.rs rename to src/tools/rustfmt/tests/target/issue-3343.rs diff --git a/tests/target/issue-3423.rs b/src/tools/rustfmt/tests/target/issue-3423.rs similarity index 100% rename from tests/target/issue-3423.rs rename to src/tools/rustfmt/tests/target/issue-3423.rs diff --git a/tests/target/issue-3434/lib.rs b/src/tools/rustfmt/tests/target/issue-3434/lib.rs similarity index 100% rename from tests/target/issue-3434/lib.rs rename to src/tools/rustfmt/tests/target/issue-3434/lib.rs diff --git a/tests/target/issue-3434/no_entry.rs b/src/tools/rustfmt/tests/target/issue-3434/no_entry.rs similarity index 100% rename from tests/target/issue-3434/no_entry.rs rename to src/tools/rustfmt/tests/target/issue-3434/no_entry.rs diff --git a/tests/target/issue-3434/not_skip_macro.rs b/src/tools/rustfmt/tests/target/issue-3434/not_skip_macro.rs similarity index 100% rename from tests/target/issue-3434/not_skip_macro.rs rename to src/tools/rustfmt/tests/target/issue-3434/not_skip_macro.rs diff --git a/tests/target/issue-3442.rs b/src/tools/rustfmt/tests/target/issue-3442.rs similarity index 100% rename from tests/target/issue-3442.rs rename to src/tools/rustfmt/tests/target/issue-3442.rs diff --git a/tests/target/issue-3465.rs b/src/tools/rustfmt/tests/target/issue-3465.rs similarity index 100% rename from tests/target/issue-3465.rs rename to src/tools/rustfmt/tests/target/issue-3465.rs diff --git a/tests/target/issue-3494/crlf.rs b/src/tools/rustfmt/tests/target/issue-3494/crlf.rs similarity index 100% rename from tests/target/issue-3494/crlf.rs rename to src/tools/rustfmt/tests/target/issue-3494/crlf.rs diff --git a/tests/target/issue-3494/lf.rs b/src/tools/rustfmt/tests/target/issue-3494/lf.rs similarity index 100% rename from tests/target/issue-3494/lf.rs rename to src/tools/rustfmt/tests/target/issue-3494/lf.rs diff --git a/tests/target/issue-3499.rs b/src/tools/rustfmt/tests/target/issue-3499.rs similarity index 100% rename from tests/target/issue-3499.rs rename to src/tools/rustfmt/tests/target/issue-3499.rs diff --git a/tests/target/issue-3508.rs b/src/tools/rustfmt/tests/target/issue-3508.rs similarity index 100% rename from tests/target/issue-3508.rs rename to src/tools/rustfmt/tests/target/issue-3508.rs diff --git a/tests/target/issue-3515.rs b/src/tools/rustfmt/tests/target/issue-3515.rs similarity index 100% rename from tests/target/issue-3515.rs rename to src/tools/rustfmt/tests/target/issue-3515.rs diff --git a/tests/target/issue-3532.rs b/src/tools/rustfmt/tests/target/issue-3532.rs similarity index 100% rename from tests/target/issue-3532.rs rename to src/tools/rustfmt/tests/target/issue-3532.rs diff --git a/tests/target/issue-3539.rs b/src/tools/rustfmt/tests/target/issue-3539.rs similarity index 100% rename from tests/target/issue-3539.rs rename to src/tools/rustfmt/tests/target/issue-3539.rs diff --git a/tests/target/issue-3554.rs b/src/tools/rustfmt/tests/target/issue-3554.rs similarity index 100% rename from tests/target/issue-3554.rs rename to src/tools/rustfmt/tests/target/issue-3554.rs diff --git a/tests/target/issue-3567.rs b/src/tools/rustfmt/tests/target/issue-3567.rs similarity index 100% rename from tests/target/issue-3567.rs rename to src/tools/rustfmt/tests/target/issue-3567.rs diff --git a/tests/target/issue-3568.rs b/src/tools/rustfmt/tests/target/issue-3568.rs similarity index 100% rename from tests/target/issue-3568.rs rename to src/tools/rustfmt/tests/target/issue-3568.rs diff --git a/tests/target/issue-3585/extern_crate.rs b/src/tools/rustfmt/tests/target/issue-3585/extern_crate.rs similarity index 100% rename from tests/target/issue-3585/extern_crate.rs rename to src/tools/rustfmt/tests/target/issue-3585/extern_crate.rs diff --git a/tests/target/issue-3585/reorder_imports_disabled.rs b/src/tools/rustfmt/tests/target/issue-3585/reorder_imports_disabled.rs similarity index 100% rename from tests/target/issue-3585/reorder_imports_disabled.rs rename to src/tools/rustfmt/tests/target/issue-3585/reorder_imports_disabled.rs diff --git a/tests/target/issue-3585/reorder_imports_enabled.rs b/src/tools/rustfmt/tests/target/issue-3585/reorder_imports_enabled.rs similarity index 100% rename from tests/target/issue-3585/reorder_imports_enabled.rs rename to src/tools/rustfmt/tests/target/issue-3585/reorder_imports_enabled.rs diff --git a/tests/target/issue-3585/use.rs b/src/tools/rustfmt/tests/target/issue-3585/use.rs similarity index 100% rename from tests/target/issue-3585/use.rs rename to src/tools/rustfmt/tests/target/issue-3585/use.rs diff --git a/tests/target/issue-3595.rs b/src/tools/rustfmt/tests/target/issue-3595.rs similarity index 100% rename from tests/target/issue-3595.rs rename to src/tools/rustfmt/tests/target/issue-3595.rs diff --git a/tests/target/issue-3601.rs b/src/tools/rustfmt/tests/target/issue-3601.rs similarity index 100% rename from tests/target/issue-3601.rs rename to src/tools/rustfmt/tests/target/issue-3601.rs diff --git a/tests/target/issue-3614/version_one.rs b/src/tools/rustfmt/tests/target/issue-3614/version_one.rs similarity index 100% rename from tests/target/issue-3614/version_one.rs rename to src/tools/rustfmt/tests/target/issue-3614/version_one.rs diff --git a/tests/target/issue-3614/version_two.rs b/src/tools/rustfmt/tests/target/issue-3614/version_two.rs similarity index 100% rename from tests/target/issue-3614/version_two.rs rename to src/tools/rustfmt/tests/target/issue-3614/version_two.rs diff --git a/tests/target/issue-3636.rs b/src/tools/rustfmt/tests/target/issue-3636.rs similarity index 100% rename from tests/target/issue-3636.rs rename to src/tools/rustfmt/tests/target/issue-3636.rs diff --git a/tests/target/issue-3639.rs b/src/tools/rustfmt/tests/target/issue-3639.rs similarity index 100% rename from tests/target/issue-3639.rs rename to src/tools/rustfmt/tests/target/issue-3639.rs diff --git a/tests/target/issue-3645.rs b/src/tools/rustfmt/tests/target/issue-3645.rs similarity index 100% rename from tests/target/issue-3645.rs rename to src/tools/rustfmt/tests/target/issue-3645.rs diff --git a/tests/target/issue-3651.rs b/src/tools/rustfmt/tests/target/issue-3651.rs similarity index 100% rename from tests/target/issue-3651.rs rename to src/tools/rustfmt/tests/target/issue-3651.rs diff --git a/tests/target/issue-3665/lib.rs b/src/tools/rustfmt/tests/target/issue-3665/lib.rs similarity index 100% rename from tests/target/issue-3665/lib.rs rename to src/tools/rustfmt/tests/target/issue-3665/lib.rs diff --git a/tests/target/issue-3665/not_skip_attribute.rs b/src/tools/rustfmt/tests/target/issue-3665/not_skip_attribute.rs similarity index 100% rename from tests/target/issue-3665/not_skip_attribute.rs rename to src/tools/rustfmt/tests/target/issue-3665/not_skip_attribute.rs diff --git a/tests/target/issue-3665/sub_mod.rs b/src/tools/rustfmt/tests/target/issue-3665/sub_mod.rs similarity index 100% rename from tests/target/issue-3665/sub_mod.rs rename to src/tools/rustfmt/tests/target/issue-3665/sub_mod.rs diff --git a/tests/target/issue-3672.rs b/src/tools/rustfmt/tests/target/issue-3672.rs similarity index 100% rename from tests/target/issue-3672.rs rename to src/tools/rustfmt/tests/target/issue-3672.rs diff --git a/tests/target/issue-3675.rs b/src/tools/rustfmt/tests/target/issue-3675.rs similarity index 100% rename from tests/target/issue-3675.rs rename to src/tools/rustfmt/tests/target/issue-3675.rs diff --git a/tests/target/issue-3701/one.rs b/src/tools/rustfmt/tests/target/issue-3701/one.rs similarity index 100% rename from tests/target/issue-3701/one.rs rename to src/tools/rustfmt/tests/target/issue-3701/one.rs diff --git a/tests/target/issue-3701/two.rs b/src/tools/rustfmt/tests/target/issue-3701/two.rs similarity index 100% rename from tests/target/issue-3701/two.rs rename to src/tools/rustfmt/tests/target/issue-3701/two.rs diff --git a/tests/target/issue-3709.rs b/src/tools/rustfmt/tests/target/issue-3709.rs similarity index 100% rename from tests/target/issue-3709.rs rename to src/tools/rustfmt/tests/target/issue-3709.rs diff --git a/tests/target/issue-3711.rs b/src/tools/rustfmt/tests/target/issue-3711.rs similarity index 100% rename from tests/target/issue-3711.rs rename to src/tools/rustfmt/tests/target/issue-3711.rs diff --git a/tests/target/issue-3717.rs b/src/tools/rustfmt/tests/target/issue-3717.rs similarity index 100% rename from tests/target/issue-3717.rs rename to src/tools/rustfmt/tests/target/issue-3717.rs diff --git a/tests/target/issue-3718.rs b/src/tools/rustfmt/tests/target/issue-3718.rs similarity index 100% rename from tests/target/issue-3718.rs rename to src/tools/rustfmt/tests/target/issue-3718.rs diff --git a/tests/target/issue-3740.rs b/src/tools/rustfmt/tests/target/issue-3740.rs similarity index 100% rename from tests/target/issue-3740.rs rename to src/tools/rustfmt/tests/target/issue-3740.rs diff --git a/tests/target/issue-3741.rs b/src/tools/rustfmt/tests/target/issue-3741.rs similarity index 100% rename from tests/target/issue-3741.rs rename to src/tools/rustfmt/tests/target/issue-3741.rs diff --git a/tests/target/issue-3750.rs b/src/tools/rustfmt/tests/target/issue-3750.rs similarity index 100% rename from tests/target/issue-3750.rs rename to src/tools/rustfmt/tests/target/issue-3750.rs diff --git a/tests/target/issue-3751.rs b/src/tools/rustfmt/tests/target/issue-3751.rs similarity index 100% rename from tests/target/issue-3751.rs rename to src/tools/rustfmt/tests/target/issue-3751.rs diff --git a/tests/target/issue-3759.rs b/src/tools/rustfmt/tests/target/issue-3759.rs similarity index 100% rename from tests/target/issue-3759.rs rename to src/tools/rustfmt/tests/target/issue-3759.rs diff --git a/tests/target/issue-3779/ice.rs b/src/tools/rustfmt/tests/target/issue-3779/ice.rs similarity index 100% rename from tests/target/issue-3779/ice.rs rename to src/tools/rustfmt/tests/target/issue-3779/ice.rs diff --git a/tests/target/issue-3779/lib.rs b/src/tools/rustfmt/tests/target/issue-3779/lib.rs similarity index 100% rename from tests/target/issue-3779/lib.rs rename to src/tools/rustfmt/tests/target/issue-3779/lib.rs diff --git a/tests/target/issue-3786.rs b/src/tools/rustfmt/tests/target/issue-3786.rs similarity index 100% rename from tests/target/issue-3786.rs rename to src/tools/rustfmt/tests/target/issue-3786.rs diff --git a/tests/target/issue-3787.rs b/src/tools/rustfmt/tests/target/issue-3787.rs similarity index 100% rename from tests/target/issue-3787.rs rename to src/tools/rustfmt/tests/target/issue-3787.rs diff --git a/tests/target/issue-3805.rs b/src/tools/rustfmt/tests/target/issue-3805.rs similarity index 100% rename from tests/target/issue-3805.rs rename to src/tools/rustfmt/tests/target/issue-3805.rs diff --git a/tests/target/issue-3815.rs b/src/tools/rustfmt/tests/target/issue-3815.rs similarity index 100% rename from tests/target/issue-3815.rs rename to src/tools/rustfmt/tests/target/issue-3815.rs diff --git a/tests/target/issue-3840/version-one_hard-tabs.rs b/src/tools/rustfmt/tests/target/issue-3840/version-one_hard-tabs.rs similarity index 100% rename from tests/target/issue-3840/version-one_hard-tabs.rs rename to src/tools/rustfmt/tests/target/issue-3840/version-one_hard-tabs.rs diff --git a/tests/target/issue-3840/version-one_soft-tabs.rs b/src/tools/rustfmt/tests/target/issue-3840/version-one_soft-tabs.rs similarity index 100% rename from tests/target/issue-3840/version-one_soft-tabs.rs rename to src/tools/rustfmt/tests/target/issue-3840/version-one_soft-tabs.rs diff --git a/tests/target/issue-3840/version-two_hard-tabs.rs b/src/tools/rustfmt/tests/target/issue-3840/version-two_hard-tabs.rs similarity index 100% rename from tests/target/issue-3840/version-two_hard-tabs.rs rename to src/tools/rustfmt/tests/target/issue-3840/version-two_hard-tabs.rs diff --git a/tests/target/issue-3840/version-two_soft-tabs.rs b/src/tools/rustfmt/tests/target/issue-3840/version-two_soft-tabs.rs similarity index 100% rename from tests/target/issue-3840/version-two_soft-tabs.rs rename to src/tools/rustfmt/tests/target/issue-3840/version-two_soft-tabs.rs diff --git a/tests/target/issue-3845.rs b/src/tools/rustfmt/tests/target/issue-3845.rs similarity index 100% rename from tests/target/issue-3845.rs rename to src/tools/rustfmt/tests/target/issue-3845.rs diff --git a/tests/target/issue-3882.rs b/src/tools/rustfmt/tests/target/issue-3882.rs similarity index 100% rename from tests/target/issue-3882.rs rename to src/tools/rustfmt/tests/target/issue-3882.rs diff --git a/tests/target/issue-3974.rs b/src/tools/rustfmt/tests/target/issue-3974.rs similarity index 100% rename from tests/target/issue-3974.rs rename to src/tools/rustfmt/tests/target/issue-3974.rs diff --git a/tests/target/issue-3984.rs b/src/tools/rustfmt/tests/target/issue-3984.rs similarity index 100% rename from tests/target/issue-3984.rs rename to src/tools/rustfmt/tests/target/issue-3984.rs diff --git a/tests/target/issue-3987/format_macro_bodies_false.rs b/src/tools/rustfmt/tests/target/issue-3987/format_macro_bodies_false.rs similarity index 100% rename from tests/target/issue-3987/format_macro_bodies_false.rs rename to src/tools/rustfmt/tests/target/issue-3987/format_macro_bodies_false.rs diff --git a/tests/target/issue-3987/format_macro_bodies_true.rs b/src/tools/rustfmt/tests/target/issue-3987/format_macro_bodies_true.rs similarity index 100% rename from tests/target/issue-3987/format_macro_bodies_true.rs rename to src/tools/rustfmt/tests/target/issue-3987/format_macro_bodies_true.rs diff --git a/tests/target/issue-4018.rs b/src/tools/rustfmt/tests/target/issue-4018.rs similarity index 100% rename from tests/target/issue-4018.rs rename to src/tools/rustfmt/tests/target/issue-4018.rs diff --git a/tests/target/issue-4020.rs b/src/tools/rustfmt/tests/target/issue-4020.rs similarity index 100% rename from tests/target/issue-4020.rs rename to src/tools/rustfmt/tests/target/issue-4020.rs diff --git a/tests/target/issue-4029.rs b/src/tools/rustfmt/tests/target/issue-4029.rs similarity index 100% rename from tests/target/issue-4029.rs rename to src/tools/rustfmt/tests/target/issue-4029.rs diff --git a/tests/target/issue-4036/one.rs b/src/tools/rustfmt/tests/target/issue-4036/one.rs similarity index 100% rename from tests/target/issue-4036/one.rs rename to src/tools/rustfmt/tests/target/issue-4036/one.rs diff --git a/tests/target/issue-4036/three.rs b/src/tools/rustfmt/tests/target/issue-4036/three.rs similarity index 100% rename from tests/target/issue-4036/three.rs rename to src/tools/rustfmt/tests/target/issue-4036/three.rs diff --git a/tests/target/issue-4036/two.rs b/src/tools/rustfmt/tests/target/issue-4036/two.rs similarity index 100% rename from tests/target/issue-4036/two.rs rename to src/tools/rustfmt/tests/target/issue-4036/two.rs diff --git a/tests/target/issue-4041.rs b/src/tools/rustfmt/tests/target/issue-4041.rs similarity index 100% rename from tests/target/issue-4041.rs rename to src/tools/rustfmt/tests/target/issue-4041.rs diff --git a/tests/target/issue-4068.rs b/src/tools/rustfmt/tests/target/issue-4068.rs similarity index 100% rename from tests/target/issue-4068.rs rename to src/tools/rustfmt/tests/target/issue-4068.rs diff --git a/tests/target/issue-4079.rs b/src/tools/rustfmt/tests/target/issue-4079.rs similarity index 100% rename from tests/target/issue-4079.rs rename to src/tools/rustfmt/tests/target/issue-4079.rs diff --git a/tests/target/issue-4115.rs b/src/tools/rustfmt/tests/target/issue-4115.rs similarity index 100% rename from tests/target/issue-4115.rs rename to src/tools/rustfmt/tests/target/issue-4115.rs diff --git a/tests/target/issue-4120.rs b/src/tools/rustfmt/tests/target/issue-4120.rs similarity index 100% rename from tests/target/issue-4120.rs rename to src/tools/rustfmt/tests/target/issue-4120.rs diff --git a/tests/target/issue-4152.rs b/src/tools/rustfmt/tests/target/issue-4152.rs similarity index 100% rename from tests/target/issue-4152.rs rename to src/tools/rustfmt/tests/target/issue-4152.rs diff --git a/tests/target/issue-4159.rs b/src/tools/rustfmt/tests/target/issue-4159.rs similarity index 100% rename from tests/target/issue-4159.rs rename to src/tools/rustfmt/tests/target/issue-4159.rs diff --git a/tests/target/issue-4210-disabled.rs b/src/tools/rustfmt/tests/target/issue-4210-disabled.rs similarity index 100% rename from tests/target/issue-4210-disabled.rs rename to src/tools/rustfmt/tests/target/issue-4210-disabled.rs diff --git a/tests/target/issue-4210.rs b/src/tools/rustfmt/tests/target/issue-4210.rs similarity index 100% rename from tests/target/issue-4210.rs rename to src/tools/rustfmt/tests/target/issue-4210.rs diff --git a/tests/target/issue-4243.rs b/src/tools/rustfmt/tests/target/issue-4243.rs similarity index 100% rename from tests/target/issue-4243.rs rename to src/tools/rustfmt/tests/target/issue-4243.rs diff --git a/tests/target/issue-4244.rs b/src/tools/rustfmt/tests/target/issue-4244.rs similarity index 100% rename from tests/target/issue-4244.rs rename to src/tools/rustfmt/tests/target/issue-4244.rs diff --git a/tests/target/issue-4245.rs b/src/tools/rustfmt/tests/target/issue-4245.rs similarity index 100% rename from tests/target/issue-4245.rs rename to src/tools/rustfmt/tests/target/issue-4245.rs diff --git a/tests/target/issue-4310.rs b/src/tools/rustfmt/tests/target/issue-4310.rs similarity index 100% rename from tests/target/issue-4310.rs rename to src/tools/rustfmt/tests/target/issue-4310.rs diff --git a/tests/target/issue-4312.rs b/src/tools/rustfmt/tests/target/issue-4312.rs similarity index 100% rename from tests/target/issue-4312.rs rename to src/tools/rustfmt/tests/target/issue-4312.rs diff --git a/tests/target/issue-4313.rs b/src/tools/rustfmt/tests/target/issue-4313.rs similarity index 100% rename from tests/target/issue-4313.rs rename to src/tools/rustfmt/tests/target/issue-4313.rs diff --git a/tests/target/issue-4381/style_edition_2015.rs b/src/tools/rustfmt/tests/target/issue-4381/style_edition_2015.rs similarity index 100% rename from tests/target/issue-4381/style_edition_2015.rs rename to src/tools/rustfmt/tests/target/issue-4381/style_edition_2015.rs diff --git a/tests/target/issue-4381/style_edition_2024.rs b/src/tools/rustfmt/tests/target/issue-4381/style_edition_2024.rs similarity index 100% rename from tests/target/issue-4381/style_edition_2024.rs rename to src/tools/rustfmt/tests/target/issue-4381/style_edition_2024.rs diff --git a/tests/target/issue-4382.rs b/src/tools/rustfmt/tests/target/issue-4382.rs similarity index 100% rename from tests/target/issue-4382.rs rename to src/tools/rustfmt/tests/target/issue-4382.rs diff --git a/tests/target/issue-4398.rs b/src/tools/rustfmt/tests/target/issue-4398.rs similarity index 100% rename from tests/target/issue-4398.rs rename to src/tools/rustfmt/tests/target/issue-4398.rs diff --git a/tests/target/issue-4427.rs b/src/tools/rustfmt/tests/target/issue-4427.rs similarity index 100% rename from tests/target/issue-4427.rs rename to src/tools/rustfmt/tests/target/issue-4427.rs diff --git a/tests/target/issue-447.rs b/src/tools/rustfmt/tests/target/issue-447.rs similarity index 100% rename from tests/target/issue-447.rs rename to src/tools/rustfmt/tests/target/issue-447.rs diff --git a/tests/target/issue-4530.rs b/src/tools/rustfmt/tests/target/issue-4530.rs similarity index 100% rename from tests/target/issue-4530.rs rename to src/tools/rustfmt/tests/target/issue-4530.rs diff --git a/tests/target/issue-4577.rs b/src/tools/rustfmt/tests/target/issue-4577.rs similarity index 100% rename from tests/target/issue-4577.rs rename to src/tools/rustfmt/tests/target/issue-4577.rs diff --git a/tests/target/issue-4603.rs b/src/tools/rustfmt/tests/target/issue-4603.rs similarity index 100% rename from tests/target/issue-4603.rs rename to src/tools/rustfmt/tests/target/issue-4603.rs diff --git a/tests/target/issue-4615/minimum_example.rs b/src/tools/rustfmt/tests/target/issue-4615/minimum_example.rs similarity index 100% rename from tests/target/issue-4615/minimum_example.rs rename to src/tools/rustfmt/tests/target/issue-4615/minimum_example.rs diff --git a/tests/target/issue-4643.rs b/src/tools/rustfmt/tests/target/issue-4643.rs similarity index 100% rename from tests/target/issue-4643.rs rename to src/tools/rustfmt/tests/target/issue-4643.rs diff --git a/tests/target/issue-4646.rs b/src/tools/rustfmt/tests/target/issue-4646.rs similarity index 100% rename from tests/target/issue-4646.rs rename to src/tools/rustfmt/tests/target/issue-4646.rs diff --git a/tests/target/issue-4656/format_me_please.rs b/src/tools/rustfmt/tests/target/issue-4656/format_me_please.rs similarity index 100% rename from tests/target/issue-4656/format_me_please.rs rename to src/tools/rustfmt/tests/target/issue-4656/format_me_please.rs diff --git a/tests/target/issue-4656/lib.rs b/src/tools/rustfmt/tests/target/issue-4656/lib.rs similarity index 100% rename from tests/target/issue-4656/lib.rs rename to src/tools/rustfmt/tests/target/issue-4656/lib.rs diff --git a/tests/target/issue-4656/lib2.rs b/src/tools/rustfmt/tests/target/issue-4656/lib2.rs similarity index 100% rename from tests/target/issue-4656/lib2.rs rename to src/tools/rustfmt/tests/target/issue-4656/lib2.rs diff --git a/tests/target/issue-4689/one.rs b/src/tools/rustfmt/tests/target/issue-4689/one.rs similarity index 100% rename from tests/target/issue-4689/one.rs rename to src/tools/rustfmt/tests/target/issue-4689/one.rs diff --git a/tests/target/issue-4689/two.rs b/src/tools/rustfmt/tests/target/issue-4689/two.rs similarity index 100% rename from tests/target/issue-4689/two.rs rename to src/tools/rustfmt/tests/target/issue-4689/two.rs diff --git a/tests/target/issue-4791/buggy.rs b/src/tools/rustfmt/tests/target/issue-4791/buggy.rs similarity index 100% rename from tests/target/issue-4791/buggy.rs rename to src/tools/rustfmt/tests/target/issue-4791/buggy.rs diff --git a/tests/target/issue-4791/issue_4928.rs b/src/tools/rustfmt/tests/target/issue-4791/issue_4928.rs similarity index 100% rename from tests/target/issue-4791/issue_4928.rs rename to src/tools/rustfmt/tests/target/issue-4791/issue_4928.rs diff --git a/tests/target/issue-4791/no_trailing_comma.rs b/src/tools/rustfmt/tests/target/issue-4791/no_trailing_comma.rs similarity index 100% rename from tests/target/issue-4791/no_trailing_comma.rs rename to src/tools/rustfmt/tests/target/issue-4791/no_trailing_comma.rs diff --git a/tests/target/issue-4791/trailing_comma.rs b/src/tools/rustfmt/tests/target/issue-4791/trailing_comma.rs similarity index 100% rename from tests/target/issue-4791/trailing_comma.rs rename to src/tools/rustfmt/tests/target/issue-4791/trailing_comma.rs diff --git a/tests/target/issue-4808.rs b/src/tools/rustfmt/tests/target/issue-4808.rs similarity index 100% rename from tests/target/issue-4808.rs rename to src/tools/rustfmt/tests/target/issue-4808.rs diff --git a/tests/target/issue-4816/lib.rs b/src/tools/rustfmt/tests/target/issue-4816/lib.rs similarity index 100% rename from tests/target/issue-4816/lib.rs rename to src/tools/rustfmt/tests/target/issue-4816/lib.rs diff --git a/tests/target/issue-4908-2.rs b/src/tools/rustfmt/tests/target/issue-4908-2.rs similarity index 100% rename from tests/target/issue-4908-2.rs rename to src/tools/rustfmt/tests/target/issue-4908-2.rs diff --git a/tests/target/issue-4908.rs b/src/tools/rustfmt/tests/target/issue-4908.rs similarity index 100% rename from tests/target/issue-4908.rs rename to src/tools/rustfmt/tests/target/issue-4908.rs diff --git a/tests/target/issue-4926/deeply_nested_struct.rs b/src/tools/rustfmt/tests/target/issue-4926/deeply_nested_struct.rs similarity index 100% rename from tests/target/issue-4926/deeply_nested_struct.rs rename to src/tools/rustfmt/tests/target/issue-4926/deeply_nested_struct.rs diff --git a/tests/target/issue-4926/deeply_nested_struct_with_long_field_names.rs b/src/tools/rustfmt/tests/target/issue-4926/deeply_nested_struct_with_long_field_names.rs similarity index 100% rename from tests/target/issue-4926/deeply_nested_struct_with_long_field_names.rs rename to src/tools/rustfmt/tests/target/issue-4926/deeply_nested_struct_with_long_field_names.rs diff --git a/tests/target/issue-4926/deeply_nested_struct_with_many_fields.rs b/src/tools/rustfmt/tests/target/issue-4926/deeply_nested_struct_with_many_fields.rs similarity index 100% rename from tests/target/issue-4926/deeply_nested_struct_with_many_fields.rs rename to src/tools/rustfmt/tests/target/issue-4926/deeply_nested_struct_with_many_fields.rs diff --git a/tests/target/issue-4926/enum_struct_field.rs b/src/tools/rustfmt/tests/target/issue-4926/enum_struct_field.rs similarity index 100% rename from tests/target/issue-4926/enum_struct_field.rs rename to src/tools/rustfmt/tests/target/issue-4926/enum_struct_field.rs diff --git a/tests/target/issue-4926/minimum_example.rs b/src/tools/rustfmt/tests/target/issue-4926/minimum_example.rs similarity index 100% rename from tests/target/issue-4926/minimum_example.rs rename to src/tools/rustfmt/tests/target/issue-4926/minimum_example.rs diff --git a/tests/target/issue-4926/struct_with_long_field_names.rs b/src/tools/rustfmt/tests/target/issue-4926/struct_with_long_field_names.rs similarity index 100% rename from tests/target/issue-4926/struct_with_long_field_names.rs rename to src/tools/rustfmt/tests/target/issue-4926/struct_with_long_field_names.rs diff --git a/tests/target/issue-4926/struct_with_many_fields.rs b/src/tools/rustfmt/tests/target/issue-4926/struct_with_many_fields.rs similarity index 100% rename from tests/target/issue-4926/struct_with_many_fields.rs rename to src/tools/rustfmt/tests/target/issue-4926/struct_with_many_fields.rs diff --git a/tests/target/issue-4984/minimum_example.rs b/src/tools/rustfmt/tests/target/issue-4984/minimum_example.rs similarity index 100% rename from tests/target/issue-4984/minimum_example.rs rename to src/tools/rustfmt/tests/target/issue-4984/minimum_example.rs diff --git a/tests/target/issue-4984/multi_line_derive.rs b/src/tools/rustfmt/tests/target/issue-4984/multi_line_derive.rs similarity index 100% rename from tests/target/issue-4984/multi_line_derive.rs rename to src/tools/rustfmt/tests/target/issue-4984/multi_line_derive.rs diff --git a/tests/target/issue-4984/multiple_comments_within.rs b/src/tools/rustfmt/tests/target/issue-4984/multiple_comments_within.rs similarity index 100% rename from tests/target/issue-4984/multiple_comments_within.rs rename to src/tools/rustfmt/tests/target/issue-4984/multiple_comments_within.rs diff --git a/tests/target/issue-4984/should_not_change.rs b/src/tools/rustfmt/tests/target/issue-4984/should_not_change.rs similarity index 100% rename from tests/target/issue-4984/should_not_change.rs rename to src/tools/rustfmt/tests/target/issue-4984/should_not_change.rs diff --git a/tests/target/issue-5005/minimum_example.rs b/src/tools/rustfmt/tests/target/issue-5005/minimum_example.rs similarity index 100% rename from tests/target/issue-5005/minimum_example.rs rename to src/tools/rustfmt/tests/target/issue-5005/minimum_example.rs diff --git a/tests/target/issue-5009/1_minimum_example.rs b/src/tools/rustfmt/tests/target/issue-5009/1_minimum_example.rs similarity index 100% rename from tests/target/issue-5009/1_minimum_example.rs rename to src/tools/rustfmt/tests/target/issue-5009/1_minimum_example.rs diff --git a/tests/target/issue-5009/2_many_in_connectors_in_pattern.rs b/src/tools/rustfmt/tests/target/issue-5009/2_many_in_connectors_in_pattern.rs similarity index 100% rename from tests/target/issue-5009/2_many_in_connectors_in_pattern.rs rename to src/tools/rustfmt/tests/target/issue-5009/2_many_in_connectors_in_pattern.rs diff --git a/tests/target/issue-5009/3_nested_for_loop_with_connector_in_pattern.rs b/src/tools/rustfmt/tests/target/issue-5009/3_nested_for_loop_with_connector_in_pattern.rs similarity index 100% rename from tests/target/issue-5009/3_nested_for_loop_with_connector_in_pattern.rs rename to src/tools/rustfmt/tests/target/issue-5009/3_nested_for_loop_with_connector_in_pattern.rs diff --git a/tests/target/issue-5009/4_nested_for_loop_with_if_elseif_else.rs b/src/tools/rustfmt/tests/target/issue-5009/4_nested_for_loop_with_if_elseif_else.rs similarity index 100% rename from tests/target/issue-5009/4_nested_for_loop_with_if_elseif_else.rs rename to src/tools/rustfmt/tests/target/issue-5009/4_nested_for_loop_with_if_elseif_else.rs diff --git a/tests/target/issue-5009/5_nested_for_loop_with_connector_in_if_elseif_else.rs b/src/tools/rustfmt/tests/target/issue-5009/5_nested_for_loop_with_connector_in_if_elseif_else.rs similarity index 100% rename from tests/target/issue-5009/5_nested_for_loop_with_connector_in_if_elseif_else.rs rename to src/tools/rustfmt/tests/target/issue-5009/5_nested_for_loop_with_connector_in_if_elseif_else.rs diff --git a/tests/target/issue-5009/6_deeply_nested_for_loop_with_connector_in_pattern.rs b/src/tools/rustfmt/tests/target/issue-5009/6_deeply_nested_for_loop_with_connector_in_pattern.rs similarity index 100% rename from tests/target/issue-5009/6_deeply_nested_for_loop_with_connector_in_pattern.rs rename to src/tools/rustfmt/tests/target/issue-5009/6_deeply_nested_for_loop_with_connector_in_pattern.rs diff --git a/tests/target/issue-5011.rs b/src/tools/rustfmt/tests/target/issue-5011.rs similarity index 100% rename from tests/target/issue-5011.rs rename to src/tools/rustfmt/tests/target/issue-5011.rs diff --git a/tests/target/issue-5012/trailing_comma_always.rs b/src/tools/rustfmt/tests/target/issue-5012/trailing_comma_always.rs similarity index 100% rename from tests/target/issue-5012/trailing_comma_always.rs rename to src/tools/rustfmt/tests/target/issue-5012/trailing_comma_always.rs diff --git a/tests/target/issue-5012/trailing_comma_never.rs b/src/tools/rustfmt/tests/target/issue-5012/trailing_comma_never.rs similarity index 100% rename from tests/target/issue-5012/trailing_comma_never.rs rename to src/tools/rustfmt/tests/target/issue-5012/trailing_comma_never.rs diff --git a/tests/target/issue-5023.rs b/src/tools/rustfmt/tests/target/issue-5023.rs similarity index 100% rename from tests/target/issue-5023.rs rename to src/tools/rustfmt/tests/target/issue-5023.rs diff --git a/tests/target/issue-5030.rs b/src/tools/rustfmt/tests/target/issue-5030.rs similarity index 100% rename from tests/target/issue-5030.rs rename to src/tools/rustfmt/tests/target/issue-5030.rs diff --git a/tests/target/issue-5033/minimum_example.rs b/src/tools/rustfmt/tests/target/issue-5033/minimum_example.rs similarity index 100% rename from tests/target/issue-5033/minimum_example.rs rename to src/tools/rustfmt/tests/target/issue-5033/minimum_example.rs diff --git a/tests/target/issue-5033/nested_modules.rs b/src/tools/rustfmt/tests/target/issue-5033/nested_modules.rs similarity index 100% rename from tests/target/issue-5033/nested_modules.rs rename to src/tools/rustfmt/tests/target/issue-5033/nested_modules.rs diff --git a/tests/target/issue-5042/multi-line_comment_with_trailing_comma.rs b/src/tools/rustfmt/tests/target/issue-5042/multi-line_comment_with_trailing_comma.rs similarity index 100% rename from tests/target/issue-5042/multi-line_comment_with_trailing_comma.rs rename to src/tools/rustfmt/tests/target/issue-5042/multi-line_comment_with_trailing_comma.rs diff --git a/tests/target/issue-5042/multi-line_comment_without_trailing_comma.rs b/src/tools/rustfmt/tests/target/issue-5042/multi-line_comment_without_trailing_comma.rs similarity index 100% rename from tests/target/issue-5042/multi-line_comment_without_trailing_comma.rs rename to src/tools/rustfmt/tests/target/issue-5042/multi-line_comment_without_trailing_comma.rs diff --git a/tests/target/issue-5042/single-line_comment_with_trailing_comma.rs b/src/tools/rustfmt/tests/target/issue-5042/single-line_comment_with_trailing_comma.rs similarity index 100% rename from tests/target/issue-5042/single-line_comment_with_trailing_comma.rs rename to src/tools/rustfmt/tests/target/issue-5042/single-line_comment_with_trailing_comma.rs diff --git a/tests/target/issue-5042/single-line_comment_without_trailing_comma.rs b/src/tools/rustfmt/tests/target/issue-5042/single-line_comment_without_trailing_comma.rs similarity index 100% rename from tests/target/issue-5042/single-line_comment_without_trailing_comma.rs rename to src/tools/rustfmt/tests/target/issue-5042/single-line_comment_without_trailing_comma.rs diff --git a/tests/target/issue-5066/multi_line_struct_trailing_comma_always_struct_lit_width_0.rs b/src/tools/rustfmt/tests/target/issue-5066/multi_line_struct_trailing_comma_always_struct_lit_width_0.rs similarity index 100% rename from tests/target/issue-5066/multi_line_struct_trailing_comma_always_struct_lit_width_0.rs rename to src/tools/rustfmt/tests/target/issue-5066/multi_line_struct_trailing_comma_always_struct_lit_width_0.rs diff --git a/tests/target/issue-5066/multi_line_struct_trailing_comma_never_struct_lit_width_0.rs b/src/tools/rustfmt/tests/target/issue-5066/multi_line_struct_trailing_comma_never_struct_lit_width_0.rs similarity index 100% rename from tests/target/issue-5066/multi_line_struct_trailing_comma_never_struct_lit_width_0.rs rename to src/tools/rustfmt/tests/target/issue-5066/multi_line_struct_trailing_comma_never_struct_lit_width_0.rs diff --git a/tests/target/issue-5066/multi_line_struct_with_trailing_comma_always.rs b/src/tools/rustfmt/tests/target/issue-5066/multi_line_struct_with_trailing_comma_always.rs similarity index 100% rename from tests/target/issue-5066/multi_line_struct_with_trailing_comma_always.rs rename to src/tools/rustfmt/tests/target/issue-5066/multi_line_struct_with_trailing_comma_always.rs diff --git a/tests/target/issue-5066/multi_line_struct_with_trailing_comma_never.rs b/src/tools/rustfmt/tests/target/issue-5066/multi_line_struct_with_trailing_comma_never.rs similarity index 100% rename from tests/target/issue-5066/multi_line_struct_with_trailing_comma_never.rs rename to src/tools/rustfmt/tests/target/issue-5066/multi_line_struct_with_trailing_comma_never.rs diff --git a/tests/target/issue-5066/with_trailing_comma_always.rs b/src/tools/rustfmt/tests/target/issue-5066/with_trailing_comma_always.rs similarity index 100% rename from tests/target/issue-5066/with_trailing_comma_always.rs rename to src/tools/rustfmt/tests/target/issue-5066/with_trailing_comma_always.rs diff --git a/tests/target/issue-5066/with_trailing_comma_never.rs b/src/tools/rustfmt/tests/target/issue-5066/with_trailing_comma_never.rs similarity index 100% rename from tests/target/issue-5066/with_trailing_comma_never.rs rename to src/tools/rustfmt/tests/target/issue-5066/with_trailing_comma_never.rs diff --git a/tests/target/issue-5088/deeply_nested_long_comment_wrap_comments_false.rs b/src/tools/rustfmt/tests/target/issue-5088/deeply_nested_long_comment_wrap_comments_false.rs similarity index 100% rename from tests/target/issue-5088/deeply_nested_long_comment_wrap_comments_false.rs rename to src/tools/rustfmt/tests/target/issue-5088/deeply_nested_long_comment_wrap_comments_false.rs diff --git a/tests/target/issue-5088/deeply_nested_long_comment_wrap_comments_true.rs b/src/tools/rustfmt/tests/target/issue-5088/deeply_nested_long_comment_wrap_comments_true.rs similarity index 100% rename from tests/target/issue-5088/deeply_nested_long_comment_wrap_comments_true.rs rename to src/tools/rustfmt/tests/target/issue-5088/deeply_nested_long_comment_wrap_comments_true.rs diff --git a/tests/target/issue-5088/multi_line_itemized_block_wrap_comments_false.rs b/src/tools/rustfmt/tests/target/issue-5088/multi_line_itemized_block_wrap_comments_false.rs similarity index 100% rename from tests/target/issue-5088/multi_line_itemized_block_wrap_comments_false.rs rename to src/tools/rustfmt/tests/target/issue-5088/multi_line_itemized_block_wrap_comments_false.rs diff --git a/tests/target/issue-5088/multi_line_itemized_block_wrap_comments_true.rs b/src/tools/rustfmt/tests/target/issue-5088/multi_line_itemized_block_wrap_comments_true.rs similarity index 100% rename from tests/target/issue-5088/multi_line_itemized_block_wrap_comments_true.rs rename to src/tools/rustfmt/tests/target/issue-5088/multi_line_itemized_block_wrap_comments_true.rs diff --git a/tests/target/issue-5088/multi_line_text_with_itemized_block_wrap_comments_false.rs b/src/tools/rustfmt/tests/target/issue-5088/multi_line_text_with_itemized_block_wrap_comments_false.rs similarity index 100% rename from tests/target/issue-5088/multi_line_text_with_itemized_block_wrap_comments_false.rs rename to src/tools/rustfmt/tests/target/issue-5088/multi_line_text_with_itemized_block_wrap_comments_false.rs diff --git a/tests/target/issue-5088/multi_line_text_with_itemized_block_wrap_comments_true.rs b/src/tools/rustfmt/tests/target/issue-5088/multi_line_text_with_itemized_block_wrap_comments_true.rs similarity index 100% rename from tests/target/issue-5088/multi_line_text_with_itemized_block_wrap_comments_true.rs rename to src/tools/rustfmt/tests/target/issue-5088/multi_line_text_with_itemized_block_wrap_comments_true.rs diff --git a/tests/target/issue-5088/single_line_itemized_block_wrap_comments_false.rs b/src/tools/rustfmt/tests/target/issue-5088/single_line_itemized_block_wrap_comments_false.rs similarity index 100% rename from tests/target/issue-5088/single_line_itemized_block_wrap_comments_false.rs rename to src/tools/rustfmt/tests/target/issue-5088/single_line_itemized_block_wrap_comments_false.rs diff --git a/tests/target/issue-5088/single_line_itemized_block_wrap_comments_true.rs b/src/tools/rustfmt/tests/target/issue-5088/single_line_itemized_block_wrap_comments_true.rs similarity index 100% rename from tests/target/issue-5088/single_line_itemized_block_wrap_comments_true.rs rename to src/tools/rustfmt/tests/target/issue-5088/single_line_itemized_block_wrap_comments_true.rs diff --git a/tests/target/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_false.rs b/src/tools/rustfmt/tests/target/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_false.rs similarity index 100% rename from tests/target/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_false.rs rename to src/tools/rustfmt/tests/target/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_false.rs diff --git a/tests/target/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_true.rs b/src/tools/rustfmt/tests/target/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_true.rs similarity index 100% rename from tests/target/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_true.rs rename to src/tools/rustfmt/tests/target/issue-5088/start_with_empty_comment_very_long_itemized_block_wrap_comments_true.rs diff --git a/tests/target/issue-5088/start_with_empty_comment_wrap_comments_false.rs b/src/tools/rustfmt/tests/target/issue-5088/start_with_empty_comment_wrap_comments_false.rs similarity index 100% rename from tests/target/issue-5088/start_with_empty_comment_wrap_comments_false.rs rename to src/tools/rustfmt/tests/target/issue-5088/start_with_empty_comment_wrap_comments_false.rs diff --git a/tests/target/issue-5088/start_with_empty_comment_wrap_comments_true.rs b/src/tools/rustfmt/tests/target/issue-5088/start_with_empty_comment_wrap_comments_true.rs similarity index 100% rename from tests/target/issue-5088/start_with_empty_comment_wrap_comments_true.rs rename to src/tools/rustfmt/tests/target/issue-5088/start_with_empty_comment_wrap_comments_true.rs diff --git a/tests/target/issue-5088/very_long_comment_wrap_comments_false.rs b/src/tools/rustfmt/tests/target/issue-5088/very_long_comment_wrap_comments_false.rs similarity index 100% rename from tests/target/issue-5088/very_long_comment_wrap_comments_false.rs rename to src/tools/rustfmt/tests/target/issue-5088/very_long_comment_wrap_comments_false.rs diff --git a/tests/target/issue-5088/very_long_comment_wrap_comments_true.rs b/src/tools/rustfmt/tests/target/issue-5088/very_long_comment_wrap_comments_true.rs similarity index 100% rename from tests/target/issue-5088/very_long_comment_wrap_comments_true.rs rename to src/tools/rustfmt/tests/target/issue-5088/very_long_comment_wrap_comments_true.rs diff --git a/tests/target/issue-5095.rs b/src/tools/rustfmt/tests/target/issue-5095.rs similarity index 100% rename from tests/target/issue-5095.rs rename to src/tools/rustfmt/tests/target/issue-5095.rs diff --git a/tests/target/issue-510.rs b/src/tools/rustfmt/tests/target/issue-510.rs similarity index 100% rename from tests/target/issue-510.rs rename to src/tools/rustfmt/tests/target/issue-510.rs diff --git a/tests/target/issue-5125/attributes_in_formal_fuction_parameter.rs b/src/tools/rustfmt/tests/target/issue-5125/attributes_in_formal_fuction_parameter.rs similarity index 100% rename from tests/target/issue-5125/attributes_in_formal_fuction_parameter.rs rename to src/tools/rustfmt/tests/target/issue-5125/attributes_in_formal_fuction_parameter.rs diff --git a/tests/target/issue-5125/long_parameter_in_different_positions.rs b/src/tools/rustfmt/tests/target/issue-5125/long_parameter_in_different_positions.rs similarity index 100% rename from tests/target/issue-5125/long_parameter_in_different_positions.rs rename to src/tools/rustfmt/tests/target/issue-5125/long_parameter_in_different_positions.rs diff --git a/tests/target/issue-5125/minimum_example.rs b/src/tools/rustfmt/tests/target/issue-5125/minimum_example.rs similarity index 100% rename from tests/target/issue-5125/minimum_example.rs rename to src/tools/rustfmt/tests/target/issue-5125/minimum_example.rs diff --git a/tests/target/issue-5125/with_leading_and_inline_comments.rs b/src/tools/rustfmt/tests/target/issue-5125/with_leading_and_inline_comments.rs similarity index 100% rename from tests/target/issue-5125/with_leading_and_inline_comments.rs rename to src/tools/rustfmt/tests/target/issue-5125/with_leading_and_inline_comments.rs diff --git a/tests/target/issue-5136-1.rs b/src/tools/rustfmt/tests/target/issue-5136-1.rs similarity index 100% rename from tests/target/issue-5136-1.rs rename to src/tools/rustfmt/tests/target/issue-5136-1.rs diff --git a/tests/target/issue-5136-2.rs b/src/tools/rustfmt/tests/target/issue-5136-2.rs similarity index 100% rename from tests/target/issue-5136-2.rs rename to src/tools/rustfmt/tests/target/issue-5136-2.rs diff --git a/tests/target/issue-5136-3.rs b/src/tools/rustfmt/tests/target/issue-5136-3.rs similarity index 100% rename from tests/target/issue-5136-3.rs rename to src/tools/rustfmt/tests/target/issue-5136-3.rs diff --git a/tests/target/issue-5136-4.rs b/src/tools/rustfmt/tests/target/issue-5136-4.rs similarity index 100% rename from tests/target/issue-5136-4.rs rename to src/tools/rustfmt/tests/target/issue-5136-4.rs diff --git a/tests/target/issue-5136-5.rs b/src/tools/rustfmt/tests/target/issue-5136-5.rs similarity index 100% rename from tests/target/issue-5136-5.rs rename to src/tools/rustfmt/tests/target/issue-5136-5.rs diff --git a/tests/target/issue-5151/minimum_example.rs b/src/tools/rustfmt/tests/target/issue-5151/minimum_example.rs similarity index 100% rename from tests/target/issue-5151/minimum_example.rs rename to src/tools/rustfmt/tests/target/issue-5151/minimum_example.rs diff --git a/tests/target/issue-5157/indented_itemized_markdown_blockquote.rs b/src/tools/rustfmt/tests/target/issue-5157/indented_itemized_markdown_blockquote.rs similarity index 100% rename from tests/target/issue-5157/indented_itemized_markdown_blockquote.rs rename to src/tools/rustfmt/tests/target/issue-5157/indented_itemized_markdown_blockquote.rs diff --git a/tests/target/issue-5157/nested_itemized_markdown_blockquote.rs b/src/tools/rustfmt/tests/target/issue-5157/nested_itemized_markdown_blockquote.rs similarity index 100% rename from tests/target/issue-5157/nested_itemized_markdown_blockquote.rs rename to src/tools/rustfmt/tests/target/issue-5157/nested_itemized_markdown_blockquote.rs diff --git a/tests/target/issue-5157/support_itemized_markdown_blockquote.rs b/src/tools/rustfmt/tests/target/issue-5157/support_itemized_markdown_blockquote.rs similarity index 100% rename from tests/target/issue-5157/support_itemized_markdown_blockquote.rs rename to src/tools/rustfmt/tests/target/issue-5157/support_itemized_markdown_blockquote.rs diff --git a/tests/target/issue-5234.rs b/src/tools/rustfmt/tests/target/issue-5234.rs similarity index 100% rename from tests/target/issue-5234.rs rename to src/tools/rustfmt/tests/target/issue-5234.rs diff --git a/tests/target/issue-5238/markdown_header_wrap_comments_false.rs b/src/tools/rustfmt/tests/target/issue-5238/markdown_header_wrap_comments_false.rs similarity index 100% rename from tests/target/issue-5238/markdown_header_wrap_comments_false.rs rename to src/tools/rustfmt/tests/target/issue-5238/markdown_header_wrap_comments_false.rs diff --git a/tests/target/issue-5238/markdown_header_wrap_comments_true.rs b/src/tools/rustfmt/tests/target/issue-5238/markdown_header_wrap_comments_true.rs similarity index 100% rename from tests/target/issue-5238/markdown_header_wrap_comments_true.rs rename to src/tools/rustfmt/tests/target/issue-5238/markdown_header_wrap_comments_true.rs diff --git a/tests/target/issue-5244/unwrapped.rs b/src/tools/rustfmt/tests/target/issue-5244/unwrapped.rs similarity index 100% rename from tests/target/issue-5244/unwrapped.rs rename to src/tools/rustfmt/tests/target/issue-5244/unwrapped.rs diff --git a/tests/target/issue-5244/wrapped.rs b/src/tools/rustfmt/tests/target/issue-5244/wrapped.rs similarity index 100% rename from tests/target/issue-5244/wrapped.rs rename to src/tools/rustfmt/tests/target/issue-5244/wrapped.rs diff --git a/tests/target/issue-5260.rs b/src/tools/rustfmt/tests/target/issue-5260.rs similarity index 100% rename from tests/target/issue-5260.rs rename to src/tools/rustfmt/tests/target/issue-5260.rs diff --git a/tests/target/issue-5270/merge_derives_false.rs b/src/tools/rustfmt/tests/target/issue-5270/merge_derives_false.rs similarity index 100% rename from tests/target/issue-5270/merge_derives_false.rs rename to src/tools/rustfmt/tests/target/issue-5270/merge_derives_false.rs diff --git a/tests/target/issue-5270/merge_derives_true.rs b/src/tools/rustfmt/tests/target/issue-5270/merge_derives_true.rs similarity index 100% rename from tests/target/issue-5270/merge_derives_true.rs rename to src/tools/rustfmt/tests/target/issue-5270/merge_derives_true.rs diff --git a/tests/target/issue-5358.rs b/src/tools/rustfmt/tests/target/issue-5358.rs similarity index 100% rename from tests/target/issue-5358.rs rename to src/tools/rustfmt/tests/target/issue-5358.rs diff --git a/tests/target/issue-539.rs b/src/tools/rustfmt/tests/target/issue-539.rs similarity index 100% rename from tests/target/issue-539.rs rename to src/tools/rustfmt/tests/target/issue-539.rs diff --git a/tests/target/issue-5488.rs b/src/tools/rustfmt/tests/target/issue-5488.rs similarity index 100% rename from tests/target/issue-5488.rs rename to src/tools/rustfmt/tests/target/issue-5488.rs diff --git a/tests/target/issue-5568.rs b/src/tools/rustfmt/tests/target/issue-5568.rs similarity index 100% rename from tests/target/issue-5568.rs rename to src/tools/rustfmt/tests/target/issue-5568.rs diff --git a/tests/target/issue-5586.rs b/src/tools/rustfmt/tests/target/issue-5586.rs similarity index 100% rename from tests/target/issue-5586.rs rename to src/tools/rustfmt/tests/target/issue-5586.rs diff --git a/tests/target/issue-5655/one.rs b/src/tools/rustfmt/tests/target/issue-5655/one.rs similarity index 100% rename from tests/target/issue-5655/one.rs rename to src/tools/rustfmt/tests/target/issue-5655/one.rs diff --git a/tests/target/issue-5655/two.rs b/src/tools/rustfmt/tests/target/issue-5655/two.rs similarity index 100% rename from tests/target/issue-5655/two.rs rename to src/tools/rustfmt/tests/target/issue-5655/two.rs diff --git a/tests/target/issue-5791.rs b/src/tools/rustfmt/tests/target/issue-5791.rs similarity index 100% rename from tests/target/issue-5791.rs rename to src/tools/rustfmt/tests/target/issue-5791.rs diff --git a/tests/target/issue-5797/retain_trailing_semicolon.rs b/src/tools/rustfmt/tests/target/issue-5797/retain_trailing_semicolon.rs similarity index 100% rename from tests/target/issue-5797/retain_trailing_semicolon.rs rename to src/tools/rustfmt/tests/target/issue-5797/retain_trailing_semicolon.rs diff --git a/tests/target/issue-5801/attribute_does_not_wrap_within_max_width.rs b/src/tools/rustfmt/tests/target/issue-5801/attribute_does_not_wrap_within_max_width.rs similarity index 100% rename from tests/target/issue-5801/attribute_does_not_wrap_within_max_width.rs rename to src/tools/rustfmt/tests/target/issue-5801/attribute_does_not_wrap_within_max_width.rs diff --git a/tests/target/issue-5801/attribute_unexpectedly_wraps_before_max_width.rs b/src/tools/rustfmt/tests/target/issue-5801/attribute_unexpectedly_wraps_before_max_width.rs similarity index 100% rename from tests/target/issue-5801/attribute_unexpectedly_wraps_before_max_width.rs rename to src/tools/rustfmt/tests/target/issue-5801/attribute_unexpectedly_wraps_before_max_width.rs diff --git a/tests/target/issue-5801/comment_does_not_wrap_within_max_width.rs b/src/tools/rustfmt/tests/target/issue-5801/comment_does_not_wrap_within_max_width.rs similarity index 100% rename from tests/target/issue-5801/comment_does_not_wrap_within_max_width.rs rename to src/tools/rustfmt/tests/target/issue-5801/comment_does_not_wrap_within_max_width.rs diff --git a/tests/target/issue-5801/comment_unexpectedly_wraps_before_max_width.rs b/src/tools/rustfmt/tests/target/issue-5801/comment_unexpectedly_wraps_before_max_width.rs similarity index 100% rename from tests/target/issue-5801/comment_unexpectedly_wraps_before_max_width.rs rename to src/tools/rustfmt/tests/target/issue-5801/comment_unexpectedly_wraps_before_max_width.rs diff --git a/tests/target/issue-5835.rs b/src/tools/rustfmt/tests/target/issue-5835.rs similarity index 100% rename from tests/target/issue-5835.rs rename to src/tools/rustfmt/tests/target/issue-5835.rs diff --git a/tests/target/issue-5852/default.rs b/src/tools/rustfmt/tests/target/issue-5852/default.rs similarity index 100% rename from tests/target/issue-5852/default.rs rename to src/tools/rustfmt/tests/target/issue-5852/default.rs diff --git a/tests/target/issue-5852/horizontal.rs b/src/tools/rustfmt/tests/target/issue-5852/horizontal.rs similarity index 100% rename from tests/target/issue-5852/horizontal.rs rename to src/tools/rustfmt/tests/target/issue-5852/horizontal.rs diff --git a/tests/target/issue-5852/horizontal_vertical.rs b/src/tools/rustfmt/tests/target/issue-5852/horizontal_vertical.rs similarity index 100% rename from tests/target/issue-5852/horizontal_vertical.rs rename to src/tools/rustfmt/tests/target/issue-5852/horizontal_vertical.rs diff --git a/tests/target/issue-5852/issue_example.rs b/src/tools/rustfmt/tests/target/issue-5852/issue_example.rs similarity index 100% rename from tests/target/issue-5852/issue_example.rs rename to src/tools/rustfmt/tests/target/issue-5852/issue_example.rs diff --git a/tests/target/issue-5852/split.rs b/src/tools/rustfmt/tests/target/issue-5852/split.rs similarity index 100% rename from tests/target/issue-5852/split.rs rename to src/tools/rustfmt/tests/target/issue-5852/split.rs diff --git a/tests/target/issue-5852/vertical.rs b/src/tools/rustfmt/tests/target/issue-5852/vertical.rs similarity index 100% rename from tests/target/issue-5852/vertical.rs rename to src/tools/rustfmt/tests/target/issue-5852/vertical.rs diff --git a/tests/target/issue-5871.rs b/src/tools/rustfmt/tests/target/issue-5871.rs similarity index 100% rename from tests/target/issue-5871.rs rename to src/tools/rustfmt/tests/target/issue-5871.rs diff --git a/tests/target/issue-5885.rs b/src/tools/rustfmt/tests/target/issue-5885.rs similarity index 100% rename from tests/target/issue-5885.rs rename to src/tools/rustfmt/tests/target/issue-5885.rs diff --git a/tests/target/issue-5935.rs b/src/tools/rustfmt/tests/target/issue-5935.rs similarity index 100% rename from tests/target/issue-5935.rs rename to src/tools/rustfmt/tests/target/issue-5935.rs diff --git a/tests/target/issue-5987/one.rs b/src/tools/rustfmt/tests/target/issue-5987/one.rs similarity index 100% rename from tests/target/issue-5987/one.rs rename to src/tools/rustfmt/tests/target/issue-5987/one.rs diff --git a/tests/target/issue-5987/two.rs b/src/tools/rustfmt/tests/target/issue-5987/two.rs similarity index 100% rename from tests/target/issue-5987/two.rs rename to src/tools/rustfmt/tests/target/issue-5987/two.rs diff --git a/tests/target/issue-6059/additional.rs b/src/tools/rustfmt/tests/target/issue-6059/additional.rs similarity index 100% rename from tests/target/issue-6059/additional.rs rename to src/tools/rustfmt/tests/target/issue-6059/additional.rs diff --git a/tests/target/issue-6059/repro.rs b/src/tools/rustfmt/tests/target/issue-6059/repro.rs similarity index 100% rename from tests/target/issue-6059/repro.rs rename to src/tools/rustfmt/tests/target/issue-6059/repro.rs diff --git a/tests/target/issue-6105.rs b/src/tools/rustfmt/tests/target/issue-6105.rs similarity index 100% rename from tests/target/issue-6105.rs rename to src/tools/rustfmt/tests/target/issue-6105.rs diff --git a/tests/target/issue-6109.rs b/src/tools/rustfmt/tests/target/issue-6109.rs similarity index 100% rename from tests/target/issue-6109.rs rename to src/tools/rustfmt/tests/target/issue-6109.rs diff --git a/tests/target/issue-6147/case_rustfmt_v1.rs b/src/tools/rustfmt/tests/target/issue-6147/case_rustfmt_v1.rs similarity index 100% rename from tests/target/issue-6147/case_rustfmt_v1.rs rename to src/tools/rustfmt/tests/target/issue-6147/case_rustfmt_v1.rs diff --git a/tests/target/issue-6147/case_rustfmt_v2.rs b/src/tools/rustfmt/tests/target/issue-6147/case_rustfmt_v2.rs similarity index 100% rename from tests/target/issue-6147/case_rustfmt_v2.rs rename to src/tools/rustfmt/tests/target/issue-6147/case_rustfmt_v2.rs diff --git a/tests/target/issue-6202/long_pat.rs b/src/tools/rustfmt/tests/target/issue-6202/long_pat.rs similarity index 100% rename from tests/target/issue-6202/long_pat.rs rename to src/tools/rustfmt/tests/target/issue-6202/long_pat.rs diff --git a/tests/target/issue-6243.rs b/src/tools/rustfmt/tests/target/issue-6243.rs similarity index 100% rename from tests/target/issue-6243.rs rename to src/tools/rustfmt/tests/target/issue-6243.rs diff --git a/tests/target/issue-6333-2024.rs b/src/tools/rustfmt/tests/target/issue-6333-2024.rs similarity index 100% rename from tests/target/issue-6333-2024.rs rename to src/tools/rustfmt/tests/target/issue-6333-2024.rs diff --git a/tests/target/issue-6333.rs b/src/tools/rustfmt/tests/target/issue-6333.rs similarity index 100% rename from tests/target/issue-6333.rs rename to src/tools/rustfmt/tests/target/issue-6333.rs diff --git a/tests/target/issue-64.rs b/src/tools/rustfmt/tests/target/issue-64.rs similarity index 100% rename from tests/target/issue-64.rs rename to src/tools/rustfmt/tests/target/issue-64.rs diff --git a/tests/target/issue-6411.rs b/src/tools/rustfmt/tests/target/issue-6411.rs similarity index 100% rename from tests/target/issue-6411.rs rename to src/tools/rustfmt/tests/target/issue-6411.rs diff --git a/tests/target/issue-6561/trait-fn.rs b/src/tools/rustfmt/tests/target/issue-6561/trait-fn.rs similarity index 100% rename from tests/target/issue-6561/trait-fn.rs rename to src/tools/rustfmt/tests/target/issue-6561/trait-fn.rs diff --git a/tests/target/issue-6561/variadic.rs b/src/tools/rustfmt/tests/target/issue-6561/variadic.rs similarity index 100% rename from tests/target/issue-6561/variadic.rs rename to src/tools/rustfmt/tests/target/issue-6561/variadic.rs diff --git a/tests/target/issue-6607/fn-type.rs b/src/tools/rustfmt/tests/target/issue-6607/fn-type.rs similarity index 100% rename from tests/target/issue-6607/fn-type.rs rename to src/tools/rustfmt/tests/target/issue-6607/fn-type.rs diff --git a/tests/target/issue-6651/custom_width.rs b/src/tools/rustfmt/tests/target/issue-6651/custom_width.rs similarity index 100% rename from tests/target/issue-6651/custom_width.rs rename to src/tools/rustfmt/tests/target/issue-6651/custom_width.rs diff --git a/tests/target/issue-6651/default.rs b/src/tools/rustfmt/tests/target/issue-6651/default.rs similarity index 100% rename from tests/target/issue-6651/default.rs rename to src/tools/rustfmt/tests/target/issue-6651/default.rs diff --git a/tests/target/issue-6788.rs b/src/tools/rustfmt/tests/target/issue-6788.rs similarity index 100% rename from tests/target/issue-6788.rs rename to src/tools/rustfmt/tests/target/issue-6788.rs diff --git a/tests/target/issue-6795.rs b/src/tools/rustfmt/tests/target/issue-6795.rs similarity index 100% rename from tests/target/issue-6795.rs rename to src/tools/rustfmt/tests/target/issue-6795.rs diff --git a/tests/target/issue-6825.rs b/src/tools/rustfmt/tests/target/issue-6825.rs similarity index 100% rename from tests/target/issue-6825.rs rename to src/tools/rustfmt/tests/target/issue-6825.rs diff --git a/tests/target/issue-683.rs b/src/tools/rustfmt/tests/target/issue-683.rs similarity index 100% rename from tests/target/issue-683.rs rename to src/tools/rustfmt/tests/target/issue-683.rs diff --git a/tests/target/issue-6863/empty-stmt.rs b/src/tools/rustfmt/tests/target/issue-6863/empty-stmt.rs similarity index 100% rename from tests/target/issue-6863/empty-stmt.rs rename to src/tools/rustfmt/tests/target/issue-6863/empty-stmt.rs diff --git a/tests/target/issue-6863/fn-stmts.rs b/src/tools/rustfmt/tests/target/issue-6863/fn-stmts.rs similarity index 100% rename from tests/target/issue-6863/fn-stmts.rs rename to src/tools/rustfmt/tests/target/issue-6863/fn-stmts.rs diff --git a/tests/target/issue-691.rs b/src/tools/rustfmt/tests/target/issue-691.rs similarity index 100% rename from tests/target/issue-691.rs rename to src/tools/rustfmt/tests/target/issue-691.rs diff --git a/tests/target/issue-6985.rs b/src/tools/rustfmt/tests/target/issue-6985.rs similarity index 100% rename from tests/target/issue-6985.rs rename to src/tools/rustfmt/tests/target/issue-6985.rs diff --git a/tests/target/issue-7011.rs b/src/tools/rustfmt/tests/target/issue-7011.rs similarity index 100% rename from tests/target/issue-7011.rs rename to src/tools/rustfmt/tests/target/issue-7011.rs diff --git a/tests/target/issue-7054.rs b/src/tools/rustfmt/tests/target/issue-7054.rs similarity index 100% rename from tests/target/issue-7054.rs rename to src/tools/rustfmt/tests/target/issue-7054.rs diff --git a/tests/target/issue-7056.rs b/src/tools/rustfmt/tests/target/issue-7056.rs similarity index 100% rename from tests/target/issue-7056.rs rename to src/tools/rustfmt/tests/target/issue-7056.rs diff --git a/tests/target/issue-770.rs b/src/tools/rustfmt/tests/target/issue-770.rs similarity index 100% rename from tests/target/issue-770.rs rename to src/tools/rustfmt/tests/target/issue-770.rs diff --git a/tests/target/issue-811.rs b/src/tools/rustfmt/tests/target/issue-811.rs similarity index 100% rename from tests/target/issue-811.rs rename to src/tools/rustfmt/tests/target/issue-811.rs diff --git a/tests/target/issue-831.rs b/src/tools/rustfmt/tests/target/issue-831.rs similarity index 100% rename from tests/target/issue-831.rs rename to src/tools/rustfmt/tests/target/issue-831.rs diff --git a/tests/target/issue-850.rs b/src/tools/rustfmt/tests/target/issue-850.rs similarity index 100% rename from tests/target/issue-850.rs rename to src/tools/rustfmt/tests/target/issue-850.rs diff --git a/tests/target/issue-855.rs b/src/tools/rustfmt/tests/target/issue-855.rs similarity index 100% rename from tests/target/issue-855.rs rename to src/tools/rustfmt/tests/target/issue-855.rs diff --git a/tests/target/issue-913.rs b/src/tools/rustfmt/tests/target/issue-913.rs similarity index 100% rename from tests/target/issue-913.rs rename to src/tools/rustfmt/tests/target/issue-913.rs diff --git a/tests/target/issue-945.rs b/src/tools/rustfmt/tests/target/issue-945.rs similarity index 100% rename from tests/target/issue-945.rs rename to src/tools/rustfmt/tests/target/issue-945.rs diff --git a/tests/target/issue-977.rs b/src/tools/rustfmt/tests/target/issue-977.rs similarity index 100% rename from tests/target/issue-977.rs rename to src/tools/rustfmt/tests/target/issue-977.rs diff --git a/tests/target/issue_1306.rs b/src/tools/rustfmt/tests/target/issue_1306.rs similarity index 100% rename from tests/target/issue_1306.rs rename to src/tools/rustfmt/tests/target/issue_1306.rs diff --git a/tests/target/issue_3033.rs b/src/tools/rustfmt/tests/target/issue_3033.rs similarity index 100% rename from tests/target/issue_3033.rs rename to src/tools/rustfmt/tests/target/issue_3033.rs diff --git a/tests/target/issue_3245.rs b/src/tools/rustfmt/tests/target/issue_3245.rs similarity index 100% rename from tests/target/issue_3245.rs rename to src/tools/rustfmt/tests/target/issue_3245.rs diff --git a/tests/target/issue_3561.rs b/src/tools/rustfmt/tests/target/issue_3561.rs similarity index 100% rename from tests/target/issue_3561.rs rename to src/tools/rustfmt/tests/target/issue_3561.rs diff --git a/tests/target/issue_3839.rs b/src/tools/rustfmt/tests/target/issue_3839.rs similarity index 100% rename from tests/target/issue_3839.rs rename to src/tools/rustfmt/tests/target/issue_3839.rs diff --git a/tests/target/issue_3844.rs b/src/tools/rustfmt/tests/target/issue_3844.rs similarity index 100% rename from tests/target/issue_3844.rs rename to src/tools/rustfmt/tests/target/issue_3844.rs diff --git a/tests/target/issue_3853.rs b/src/tools/rustfmt/tests/target/issue_3853.rs similarity index 100% rename from tests/target/issue_3853.rs rename to src/tools/rustfmt/tests/target/issue_3853.rs diff --git a/tests/target/issue_3854.rs b/src/tools/rustfmt/tests/target/issue_3854.rs similarity index 100% rename from tests/target/issue_3854.rs rename to src/tools/rustfmt/tests/target/issue_3854.rs diff --git a/tests/target/issue_3868.rs b/src/tools/rustfmt/tests/target/issue_3868.rs similarity index 100% rename from tests/target/issue_3868.rs rename to src/tools/rustfmt/tests/target/issue_3868.rs diff --git a/tests/target/issue_3934.rs b/src/tools/rustfmt/tests/target/issue_3934.rs similarity index 100% rename from tests/target/issue_3934.rs rename to src/tools/rustfmt/tests/target/issue_3934.rs diff --git a/tests/target/issue_3937.rs b/src/tools/rustfmt/tests/target/issue_3937.rs similarity index 100% rename from tests/target/issue_3937.rs rename to src/tools/rustfmt/tests/target/issue_3937.rs diff --git a/tests/target/issue_4031.rs b/src/tools/rustfmt/tests/target/issue_4031.rs similarity index 100% rename from tests/target/issue_4031.rs rename to src/tools/rustfmt/tests/target/issue_4031.rs diff --git a/tests/target/issue_4032.rs b/src/tools/rustfmt/tests/target/issue_4032.rs similarity index 100% rename from tests/target/issue_4032.rs rename to src/tools/rustfmt/tests/target/issue_4032.rs diff --git a/tests/target/issue_4037.rs b/src/tools/rustfmt/tests/target/issue_4037.rs similarity index 100% rename from tests/target/issue_4037.rs rename to src/tools/rustfmt/tests/target/issue_4037.rs diff --git a/tests/target/issue_4049.rs b/src/tools/rustfmt/tests/target/issue_4049.rs similarity index 100% rename from tests/target/issue_4049.rs rename to src/tools/rustfmt/tests/target/issue_4049.rs diff --git a/tests/target/issue_4057.rs b/src/tools/rustfmt/tests/target/issue_4057.rs similarity index 100% rename from tests/target/issue_4057.rs rename to src/tools/rustfmt/tests/target/issue_4057.rs diff --git a/tests/target/issue_4086.rs b/src/tools/rustfmt/tests/target/issue_4086.rs similarity index 100% rename from tests/target/issue_4086.rs rename to src/tools/rustfmt/tests/target/issue_4086.rs diff --git a/tests/target/issue_4110.rs b/src/tools/rustfmt/tests/target/issue_4110.rs similarity index 100% rename from tests/target/issue_4110.rs rename to src/tools/rustfmt/tests/target/issue_4110.rs diff --git a/tests/target/issue_4257.rs b/src/tools/rustfmt/tests/target/issue_4257.rs similarity index 100% rename from tests/target/issue_4257.rs rename to src/tools/rustfmt/tests/target/issue_4257.rs diff --git a/tests/target/issue_4322.rs b/src/tools/rustfmt/tests/target/issue_4322.rs similarity index 100% rename from tests/target/issue_4322.rs rename to src/tools/rustfmt/tests/target/issue_4322.rs diff --git a/tests/target/issue_4350.rs b/src/tools/rustfmt/tests/target/issue_4350.rs similarity index 100% rename from tests/target/issue_4350.rs rename to src/tools/rustfmt/tests/target/issue_4350.rs diff --git a/tests/target/issue_4374.rs b/src/tools/rustfmt/tests/target/issue_4374.rs similarity index 100% rename from tests/target/issue_4374.rs rename to src/tools/rustfmt/tests/target/issue_4374.rs diff --git a/tests/target/issue_4467.rs b/src/tools/rustfmt/tests/target/issue_4467.rs similarity index 100% rename from tests/target/issue_4467.rs rename to src/tools/rustfmt/tests/target/issue_4467.rs diff --git a/tests/target/issue_4475.rs b/src/tools/rustfmt/tests/target/issue_4475.rs similarity index 100% rename from tests/target/issue_4475.rs rename to src/tools/rustfmt/tests/target/issue_4475.rs diff --git a/tests/target/issue_4522.rs b/src/tools/rustfmt/tests/target/issue_4522.rs similarity index 100% rename from tests/target/issue_4522.rs rename to src/tools/rustfmt/tests/target/issue_4522.rs diff --git a/tests/target/issue_4528.rs b/src/tools/rustfmt/tests/target/issue_4528.rs similarity index 100% rename from tests/target/issue_4528.rs rename to src/tools/rustfmt/tests/target/issue_4528.rs diff --git a/tests/target/issue_4545.rs b/src/tools/rustfmt/tests/target/issue_4545.rs similarity index 100% rename from tests/target/issue_4545.rs rename to src/tools/rustfmt/tests/target/issue_4545.rs diff --git a/tests/target/issue_4573.rs b/src/tools/rustfmt/tests/target/issue_4573.rs similarity index 100% rename from tests/target/issue_4573.rs rename to src/tools/rustfmt/tests/target/issue_4573.rs diff --git a/tests/target/issue_4579.rs b/src/tools/rustfmt/tests/target/issue_4579.rs similarity index 100% rename from tests/target/issue_4579.rs rename to src/tools/rustfmt/tests/target/issue_4579.rs diff --git a/tests/target/issue_4584.rs b/src/tools/rustfmt/tests/target/issue_4584.rs similarity index 100% rename from tests/target/issue_4584.rs rename to src/tools/rustfmt/tests/target/issue_4584.rs diff --git a/tests/target/issue_4635.rs b/src/tools/rustfmt/tests/target/issue_4635.rs similarity index 100% rename from tests/target/issue_4635.rs rename to src/tools/rustfmt/tests/target/issue_4635.rs diff --git a/tests/target/issue_4636.rs b/src/tools/rustfmt/tests/target/issue_4636.rs similarity index 100% rename from tests/target/issue_4636.rs rename to src/tools/rustfmt/tests/target/issue_4636.rs diff --git a/tests/target/issue_4675.rs b/src/tools/rustfmt/tests/target/issue_4675.rs similarity index 100% rename from tests/target/issue_4675.rs rename to src/tools/rustfmt/tests/target/issue_4675.rs diff --git a/tests/target/issue_4823.rs b/src/tools/rustfmt/tests/target/issue_4823.rs similarity index 100% rename from tests/target/issue_4823.rs rename to src/tools/rustfmt/tests/target/issue_4823.rs diff --git a/tests/target/issue_4850.rs b/src/tools/rustfmt/tests/target/issue_4850.rs similarity index 100% rename from tests/target/issue_4850.rs rename to src/tools/rustfmt/tests/target/issue_4850.rs diff --git a/tests/target/issue_4854.rs b/src/tools/rustfmt/tests/target/issue_4854.rs similarity index 100% rename from tests/target/issue_4854.rs rename to src/tools/rustfmt/tests/target/issue_4854.rs diff --git a/tests/target/issue_4868.rs b/src/tools/rustfmt/tests/target/issue_4868.rs similarity index 100% rename from tests/target/issue_4868.rs rename to src/tools/rustfmt/tests/target/issue_4868.rs diff --git a/tests/target/issue_4911.rs b/src/tools/rustfmt/tests/target/issue_4911.rs similarity index 100% rename from tests/target/issue_4911.rs rename to src/tools/rustfmt/tests/target/issue_4911.rs diff --git a/tests/target/issue_4936.rs b/src/tools/rustfmt/tests/target/issue_4936.rs similarity index 100% rename from tests/target/issue_4936.rs rename to src/tools/rustfmt/tests/target/issue_4936.rs diff --git a/tests/target/issue_4943.rs b/src/tools/rustfmt/tests/target/issue_4943.rs similarity index 100% rename from tests/target/issue_4943.rs rename to src/tools/rustfmt/tests/target/issue_4943.rs diff --git a/tests/target/issue_4954.rs b/src/tools/rustfmt/tests/target/issue_4954.rs similarity index 100% rename from tests/target/issue_4954.rs rename to src/tools/rustfmt/tests/target/issue_4954.rs diff --git a/tests/target/issue_4963.rs b/src/tools/rustfmt/tests/target/issue_4963.rs similarity index 100% rename from tests/target/issue_4963.rs rename to src/tools/rustfmt/tests/target/issue_4963.rs diff --git a/tests/target/issue_5027.rs b/src/tools/rustfmt/tests/target/issue_5027.rs similarity index 100% rename from tests/target/issue_5027.rs rename to src/tools/rustfmt/tests/target/issue_5027.rs diff --git a/tests/target/issue_5086.rs b/src/tools/rustfmt/tests/target/issue_5086.rs similarity index 100% rename from tests/target/issue_5086.rs rename to src/tools/rustfmt/tests/target/issue_5086.rs diff --git a/tests/target/issue_5273.rs b/src/tools/rustfmt/tests/target/issue_5273.rs similarity index 100% rename from tests/target/issue_5273.rs rename to src/tools/rustfmt/tests/target/issue_5273.rs diff --git a/tests/target/issue_5399.rs b/src/tools/rustfmt/tests/target/issue_5399.rs similarity index 100% rename from tests/target/issue_5399.rs rename to src/tools/rustfmt/tests/target/issue_5399.rs diff --git a/tests/target/issue_5533.rs b/src/tools/rustfmt/tests/target/issue_5533.rs similarity index 100% rename from tests/target/issue_5533.rs rename to src/tools/rustfmt/tests/target/issue_5533.rs diff --git a/tests/target/issue_5668.rs b/src/tools/rustfmt/tests/target/issue_5668.rs similarity index 100% rename from tests/target/issue_5668.rs rename to src/tools/rustfmt/tests/target/issue_5668.rs diff --git a/tests/target/issue_5676.rs b/src/tools/rustfmt/tests/target/issue_5676.rs similarity index 100% rename from tests/target/issue_5676.rs rename to src/tools/rustfmt/tests/target/issue_5676.rs diff --git a/tests/target/issue_5686.rs b/src/tools/rustfmt/tests/target/issue_5686.rs similarity index 100% rename from tests/target/issue_5686.rs rename to src/tools/rustfmt/tests/target/issue_5686.rs diff --git a/tests/target/issue_5691.rs b/src/tools/rustfmt/tests/target/issue_5691.rs similarity index 100% rename from tests/target/issue_5691.rs rename to src/tools/rustfmt/tests/target/issue_5691.rs diff --git a/tests/target/issue_5721.rs b/src/tools/rustfmt/tests/target/issue_5721.rs similarity index 100% rename from tests/target/issue_5721.rs rename to src/tools/rustfmt/tests/target/issue_5721.rs diff --git a/tests/target/issue_5728.rs b/src/tools/rustfmt/tests/target/issue_5728.rs similarity index 100% rename from tests/target/issue_5728.rs rename to src/tools/rustfmt/tests/target/issue_5728.rs diff --git a/tests/target/issue_5729.rs b/src/tools/rustfmt/tests/target/issue_5729.rs similarity index 100% rename from tests/target/issue_5729.rs rename to src/tools/rustfmt/tests/target/issue_5729.rs diff --git a/tests/target/issue_5730.rs b/src/tools/rustfmt/tests/target/issue_5730.rs similarity index 100% rename from tests/target/issue_5730.rs rename to src/tools/rustfmt/tests/target/issue_5730.rs diff --git a/tests/target/issue_5735.rs b/src/tools/rustfmt/tests/target/issue_5735.rs similarity index 100% rename from tests/target/issue_5735.rs rename to src/tools/rustfmt/tests/target/issue_5735.rs diff --git a/tests/target/issue_5739.rs b/src/tools/rustfmt/tests/target/issue_5739.rs similarity index 100% rename from tests/target/issue_5739.rs rename to src/tools/rustfmt/tests/target/issue_5739.rs diff --git a/tests/target/issue_5882.rs b/src/tools/rustfmt/tests/target/issue_5882.rs similarity index 100% rename from tests/target/issue_5882.rs rename to src/tools/rustfmt/tests/target/issue_5882.rs diff --git a/tests/target/issue_5907.rs b/src/tools/rustfmt/tests/target/issue_5907.rs similarity index 100% rename from tests/target/issue_5907.rs rename to src/tools/rustfmt/tests/target/issue_5907.rs diff --git a/tests/target/issue_5912.rs b/src/tools/rustfmt/tests/target/issue_5912.rs similarity index 100% rename from tests/target/issue_5912.rs rename to src/tools/rustfmt/tests/target/issue_5912.rs diff --git a/tests/target/issue_5920_style_edition_2024.rs b/src/tools/rustfmt/tests/target/issue_5920_style_edition_2024.rs similarity index 100% rename from tests/target/issue_5920_style_edition_2024.rs rename to src/tools/rustfmt/tests/target/issue_5920_style_edition_2024.rs diff --git a/tests/target/issue_5920_style_edition_2027.rs b/src/tools/rustfmt/tests/target/issue_5920_style_edition_2027.rs similarity index 100% rename from tests/target/issue_5920_style_edition_2027.rs rename to src/tools/rustfmt/tests/target/issue_5920_style_edition_2027.rs diff --git a/tests/target/issue_5973.rs b/src/tools/rustfmt/tests/target/issue_5973.rs similarity index 100% rename from tests/target/issue_5973.rs rename to src/tools/rustfmt/tests/target/issue_5973.rs diff --git a/tests/target/issue_5982_style_edition_2024.rs b/src/tools/rustfmt/tests/target/issue_5982_style_edition_2024.rs similarity index 100% rename from tests/target/issue_5982_style_edition_2024.rs rename to src/tools/rustfmt/tests/target/issue_5982_style_edition_2024.rs diff --git a/tests/target/issue_5982_style_edition_2027.rs b/src/tools/rustfmt/tests/target/issue_5982_style_edition_2027.rs similarity index 100% rename from tests/target/issue_5982_style_edition_2027.rs rename to src/tools/rustfmt/tests/target/issue_5982_style_edition_2027.rs diff --git a/tests/target/issue_6069.rs b/src/tools/rustfmt/tests/target/issue_6069.rs similarity index 100% rename from tests/target/issue_6069.rs rename to src/tools/rustfmt/tests/target/issue_6069.rs diff --git a/tests/target/issue_6082.rs b/src/tools/rustfmt/tests/target/issue_6082.rs similarity index 100% rename from tests/target/issue_6082.rs rename to src/tools/rustfmt/tests/target/issue_6082.rs diff --git a/tests/target/issue_6158.rs b/src/tools/rustfmt/tests/target/issue_6158.rs similarity index 100% rename from tests/target/issue_6158.rs rename to src/tools/rustfmt/tests/target/issue_6158.rs diff --git a/tests/target/issue_6159.rs b/src/tools/rustfmt/tests/target/issue_6159.rs similarity index 100% rename from tests/target/issue_6159.rs rename to src/tools/rustfmt/tests/target/issue_6159.rs diff --git a/tests/target/issue_6209.rs b/src/tools/rustfmt/tests/target/issue_6209.rs similarity index 100% rename from tests/target/issue_6209.rs rename to src/tools/rustfmt/tests/target/issue_6209.rs diff --git a/tests/target/issue_6381_style_edition_2024.rs b/src/tools/rustfmt/tests/target/issue_6381_style_edition_2024.rs similarity index 100% rename from tests/target/issue_6381_style_edition_2024.rs rename to src/tools/rustfmt/tests/target/issue_6381_style_edition_2024.rs diff --git a/tests/target/issue_6381_style_edition_2027.rs b/src/tools/rustfmt/tests/target/issue_6381_style_edition_2027.rs similarity index 100% rename from tests/target/issue_6381_style_edition_2027.rs rename to src/tools/rustfmt/tests/target/issue_6381_style_edition_2027.rs diff --git a/tests/target/issue_6513.rs b/src/tools/rustfmt/tests/target/issue_6513.rs similarity index 100% rename from tests/target/issue_6513.rs rename to src/tools/rustfmt/tests/target/issue_6513.rs diff --git a/tests/target/issue_6558.rs b/src/tools/rustfmt/tests/target/issue_6558.rs similarity index 100% rename from tests/target/issue_6558.rs rename to src/tools/rustfmt/tests/target/issue_6558.rs diff --git a/tests/target/issue_6801.rs b/src/tools/rustfmt/tests/target/issue_6801.rs similarity index 100% rename from tests/target/issue_6801.rs rename to src/tools/rustfmt/tests/target/issue_6801.rs diff --git a/tests/target/issue_6831_style_edition_2021.rs b/src/tools/rustfmt/tests/target/issue_6831_style_edition_2021.rs similarity index 100% rename from tests/target/issue_6831_style_edition_2021.rs rename to src/tools/rustfmt/tests/target/issue_6831_style_edition_2021.rs diff --git a/tests/target/issue_6831_style_edition_2024.rs b/src/tools/rustfmt/tests/target/issue_6831_style_edition_2024.rs similarity index 100% rename from tests/target/issue_6831_style_edition_2024.rs rename to src/tools/rustfmt/tests/target/issue_6831_style_edition_2024.rs diff --git a/tests/target/issue_6831_style_edition_2027.rs b/src/tools/rustfmt/tests/target/issue_6831_style_edition_2027.rs similarity index 100% rename from tests/target/issue_6831_style_edition_2027.rs rename to src/tools/rustfmt/tests/target/issue_6831_style_edition_2027.rs diff --git a/tests/target/issue_6859_hard_tab_breaks.rs b/src/tools/rustfmt/tests/target/issue_6859_hard_tab_breaks.rs similarity index 100% rename from tests/target/issue_6859_hard_tab_breaks.rs rename to src/tools/rustfmt/tests/target/issue_6859_hard_tab_breaks.rs diff --git a/tests/target/issue_6869.rs b/src/tools/rustfmt/tests/target/issue_6869.rs similarity index 100% rename from tests/target/issue_6869.rs rename to src/tools/rustfmt/tests/target/issue_6869.rs diff --git a/tests/target/issue_6959.rs b/src/tools/rustfmt/tests/target/issue_6959.rs similarity index 100% rename from tests/target/issue_6959.rs rename to src/tools/rustfmt/tests/target/issue_6959.rs diff --git a/tests/target/issue_6984_style_edition_2024.rs b/src/tools/rustfmt/tests/target/issue_6984_style_edition_2024.rs similarity index 100% rename from tests/target/issue_6984_style_edition_2024.rs rename to src/tools/rustfmt/tests/target/issue_6984_style_edition_2024.rs diff --git a/tests/target/issue_6984_style_edition_2027.rs b/src/tools/rustfmt/tests/target/issue_6984_style_edition_2027.rs similarity index 100% rename from tests/target/issue_6984_style_edition_2027.rs rename to src/tools/rustfmt/tests/target/issue_6984_style_edition_2027.rs diff --git a/tests/target/issue_7003_style_edition_2024.rs b/src/tools/rustfmt/tests/target/issue_7003_style_edition_2024.rs similarity index 100% rename from tests/target/issue_7003_style_edition_2024.rs rename to src/tools/rustfmt/tests/target/issue_7003_style_edition_2024.rs diff --git a/tests/target/issue_7003_style_edition_2027.rs b/src/tools/rustfmt/tests/target/issue_7003_style_edition_2027.rs similarity index 100% rename from tests/target/issue_7003_style_edition_2027.rs rename to src/tools/rustfmt/tests/target/issue_7003_style_edition_2027.rs diff --git a/tests/target/issue_7036.rs b/src/tools/rustfmt/tests/target/issue_7036.rs similarity index 100% rename from tests/target/issue_7036.rs rename to src/tools/rustfmt/tests/target/issue_7036.rs diff --git a/tests/target/issue_7055_style_edition_2024.rs b/src/tools/rustfmt/tests/target/issue_7055_style_edition_2024.rs similarity index 100% rename from tests/target/issue_7055_style_edition_2024.rs rename to src/tools/rustfmt/tests/target/issue_7055_style_edition_2024.rs diff --git a/tests/target/issue_7055_style_edition_2027.rs b/src/tools/rustfmt/tests/target/issue_7055_style_edition_2027.rs similarity index 100% rename from tests/target/issue_7055_style_edition_2027.rs rename to src/tools/rustfmt/tests/target/issue_7055_style_edition_2027.rs diff --git a/tests/target/issue_7057.rs b/src/tools/rustfmt/tests/target/issue_7057.rs similarity index 100% rename from tests/target/issue_7057.rs rename to src/tools/rustfmt/tests/target/issue_7057.rs diff --git a/tests/target/issue_7062.rs b/src/tools/rustfmt/tests/target/issue_7062.rs similarity index 100% rename from tests/target/issue_7062.rs rename to src/tools/rustfmt/tests/target/issue_7062.rs diff --git a/tests/target/issue_7088_stable.rs b/src/tools/rustfmt/tests/target/issue_7088_stable.rs similarity index 100% rename from tests/target/issue_7088_stable.rs rename to src/tools/rustfmt/tests/target/issue_7088_stable.rs diff --git a/tests/target/issue_7088_unstable.rs b/src/tools/rustfmt/tests/target/issue_7088_unstable.rs similarity index 100% rename from tests/target/issue_7088_unstable.rs rename to src/tools/rustfmt/tests/target/issue_7088_unstable.rs diff --git a/tests/target/item-brace-style-always-next-line.rs b/src/tools/rustfmt/tests/target/item-brace-style-always-next-line.rs similarity index 100% rename from tests/target/item-brace-style-always-next-line.rs rename to src/tools/rustfmt/tests/target/item-brace-style-always-next-line.rs diff --git a/tests/target/item-brace-style-prefer-same-line.rs b/src/tools/rustfmt/tests/target/item-brace-style-prefer-same-line.rs similarity index 100% rename from tests/target/item-brace-style-prefer-same-line.rs rename to src/tools/rustfmt/tests/target/item-brace-style-prefer-same-line.rs diff --git a/tests/target/item-brace-style-same-line-where.rs b/src/tools/rustfmt/tests/target/item-brace-style-same-line-where.rs similarity index 100% rename from tests/target/item-brace-style-same-line-where.rs rename to src/tools/rustfmt/tests/target/item-brace-style-same-line-where.rs diff --git a/tests/target/itemized-blocks/no_wrap.rs b/src/tools/rustfmt/tests/target/itemized-blocks/no_wrap.rs similarity index 100% rename from tests/target/itemized-blocks/no_wrap.rs rename to src/tools/rustfmt/tests/target/itemized-blocks/no_wrap.rs diff --git a/tests/target/itemized-blocks/rewrite_fail.rs b/src/tools/rustfmt/tests/target/itemized-blocks/rewrite_fail.rs similarity index 100% rename from tests/target/itemized-blocks/rewrite_fail.rs rename to src/tools/rustfmt/tests/target/itemized-blocks/rewrite_fail.rs diff --git a/tests/target/itemized-blocks/urls.rs b/src/tools/rustfmt/tests/target/itemized-blocks/urls.rs similarity index 100% rename from tests/target/itemized-blocks/urls.rs rename to src/tools/rustfmt/tests/target/itemized-blocks/urls.rs diff --git a/tests/target/itemized-blocks/wrap.rs b/src/tools/rustfmt/tests/target/itemized-blocks/wrap.rs similarity index 100% rename from tests/target/itemized-blocks/wrap.rs rename to src/tools/rustfmt/tests/target/itemized-blocks/wrap.rs diff --git a/tests/target/keywords.rs b/src/tools/rustfmt/tests/target/keywords.rs similarity index 100% rename from tests/target/keywords.rs rename to src/tools/rustfmt/tests/target/keywords.rs diff --git a/tests/target/label_break.rs b/src/tools/rustfmt/tests/target/label_break.rs similarity index 100% rename from tests/target/label_break.rs rename to src/tools/rustfmt/tests/target/label_break.rs diff --git a/tests/target/large-block.rs b/src/tools/rustfmt/tests/target/large-block.rs similarity index 100% rename from tests/target/large-block.rs rename to src/tools/rustfmt/tests/target/large-block.rs diff --git a/tests/target/large_vec.rs b/src/tools/rustfmt/tests/target/large_vec.rs similarity index 100% rename from tests/target/large_vec.rs rename to src/tools/rustfmt/tests/target/large_vec.rs diff --git a/tests/target/lazy_staic_before_2027.rs b/src/tools/rustfmt/tests/target/lazy_staic_before_2027.rs similarity index 100% rename from tests/target/lazy_staic_before_2027.rs rename to src/tools/rustfmt/tests/target/lazy_staic_before_2027.rs diff --git a/tests/target/lazy_static.rs b/src/tools/rustfmt/tests/target/lazy_static.rs similarity index 100% rename from tests/target/lazy_static.rs rename to src/tools/rustfmt/tests/target/lazy_static.rs diff --git a/tests/target/let_chains.rs b/src/tools/rustfmt/tests/target/let_chains.rs similarity index 100% rename from tests/target/let_chains.rs rename to src/tools/rustfmt/tests/target/let_chains.rs diff --git a/tests/target/let_else.rs b/src/tools/rustfmt/tests/target/let_else.rs similarity index 100% rename from tests/target/let_else.rs rename to src/tools/rustfmt/tests/target/let_else.rs diff --git a/tests/target/let_else_v2.rs b/src/tools/rustfmt/tests/target/let_else_v2.rs similarity index 100% rename from tests/target/let_else_v2.rs rename to src/tools/rustfmt/tests/target/let_else_v2.rs diff --git a/tests/target/long-fn-1/version_one.rs b/src/tools/rustfmt/tests/target/long-fn-1/version_one.rs similarity index 100% rename from tests/target/long-fn-1/version_one.rs rename to src/tools/rustfmt/tests/target/long-fn-1/version_one.rs diff --git a/tests/target/long-fn-1/version_two.rs b/src/tools/rustfmt/tests/target/long-fn-1/version_two.rs similarity index 100% rename from tests/target/long-fn-1/version_two.rs rename to src/tools/rustfmt/tests/target/long-fn-1/version_two.rs diff --git a/tests/target/long-match-arms-brace-newline.rs b/src/tools/rustfmt/tests/target/long-match-arms-brace-newline.rs similarity index 100% rename from tests/target/long-match-arms-brace-newline.rs rename to src/tools/rustfmt/tests/target/long-match-arms-brace-newline.rs diff --git a/tests/target/long-use-statement-issue-3154.rs b/src/tools/rustfmt/tests/target/long-use-statement-issue-3154.rs similarity index 100% rename from tests/target/long-use-statement-issue-3154.rs rename to src/tools/rustfmt/tests/target/long-use-statement-issue-3154.rs diff --git a/tests/target/long_field_access.rs b/src/tools/rustfmt/tests/target/long_field_access.rs similarity index 100% rename from tests/target/long_field_access.rs rename to src/tools/rustfmt/tests/target/long_field_access.rs diff --git a/tests/target/loop.rs b/src/tools/rustfmt/tests/target/loop.rs similarity index 100% rename from tests/target/loop.rs rename to src/tools/rustfmt/tests/target/loop.rs diff --git a/tests/target/macro_not_expr.rs b/src/tools/rustfmt/tests/target/macro_not_expr.rs similarity index 100% rename from tests/target/macro_not_expr.rs rename to src/tools/rustfmt/tests/target/macro_not_expr.rs diff --git a/tests/target/macro_rules.rs b/src/tools/rustfmt/tests/target/macro_rules.rs similarity index 100% rename from tests/target/macro_rules.rs rename to src/tools/rustfmt/tests/target/macro_rules.rs diff --git a/tests/target/macro_rules_semi.rs b/src/tools/rustfmt/tests/target/macro_rules_semi.rs similarity index 100% rename from tests/target/macro_rules_semi.rs rename to src/tools/rustfmt/tests/target/macro_rules_semi.rs diff --git a/tests/target/macros.rs b/src/tools/rustfmt/tests/target/macros.rs similarity index 100% rename from tests/target/macros.rs rename to src/tools/rustfmt/tests/target/macros.rs diff --git a/tests/target/macros/rewrite-const-item.rs b/src/tools/rustfmt/tests/target/macros/rewrite-const-item.rs similarity index 100% rename from tests/target/macros/rewrite-const-item.rs rename to src/tools/rustfmt/tests/target/macros/rewrite-const-item.rs diff --git a/tests/target/markdown-comment-with-options.rs b/src/tools/rustfmt/tests/target/markdown-comment-with-options.rs similarity index 100% rename from tests/target/markdown-comment-with-options.rs rename to src/tools/rustfmt/tests/target/markdown-comment-with-options.rs diff --git a/tests/target/markdown-comment.rs b/src/tools/rustfmt/tests/target/markdown-comment.rs similarity index 100% rename from tests/target/markdown-comment.rs rename to src/tools/rustfmt/tests/target/markdown-comment.rs diff --git a/tests/target/match-block-trailing-comma.rs b/src/tools/rustfmt/tests/target/match-block-trailing-comma.rs similarity index 100% rename from tests/target/match-block-trailing-comma.rs rename to src/tools/rustfmt/tests/target/match-block-trailing-comma.rs diff --git a/tests/target/match-flattening.rs b/src/tools/rustfmt/tests/target/match-flattening.rs similarity index 100% rename from tests/target/match-flattening.rs rename to src/tools/rustfmt/tests/target/match-flattening.rs diff --git a/tests/target/match-nowrap-trailing-comma.rs b/src/tools/rustfmt/tests/target/match-nowrap-trailing-comma.rs similarity index 100% rename from tests/target/match-nowrap-trailing-comma.rs rename to src/tools/rustfmt/tests/target/match-nowrap-trailing-comma.rs diff --git a/tests/target/match-nowrap.rs b/src/tools/rustfmt/tests/target/match-nowrap.rs similarity index 100% rename from tests/target/match-nowrap.rs rename to src/tools/rustfmt/tests/target/match-nowrap.rs diff --git a/tests/target/match.rs b/src/tools/rustfmt/tests/target/match.rs similarity index 100% rename from tests/target/match.rs rename to src/tools/rustfmt/tests/target/match.rs diff --git a/tests/target/match_overflow_expr.rs b/src/tools/rustfmt/tests/target/match_overflow_expr.rs similarity index 100% rename from tests/target/match_overflow_expr.rs rename to src/tools/rustfmt/tests/target/match_overflow_expr.rs diff --git a/tests/target/max-line-length-in-chars.rs b/src/tools/rustfmt/tests/target/max-line-length-in-chars.rs similarity index 100% rename from tests/target/max-line-length-in-chars.rs rename to src/tools/rustfmt/tests/target/max-line-length-in-chars.rs diff --git a/tests/target/merge_imports_true_compat.rs b/src/tools/rustfmt/tests/target/merge_imports_true_compat.rs similarity index 100% rename from tests/target/merge_imports_true_compat.rs rename to src/tools/rustfmt/tests/target/merge_imports_true_compat.rs diff --git a/tests/target/mod-1.rs b/src/tools/rustfmt/tests/target/mod-1.rs similarity index 100% rename from tests/target/mod-1.rs rename to src/tools/rustfmt/tests/target/mod-1.rs diff --git a/tests/target/mod-2.rs b/src/tools/rustfmt/tests/target/mod-2.rs similarity index 100% rename from tests/target/mod-2.rs rename to src/tools/rustfmt/tests/target/mod-2.rs diff --git a/tests/target/mod_skip_child.rs b/src/tools/rustfmt/tests/target/mod_skip_child.rs similarity index 100% rename from tests/target/mod_skip_child.rs rename to src/tools/rustfmt/tests/target/mod_skip_child.rs diff --git a/tests/target/mulit-file.rs b/src/tools/rustfmt/tests/target/mulit-file.rs similarity index 100% rename from tests/target/mulit-file.rs rename to src/tools/rustfmt/tests/target/mulit-file.rs diff --git a/tests/target/multiline_string_in_macro_def.rs b/src/tools/rustfmt/tests/target/multiline_string_in_macro_def.rs similarity index 100% rename from tests/target/multiline_string_in_macro_def.rs rename to src/tools/rustfmt/tests/target/multiline_string_in_macro_def.rs diff --git a/tests/target/multiple.rs b/src/tools/rustfmt/tests/target/multiple.rs similarity index 100% rename from tests/target/multiple.rs rename to src/tools/rustfmt/tests/target/multiple.rs diff --git a/tests/target/mut-restriction.rs b/src/tools/rustfmt/tests/target/mut-restriction.rs similarity index 100% rename from tests/target/mut-restriction.rs rename to src/tools/rustfmt/tests/target/mut-restriction.rs diff --git a/tests/target/mut_ref.rs b/src/tools/rustfmt/tests/target/mut_ref.rs similarity index 100% rename from tests/target/mut_ref.rs rename to src/tools/rustfmt/tests/target/mut_ref.rs diff --git a/tests/target/named-fn-trait-parameters.rs b/src/tools/rustfmt/tests/target/named-fn-trait-parameters.rs similarity index 100% rename from tests/target/named-fn-trait-parameters.rs rename to src/tools/rustfmt/tests/target/named-fn-trait-parameters.rs diff --git a/tests/target/negative-bounds.rs b/src/tools/rustfmt/tests/target/negative-bounds.rs similarity index 100% rename from tests/target/negative-bounds.rs rename to src/tools/rustfmt/tests/target/negative-bounds.rs diff --git a/tests/target/negative-impl.rs b/src/tools/rustfmt/tests/target/negative-impl.rs similarity index 100% rename from tests/target/negative-impl.rs rename to src/tools/rustfmt/tests/target/negative-impl.rs diff --git a/tests/target/nested-if-else.rs b/src/tools/rustfmt/tests/target/nested-if-else.rs similarity index 100% rename from tests/target/nested-if-else.rs rename to src/tools/rustfmt/tests/target/nested-if-else.rs diff --git a/tests/target/nested-visual-block.rs b/src/tools/rustfmt/tests/target/nested-visual-block.rs similarity index 100% rename from tests/target/nested-visual-block.rs rename to src/tools/rustfmt/tests/target/nested-visual-block.rs diff --git a/tests/target/nested_skipped/mod.rs b/src/tools/rustfmt/tests/target/nested_skipped/mod.rs similarity index 100% rename from tests/target/nested_skipped/mod.rs rename to src/tools/rustfmt/tests/target/nested_skipped/mod.rs diff --git a/tests/target/nestedmod/mod.rs b/src/tools/rustfmt/tests/target/nestedmod/mod.rs similarity index 100% rename from tests/target/nestedmod/mod.rs rename to src/tools/rustfmt/tests/target/nestedmod/mod.rs diff --git a/tests/target/nestedmod/mod2a.rs b/src/tools/rustfmt/tests/target/nestedmod/mod2a.rs similarity index 100% rename from tests/target/nestedmod/mod2a.rs rename to src/tools/rustfmt/tests/target/nestedmod/mod2a.rs diff --git a/tests/target/nestedmod/mod2b.rs b/src/tools/rustfmt/tests/target/nestedmod/mod2b.rs similarity index 100% rename from tests/target/nestedmod/mod2b.rs rename to src/tools/rustfmt/tests/target/nestedmod/mod2b.rs diff --git a/tests/target/nestedmod/mod2c.rs b/src/tools/rustfmt/tests/target/nestedmod/mod2c.rs similarity index 100% rename from tests/target/nestedmod/mod2c.rs rename to src/tools/rustfmt/tests/target/nestedmod/mod2c.rs diff --git a/tests/target/nestedmod/mymod1/mod3a.rs b/src/tools/rustfmt/tests/target/nestedmod/mymod1/mod3a.rs similarity index 100% rename from tests/target/nestedmod/mymod1/mod3a.rs rename to src/tools/rustfmt/tests/target/nestedmod/mymod1/mod3a.rs diff --git a/tests/target/nestedmod/submod2/a.rs b/src/tools/rustfmt/tests/target/nestedmod/submod2/a.rs similarity index 100% rename from tests/target/nestedmod/submod2/a.rs rename to src/tools/rustfmt/tests/target/nestedmod/submod2/a.rs diff --git a/tests/target/nestedmod/submod2/mod.rs b/src/tools/rustfmt/tests/target/nestedmod/submod2/mod.rs similarity index 100% rename from tests/target/nestedmod/submod2/mod.rs rename to src/tools/rustfmt/tests/target/nestedmod/submod2/mod.rs diff --git a/tests/target/no_arg_with_comment.rs b/src/tools/rustfmt/tests/target/no_arg_with_comment.rs similarity index 100% rename from tests/target/no_arg_with_comment.rs rename to src/tools/rustfmt/tests/target/no_arg_with_comment.rs diff --git a/tests/target/no_new_line_beginning.rs b/src/tools/rustfmt/tests/target/no_new_line_beginning.rs similarity index 100% rename from tests/target/no_new_line_beginning.rs rename to src/tools/rustfmt/tests/target/no_new_line_beginning.rs diff --git a/tests/target/non-lifetime-binders.rs b/src/tools/rustfmt/tests/target/non-lifetime-binders.rs similarity index 100% rename from tests/target/non-lifetime-binders.rs rename to src/tools/rustfmt/tests/target/non-lifetime-binders.rs diff --git a/tests/target/non_ascii_numerics_import_asciibetically.rs b/src/tools/rustfmt/tests/target/non_ascii_numerics_import_asciibetically.rs similarity index 100% rename from tests/target/non_ascii_numerics_import_asciibetically.rs rename to src/tools/rustfmt/tests/target/non_ascii_numerics_import_asciibetically.rs diff --git a/tests/target/non_ascii_numerics_import_versionsort.rs b/src/tools/rustfmt/tests/target/non_ascii_numerics_import_versionsort.rs similarity index 100% rename from tests/target/non_ascii_numerics_import_versionsort.rs rename to src/tools/rustfmt/tests/target/non_ascii_numerics_import_versionsort.rs diff --git a/tests/target/normalize_doc_attributes_should_not_imply_format_doc_comments.rs b/src/tools/rustfmt/tests/target/normalize_doc_attributes_should_not_imply_format_doc_comments.rs similarity index 100% rename from tests/target/normalize_doc_attributes_should_not_imply_format_doc_comments.rs rename to src/tools/rustfmt/tests/target/normalize_doc_attributes_should_not_imply_format_doc_comments.rs diff --git a/tests/target/normalize_multiline_doc_attribute.rs b/src/tools/rustfmt/tests/target/normalize_multiline_doc_attribute.rs similarity index 100% rename from tests/target/normalize_multiline_doc_attribute.rs rename to src/tools/rustfmt/tests/target/normalize_multiline_doc_attribute.rs diff --git a/tests/target/obsolete_in_place.rs b/src/tools/rustfmt/tests/target/obsolete_in_place.rs similarity index 100% rename from tests/target/obsolete_in_place.rs rename to src/tools/rustfmt/tests/target/obsolete_in_place.rs diff --git a/tests/target/one_line_if_v1.rs b/src/tools/rustfmt/tests/target/one_line_if_v1.rs similarity index 100% rename from tests/target/one_line_if_v1.rs rename to src/tools/rustfmt/tests/target/one_line_if_v1.rs diff --git a/tests/target/one_line_if_v2.rs b/src/tools/rustfmt/tests/target/one_line_if_v2.rs similarity index 100% rename from tests/target/one_line_if_v2.rs rename to src/tools/rustfmt/tests/target/one_line_if_v2.rs diff --git a/tests/target/other.rs b/src/tools/rustfmt/tests/target/other.rs similarity index 100% rename from tests/target/other.rs rename to src/tools/rustfmt/tests/target/other.rs diff --git a/tests/target/paren.rs b/src/tools/rustfmt/tests/target/paren.rs similarity index 100% rename from tests/target/paren.rs rename to src/tools/rustfmt/tests/target/paren.rs diff --git a/tests/target/path_clarity/foo.rs b/src/tools/rustfmt/tests/target/path_clarity/foo.rs similarity index 100% rename from tests/target/path_clarity/foo.rs rename to src/tools/rustfmt/tests/target/path_clarity/foo.rs diff --git a/tests/target/path_clarity/foo/bar.rs b/src/tools/rustfmt/tests/target/path_clarity/foo/bar.rs similarity index 100% rename from tests/target/path_clarity/foo/bar.rs rename to src/tools/rustfmt/tests/target/path_clarity/foo/bar.rs diff --git a/tests/target/paths.rs b/src/tools/rustfmt/tests/target/paths.rs similarity index 100% rename from tests/target/paths.rs rename to src/tools/rustfmt/tests/target/paths.rs diff --git a/tests/target/pattern-condense-wildcards.rs b/src/tools/rustfmt/tests/target/pattern-condense-wildcards.rs similarity index 100% rename from tests/target/pattern-condense-wildcards.rs rename to src/tools/rustfmt/tests/target/pattern-condense-wildcards.rs diff --git a/tests/target/pattern.rs b/src/tools/rustfmt/tests/target/pattern.rs similarity index 100% rename from tests/target/pattern.rs rename to src/tools/rustfmt/tests/target/pattern.rs diff --git a/tests/target/pin_sugar.rs b/src/tools/rustfmt/tests/target/pin_sugar.rs similarity index 100% rename from tests/target/pin_sugar.rs rename to src/tools/rustfmt/tests/target/pin_sugar.rs diff --git a/tests/target/postfix-match/pf-match.rs b/src/tools/rustfmt/tests/target/postfix-match/pf-match.rs similarity index 100% rename from tests/target/postfix-match/pf-match.rs rename to src/tools/rustfmt/tests/target/postfix-match/pf-match.rs diff --git a/tests/target/postfix-yield.rs b/src/tools/rustfmt/tests/target/postfix-yield.rs similarity index 100% rename from tests/target/postfix-yield.rs rename to src/tools/rustfmt/tests/target/postfix-yield.rs diff --git a/tests/target/precise-capturing.rs b/src/tools/rustfmt/tests/target/precise-capturing.rs similarity index 100% rename from tests/target/precise-capturing.rs rename to src/tools/rustfmt/tests/target/precise-capturing.rs diff --git a/tests/target/preserves_carriage_return_for_unix.rs b/src/tools/rustfmt/tests/target/preserves_carriage_return_for_unix.rs similarity index 100% rename from tests/target/preserves_carriage_return_for_unix.rs rename to src/tools/rustfmt/tests/target/preserves_carriage_return_for_unix.rs diff --git a/tests/target/preserves_carriage_return_for_windows.rs b/src/tools/rustfmt/tests/target/preserves_carriage_return_for_windows.rs similarity index 100% rename from tests/target/preserves_carriage_return_for_windows.rs rename to src/tools/rustfmt/tests/target/preserves_carriage_return_for_windows.rs diff --git a/tests/target/pub-restricted.rs b/src/tools/rustfmt/tests/target/pub-restricted.rs similarity index 100% rename from tests/target/pub-restricted.rs rename to src/tools/rustfmt/tests/target/pub-restricted.rs diff --git a/tests/target/raw-lifetimes.rs b/src/tools/rustfmt/tests/target/raw-lifetimes.rs similarity index 100% rename from tests/target/raw-lifetimes.rs rename to src/tools/rustfmt/tests/target/raw-lifetimes.rs diff --git a/tests/target/raw_identifiers.rs b/src/tools/rustfmt/tests/target/raw_identifiers.rs similarity index 100% rename from tests/target/raw_identifiers.rs rename to src/tools/rustfmt/tests/target/raw_identifiers.rs diff --git a/tests/target/remove_blank_lines.rs b/src/tools/rustfmt/tests/target/remove_blank_lines.rs similarity index 100% rename from tests/target/remove_blank_lines.rs rename to src/tools/rustfmt/tests/target/remove_blank_lines.rs diff --git a/tests/target/reorder-impl-items.rs b/src/tools/rustfmt/tests/target/reorder-impl-items.rs similarity index 100% rename from tests/target/reorder-impl-items.rs rename to src/tools/rustfmt/tests/target/reorder-impl-items.rs diff --git a/tests/target/reorder_modules/A2/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/A2/mod.rs similarity index 100% rename from tests/target/reorder_modules/A2/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/A2/mod.rs diff --git a/tests/target/reorder_modules/ABCD/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/ABCD/mod.rs similarity index 100% rename from tests/target/reorder_modules/ABCD/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/ABCD/mod.rs diff --git a/tests/target/reorder_modules/ZYXW/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/ZYXW/mod.rs similarity index 100% rename from tests/target/reorder_modules/ZYXW/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/ZYXW/mod.rs diff --git a/tests/target/reorder_modules/ZYXW_/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/ZYXW_/mod.rs similarity index 100% rename from tests/target/reorder_modules/ZYXW_/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/ZYXW_/mod.rs diff --git a/tests/target/reorder_modules/ZY_XW/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/ZY_XW/mod.rs similarity index 100% rename from tests/target/reorder_modules/ZY_XW/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/ZY_XW/mod.rs diff --git a/tests/target/reorder_modules/Z_YXW/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/Z_YXW/mod.rs similarity index 100% rename from tests/target/reorder_modules/Z_YXW/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/Z_YXW/mod.rs diff --git a/tests/target/reorder_modules/_ZYXW/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/_ZYXW/mod.rs similarity index 100% rename from tests/target/reorder_modules/_ZYXW/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/_ZYXW/mod.rs diff --git a/tests/target/reorder_modules/_abcd/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/_abcd/mod.rs similarity index 100% rename from tests/target/reorder_modules/_abcd/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/_abcd/mod.rs diff --git a/tests/target/reorder_modules/a1/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/a1/mod.rs similarity index 100% rename from tests/target/reorder_modules/a1/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/a1/mod.rs diff --git a/tests/target/reorder_modules/abcde/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/abcde/mod.rs similarity index 100% rename from tests/target/reorder_modules/abcde/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/abcde/mod.rs diff --git a/tests/target/reorder_modules/disabled_style_edition_2024.rs b/src/tools/rustfmt/tests/target/reorder_modules/disabled_style_edition_2024.rs similarity index 100% rename from tests/target/reorder_modules/disabled_style_edition_2024.rs rename to src/tools/rustfmt/tests/target/reorder_modules/disabled_style_edition_2024.rs diff --git a/tests/target/reorder_modules/disabled_style_edition_2027.rs b/src/tools/rustfmt/tests/target/reorder_modules/disabled_style_edition_2027.rs similarity index 100% rename from tests/target/reorder_modules/disabled_style_edition_2027.rs rename to src/tools/rustfmt/tests/target/reorder_modules/disabled_style_edition_2027.rs diff --git a/tests/target/reorder_modules/enabled_style_edition_2015.rs b/src/tools/rustfmt/tests/target/reorder_modules/enabled_style_edition_2015.rs similarity index 100% rename from tests/target/reorder_modules/enabled_style_edition_2015.rs rename to src/tools/rustfmt/tests/target/reorder_modules/enabled_style_edition_2015.rs diff --git a/tests/target/reorder_modules/enabled_style_edition_2024.rs b/src/tools/rustfmt/tests/target/reorder_modules/enabled_style_edition_2024.rs similarity index 100% rename from tests/target/reorder_modules/enabled_style_edition_2024.rs rename to src/tools/rustfmt/tests/target/reorder_modules/enabled_style_edition_2024.rs diff --git a/tests/target/reorder_modules/enabled_style_edition_2027.rs b/src/tools/rustfmt/tests/target/reorder_modules/enabled_style_edition_2027.rs similarity index 100% rename from tests/target/reorder_modules/enabled_style_edition_2027.rs rename to src/tools/rustfmt/tests/target/reorder_modules/enabled_style_edition_2027.rs diff --git a/tests/target/reorder_modules/u128/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/u128/mod.rs similarity index 100% rename from tests/target/reorder_modules/u128/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/u128/mod.rs diff --git a/tests/target/reorder_modules/u16/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/u16/mod.rs similarity index 100% rename from tests/target/reorder_modules/u16/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/u16/mod.rs diff --git a/tests/target/reorder_modules/u256/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/u256/mod.rs similarity index 100% rename from tests/target/reorder_modules/u256/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/u256/mod.rs diff --git a/tests/target/reorder_modules/u32/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/u32/mod.rs similarity index 100% rename from tests/target/reorder_modules/u32/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/u32/mod.rs diff --git a/tests/target/reorder_modules/u64/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/u64/mod.rs similarity index 100% rename from tests/target/reorder_modules/u64/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/u64/mod.rs diff --git a/tests/target/reorder_modules/u8/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/u8/mod.rs similarity index 100% rename from tests/target/reorder_modules/u8/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/u8/mod.rs diff --git a/tests/target/reorder_modules/u_zzz/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/u_zzz/mod.rs similarity index 100% rename from tests/target/reorder_modules/u_zzz/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/u_zzz/mod.rs diff --git a/tests/target/reorder_modules/ua/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/ua/mod.rs similarity index 100% rename from tests/target/reorder_modules/ua/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/ua/mod.rs diff --git a/tests/target/reorder_modules/usize/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/usize/mod.rs similarity index 100% rename from tests/target/reorder_modules/usize/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/usize/mod.rs diff --git a/tests/target/reorder_modules/uz/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/uz/mod.rs similarity index 100% rename from tests/target/reorder_modules/uz/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/uz/mod.rs diff --git a/tests/target/reorder_modules/v0/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v0/mod.rs similarity index 100% rename from tests/target/reorder_modules/v0/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v0/mod.rs diff --git a/tests/target/reorder_modules/v00/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v00/mod.rs similarity index 100% rename from tests/target/reorder_modules/v00/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v00/mod.rs diff --git a/tests/target/reorder_modules/v000/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v000/mod.rs similarity index 100% rename from tests/target/reorder_modules/v000/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v000/mod.rs diff --git a/tests/target/reorder_modules/v001/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v001/mod.rs similarity index 100% rename from tests/target/reorder_modules/v001/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v001/mod.rs diff --git a/tests/target/reorder_modules/v009/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v009/mod.rs similarity index 100% rename from tests/target/reorder_modules/v009/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v009/mod.rs diff --git a/tests/target/reorder_modules/v00t/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v00t/mod.rs similarity index 100% rename from tests/target/reorder_modules/v00t/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v00t/mod.rs diff --git a/tests/target/reorder_modules/v01/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v01/mod.rs similarity index 100% rename from tests/target/reorder_modules/v01/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v01/mod.rs diff --git a/tests/target/reorder_modules/v010/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v010/mod.rs similarity index 100% rename from tests/target/reorder_modules/v010/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v010/mod.rs diff --git a/tests/target/reorder_modules/v09/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v09/mod.rs similarity index 100% rename from tests/target/reorder_modules/v09/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v09/mod.rs diff --git a/tests/target/reorder_modules/v0s/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v0s/mod.rs similarity index 100% rename from tests/target/reorder_modules/v0s/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v0s/mod.rs diff --git a/tests/target/reorder_modules/v0u/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v0u/mod.rs similarity index 100% rename from tests/target/reorder_modules/v0u/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v0u/mod.rs diff --git a/tests/target/reorder_modules/v1/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v1/mod.rs similarity index 100% rename from tests/target/reorder_modules/v1/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v1/mod.rs diff --git a/tests/target/reorder_modules/v10/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v10/mod.rs similarity index 100% rename from tests/target/reorder_modules/v10/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v10/mod.rs diff --git a/tests/target/reorder_modules/v9/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/v9/mod.rs similarity index 100% rename from tests/target/reorder_modules/v9/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/v9/mod.rs diff --git a/tests/target/reorder_modules/w005s09t/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/w005s09t/mod.rs similarity index 100% rename from tests/target/reorder_modules/w005s09t/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/w005s09t/mod.rs diff --git a/tests/target/reorder_modules/w5s009t/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/w5s009t/mod.rs similarity index 100% rename from tests/target/reorder_modules/w5s009t/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/w5s009t/mod.rs diff --git a/tests/target/reorder_modules/x64/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/x64/mod.rs similarity index 100% rename from tests/target/reorder_modules/x64/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/x64/mod.rs diff --git a/tests/target/reorder_modules/x86/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/x86/mod.rs similarity index 100% rename from tests/target/reorder_modules/x86/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/x86/mod.rs diff --git a/tests/target/reorder_modules/x86_128/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/x86_128/mod.rs similarity index 100% rename from tests/target/reorder_modules/x86_128/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/x86_128/mod.rs diff --git a/tests/target/reorder_modules/x86_32/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/x86_32/mod.rs similarity index 100% rename from tests/target/reorder_modules/x86_32/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/x86_32/mod.rs diff --git a/tests/target/reorder_modules/x86_64/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/x86_64/mod.rs similarity index 100% rename from tests/target/reorder_modules/x86_64/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/x86_64/mod.rs diff --git a/tests/target/reorder_modules/x87/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/x87/mod.rs similarity index 100% rename from tests/target/reorder_modules/x87/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/x87/mod.rs diff --git a/tests/target/reorder_modules/zyxwv/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules/zyxwv/mod.rs similarity index 100% rename from tests/target/reorder_modules/zyxwv/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules/zyxwv/mod.rs diff --git a/tests/target/reorder_modules_2027/abcde/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules_2027/abcde/mod.rs similarity index 100% rename from tests/target/reorder_modules_2027/abcde/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules_2027/abcde/mod.rs diff --git a/tests/target/reorder_modules_2027/zyxwv/mod.rs b/src/tools/rustfmt/tests/target/reorder_modules_2027/zyxwv/mod.rs similarity index 100% rename from tests/target/reorder_modules_2027/zyxwv/mod.rs rename to src/tools/rustfmt/tests/target/reorder_modules_2027/zyxwv/mod.rs diff --git a/tests/target/return-type-notation.rs b/src/tools/rustfmt/tests/target/return-type-notation.rs similarity index 100% rename from tests/target/return-type-notation.rs rename to src/tools/rustfmt/tests/target/return-type-notation.rs diff --git a/tests/target/should_not_format_string_when_format_strings_is_not_set.rs b/src/tools/rustfmt/tests/target/should_not_format_string_when_format_strings_is_not_set.rs similarity index 100% rename from tests/target/should_not_format_string_when_format_strings_is_not_set.rs rename to src/tools/rustfmt/tests/target/should_not_format_string_when_format_strings_is_not_set.rs diff --git a/tests/target/single-line-if-else.rs b/src/tools/rustfmt/tests/target/single-line-if-else.rs similarity index 100% rename from tests/target/single-line-if-else.rs rename to src/tools/rustfmt/tests/target/single-line-if-else.rs diff --git a/tests/target/single-line-macro/v1.rs b/src/tools/rustfmt/tests/target/single-line-macro/v1.rs similarity index 100% rename from tests/target/single-line-macro/v1.rs rename to src/tools/rustfmt/tests/target/single-line-macro/v1.rs diff --git a/tests/target/single-line-macro/v2.rs b/src/tools/rustfmt/tests/target/single-line-macro/v2.rs similarity index 100% rename from tests/target/single-line-macro/v2.rs rename to src/tools/rustfmt/tests/target/single-line-macro/v2.rs diff --git a/tests/target/skip.rs b/src/tools/rustfmt/tests/target/skip.rs similarity index 100% rename from tests/target/skip.rs rename to src/tools/rustfmt/tests/target/skip.rs diff --git a/tests/target/skip/foo.rs b/src/tools/rustfmt/tests/target/skip/foo.rs similarity index 100% rename from tests/target/skip/foo.rs rename to src/tools/rustfmt/tests/target/skip/foo.rs diff --git a/tests/target/skip/main.rs b/src/tools/rustfmt/tests/target/skip/main.rs similarity index 100% rename from tests/target/skip/main.rs rename to src/tools/rustfmt/tests/target/skip/main.rs diff --git a/tests/target/skip/preserve_trailing_comment.rs b/src/tools/rustfmt/tests/target/skip/preserve_trailing_comment.rs similarity index 100% rename from tests/target/skip/preserve_trailing_comment.rs rename to src/tools/rustfmt/tests/target/skip/preserve_trailing_comment.rs diff --git a/tests/target/skip_macro_invocations/all.rs b/src/tools/rustfmt/tests/target/skip_macro_invocations/all.rs similarity index 100% rename from tests/target/skip_macro_invocations/all.rs rename to src/tools/rustfmt/tests/target/skip_macro_invocations/all.rs diff --git a/tests/target/skip_macro_invocations/all_and_name.rs b/src/tools/rustfmt/tests/target/skip_macro_invocations/all_and_name.rs similarity index 100% rename from tests/target/skip_macro_invocations/all_and_name.rs rename to src/tools/rustfmt/tests/target/skip_macro_invocations/all_and_name.rs diff --git a/tests/target/skip_macro_invocations/config_file.rs b/src/tools/rustfmt/tests/target/skip_macro_invocations/config_file.rs similarity index 100% rename from tests/target/skip_macro_invocations/config_file.rs rename to src/tools/rustfmt/tests/target/skip_macro_invocations/config_file.rs diff --git a/tests/target/skip_macro_invocations/empty.rs b/src/tools/rustfmt/tests/target/skip_macro_invocations/empty.rs similarity index 100% rename from tests/target/skip_macro_invocations/empty.rs rename to src/tools/rustfmt/tests/target/skip_macro_invocations/empty.rs diff --git a/tests/target/skip_macro_invocations/name.rs b/src/tools/rustfmt/tests/target/skip_macro_invocations/name.rs similarity index 100% rename from tests/target/skip_macro_invocations/name.rs rename to src/tools/rustfmt/tests/target/skip_macro_invocations/name.rs diff --git a/tests/target/skip_macro_invocations/name_unknown.rs b/src/tools/rustfmt/tests/target/skip_macro_invocations/name_unknown.rs similarity index 100% rename from tests/target/skip_macro_invocations/name_unknown.rs rename to src/tools/rustfmt/tests/target/skip_macro_invocations/name_unknown.rs diff --git a/tests/target/skip_macro_invocations/names.rs b/src/tools/rustfmt/tests/target/skip_macro_invocations/names.rs similarity index 100% rename from tests/target/skip_macro_invocations/names.rs rename to src/tools/rustfmt/tests/target/skip_macro_invocations/names.rs diff --git a/tests/target/skip_macro_invocations/path_qualified_invocation_mismatch.rs b/src/tools/rustfmt/tests/target/skip_macro_invocations/path_qualified_invocation_mismatch.rs similarity index 100% rename from tests/target/skip_macro_invocations/path_qualified_invocation_mismatch.rs rename to src/tools/rustfmt/tests/target/skip_macro_invocations/path_qualified_invocation_mismatch.rs diff --git a/tests/target/skip_macro_invocations/path_qualified_match.rs b/src/tools/rustfmt/tests/target/skip_macro_invocations/path_qualified_match.rs similarity index 100% rename from tests/target/skip_macro_invocations/path_qualified_match.rs rename to src/tools/rustfmt/tests/target/skip_macro_invocations/path_qualified_match.rs diff --git a/tests/target/skip_macro_invocations/path_qualified_name_mismatch.rs b/src/tools/rustfmt/tests/target/skip_macro_invocations/path_qualified_name_mismatch.rs similarity index 100% rename from tests/target/skip_macro_invocations/path_qualified_name_mismatch.rs rename to src/tools/rustfmt/tests/target/skip_macro_invocations/path_qualified_name_mismatch.rs diff --git a/tests/target/skip_macro_invocations/use_alias_examples.rs b/src/tools/rustfmt/tests/target/skip_macro_invocations/use_alias_examples.rs similarity index 100% rename from tests/target/skip_macro_invocations/use_alias_examples.rs rename to src/tools/rustfmt/tests/target/skip_macro_invocations/use_alias_examples.rs diff --git a/tests/target/skip_mod.rs b/src/tools/rustfmt/tests/target/skip_mod.rs similarity index 100% rename from tests/target/skip_mod.rs rename to src/tools/rustfmt/tests/target/skip_mod.rs diff --git a/tests/target/soft-wrapping.rs b/src/tools/rustfmt/tests/target/soft-wrapping.rs similarity index 100% rename from tests/target/soft-wrapping.rs rename to src/tools/rustfmt/tests/target/soft-wrapping.rs diff --git a/tests/target/space-not-before-newline.rs b/src/tools/rustfmt/tests/target/space-not-before-newline.rs similarity index 100% rename from tests/target/space-not-before-newline.rs rename to src/tools/rustfmt/tests/target/space-not-before-newline.rs diff --git a/tests/target/spaces-around-ranges.rs b/src/tools/rustfmt/tests/target/spaces-around-ranges.rs similarity index 100% rename from tests/target/spaces-around-ranges.rs rename to src/tools/rustfmt/tests/target/spaces-around-ranges.rs diff --git a/tests/target/splat.rs b/src/tools/rustfmt/tests/target/splat.rs similarity index 100% rename from tests/target/splat.rs rename to src/tools/rustfmt/tests/target/splat.rs diff --git a/tests/target/statements.rs b/src/tools/rustfmt/tests/target/statements.rs similarity index 100% rename from tests/target/statements.rs rename to src/tools/rustfmt/tests/target/statements.rs diff --git a/tests/target/static.rs b/src/tools/rustfmt/tests/target/static.rs similarity index 100% rename from tests/target/static.rs rename to src/tools/rustfmt/tests/target/static.rs diff --git a/tests/target/string-lit-2.rs b/src/tools/rustfmt/tests/target/string-lit-2.rs similarity index 100% rename from tests/target/string-lit-2.rs rename to src/tools/rustfmt/tests/target/string-lit-2.rs diff --git a/tests/target/string-lit-custom.rs b/src/tools/rustfmt/tests/target/string-lit-custom.rs similarity index 100% rename from tests/target/string-lit-custom.rs rename to src/tools/rustfmt/tests/target/string-lit-custom.rs diff --git a/tests/target/string-lit.rs b/src/tools/rustfmt/tests/target/string-lit.rs similarity index 100% rename from tests/target/string-lit.rs rename to src/tools/rustfmt/tests/target/string-lit.rs diff --git a/tests/target/string_lit_unicode_ws.rs b/src/tools/rustfmt/tests/target/string_lit_unicode_ws.rs similarity index 100% rename from tests/target/string_lit_unicode_ws.rs rename to src/tools/rustfmt/tests/target/string_lit_unicode_ws.rs diff --git a/tests/target/string_punctuation.rs b/src/tools/rustfmt/tests/target/string_punctuation.rs similarity index 100% rename from tests/target/string_punctuation.rs rename to src/tools/rustfmt/tests/target/string_punctuation.rs diff --git a/tests/target/struct-field-attributes.rs b/src/tools/rustfmt/tests/target/struct-field-attributes.rs similarity index 100% rename from tests/target/struct-field-attributes.rs rename to src/tools/rustfmt/tests/target/struct-field-attributes.rs diff --git a/tests/target/struct_field_doc_comment.rs b/src/tools/rustfmt/tests/target/struct_field_doc_comment.rs similarity index 100% rename from tests/target/struct_field_doc_comment.rs rename to src/tools/rustfmt/tests/target/struct_field_doc_comment.rs diff --git a/tests/target/struct_lits.rs b/src/tools/rustfmt/tests/target/struct_lits.rs similarity index 100% rename from tests/target/struct_lits.rs rename to src/tools/rustfmt/tests/target/struct_lits.rs diff --git a/tests/target/struct_lits_multiline.rs b/src/tools/rustfmt/tests/target/struct_lits_multiline.rs similarity index 100% rename from tests/target/struct_lits_multiline.rs rename to src/tools/rustfmt/tests/target/struct_lits_multiline.rs diff --git a/tests/target/struct_lits_visual.rs b/src/tools/rustfmt/tests/target/struct_lits_visual.rs similarity index 100% rename from tests/target/struct_lits_visual.rs rename to src/tools/rustfmt/tests/target/struct_lits_visual.rs diff --git a/tests/target/struct_lits_visual_multiline.rs b/src/tools/rustfmt/tests/target/struct_lits_visual_multiline.rs similarity index 100% rename from tests/target/struct_lits_visual_multiline.rs rename to src/tools/rustfmt/tests/target/struct_lits_visual_multiline.rs diff --git a/tests/target/struct_tuple_visual.rs b/src/tools/rustfmt/tests/target/struct_tuple_visual.rs similarity index 100% rename from tests/target/struct_tuple_visual.rs rename to src/tools/rustfmt/tests/target/struct_tuple_visual.rs diff --git a/tests/target/structs.rs b/src/tools/rustfmt/tests/target/structs.rs similarity index 100% rename from tests/target/structs.rs rename to src/tools/rustfmt/tests/target/structs.rs diff --git a/tests/target/style_edition/default.rs b/src/tools/rustfmt/tests/target/style_edition/default.rs similarity index 100% rename from tests/target/style_edition/default.rs rename to src/tools/rustfmt/tests/target/style_edition/default.rs diff --git a/tests/target/style_edition/follows_edition.rs b/src/tools/rustfmt/tests/target/style_edition/follows_edition.rs similarity index 100% rename from tests/target/style_edition/follows_edition.rs rename to src/tools/rustfmt/tests/target/style_edition/follows_edition.rs diff --git a/tests/target/style_edition/overrides_edition_when_set.rs b/src/tools/rustfmt/tests/target/style_edition/overrides_edition_when_set.rs similarity index 100% rename from tests/target/style_edition/overrides_edition_when_set.rs rename to src/tools/rustfmt/tests/target/style_edition/overrides_edition_when_set.rs diff --git a/tests/target/super_let.rs b/src/tools/rustfmt/tests/target/super_let.rs similarity index 100% rename from tests/target/super_let.rs rename to src/tools/rustfmt/tests/target/super_let.rs diff --git a/tests/target/trailing-comma-never.rs b/src/tools/rustfmt/tests/target/trailing-comma-never.rs similarity index 100% rename from tests/target/trailing-comma-never.rs rename to src/tools/rustfmt/tests/target/trailing-comma-never.rs diff --git a/tests/target/trailing-semicolon/loop-bodies-edition-2021-style-edition-2027.rs b/src/tools/rustfmt/tests/target/trailing-semicolon/loop-bodies-edition-2021-style-edition-2027.rs similarity index 100% rename from tests/target/trailing-semicolon/loop-bodies-edition-2021-style-edition-2027.rs rename to src/tools/rustfmt/tests/target/trailing-semicolon/loop-bodies-edition-2021-style-edition-2027.rs diff --git a/tests/target/trailing-semicolon/loop-bodies-edition-2024-style-edition-2024.rs b/src/tools/rustfmt/tests/target/trailing-semicolon/loop-bodies-edition-2024-style-edition-2024.rs similarity index 100% rename from tests/target/trailing-semicolon/loop-bodies-edition-2024-style-edition-2024.rs rename to src/tools/rustfmt/tests/target/trailing-semicolon/loop-bodies-edition-2024-style-edition-2024.rs diff --git a/tests/target/trailing-semicolon/loop-bodies.rs b/src/tools/rustfmt/tests/target/trailing-semicolon/loop-bodies.rs similarity index 100% rename from tests/target/trailing-semicolon/loop-bodies.rs rename to src/tools/rustfmt/tests/target/trailing-semicolon/loop-bodies.rs diff --git a/tests/target/trailing_commas.rs b/src/tools/rustfmt/tests/target/trailing_commas.rs similarity index 100% rename from tests/target/trailing_commas.rs rename to src/tools/rustfmt/tests/target/trailing_commas.rs diff --git a/tests/target/trailing_comments/hard_tabs.rs b/src/tools/rustfmt/tests/target/trailing_comments/hard_tabs.rs similarity index 100% rename from tests/target/trailing_comments/hard_tabs.rs rename to src/tools/rustfmt/tests/target/trailing_comments/hard_tabs.rs diff --git a/tests/target/trailing_comments/soft_tabs.rs b/src/tools/rustfmt/tests/target/trailing_comments/soft_tabs.rs similarity index 100% rename from tests/target/trailing_comments/soft_tabs.rs rename to src/tools/rustfmt/tests/target/trailing_comments/soft_tabs.rs diff --git a/tests/target/trait.rs b/src/tools/rustfmt/tests/target/trait.rs similarity index 100% rename from tests/target/trait.rs rename to src/tools/rustfmt/tests/target/trait.rs diff --git a/tests/target/try-conversion.rs b/src/tools/rustfmt/tests/target/try-conversion.rs similarity index 100% rename from tests/target/try-conversion.rs rename to src/tools/rustfmt/tests/target/try-conversion.rs diff --git a/tests/target/try_block.rs b/src/tools/rustfmt/tests/target/try_block.rs similarity index 100% rename from tests/target/try_block.rs rename to src/tools/rustfmt/tests/target/try_block.rs diff --git a/tests/target/try_blocks_heterogeneous.rs b/src/tools/rustfmt/tests/target/try_blocks_heterogeneous.rs similarity index 100% rename from tests/target/try_blocks_heterogeneous.rs rename to src/tools/rustfmt/tests/target/try_blocks_heterogeneous.rs diff --git a/tests/target/tuple.rs b/src/tools/rustfmt/tests/target/tuple.rs similarity index 100% rename from tests/target/tuple.rs rename to src/tools/rustfmt/tests/target/tuple.rs diff --git a/tests/target/tuple_v2.rs b/src/tools/rustfmt/tests/target/tuple_v2.rs similarity index 100% rename from tests/target/tuple_v2.rs rename to src/tools/rustfmt/tests/target/tuple_v2.rs diff --git a/tests/target/type-alias-where-clauses-with-comments.rs b/src/tools/rustfmt/tests/target/type-alias-where-clauses-with-comments.rs similarity index 100% rename from tests/target/type-alias-where-clauses-with-comments.rs rename to src/tools/rustfmt/tests/target/type-alias-where-clauses-with-comments.rs diff --git a/tests/target/type-alias-where-clauses.rs b/src/tools/rustfmt/tests/target/type-alias-where-clauses.rs similarity index 100% rename from tests/target/type-alias-where-clauses.rs rename to src/tools/rustfmt/tests/target/type-alias-where-clauses.rs diff --git a/tests/target/type.rs b/src/tools/rustfmt/tests/target/type.rs similarity index 100% rename from tests/target/type.rs rename to src/tools/rustfmt/tests/target/type.rs diff --git a/tests/target/type_alias.rs b/src/tools/rustfmt/tests/target/type_alias.rs similarity index 100% rename from tests/target/type_alias.rs rename to src/tools/rustfmt/tests/target/type_alias.rs diff --git a/tests/target/unicode.rs b/src/tools/rustfmt/tests/target/unicode.rs similarity index 100% rename from tests/target/unicode.rs rename to src/tools/rustfmt/tests/target/unicode.rs diff --git a/tests/target/unindent_if_else_cond_comment.rs b/src/tools/rustfmt/tests/target/unindent_if_else_cond_comment.rs similarity index 100% rename from tests/target/unindent_if_else_cond_comment.rs rename to src/tools/rustfmt/tests/target/unindent_if_else_cond_comment.rs diff --git a/tests/target/unions.rs b/src/tools/rustfmt/tests/target/unions.rs similarity index 100% rename from tests/target/unions.rs rename to src/tools/rustfmt/tests/target/unions.rs diff --git a/tests/target/unsafe-binders.rs b/src/tools/rustfmt/tests/target/unsafe-binders.rs similarity index 100% rename from tests/target/unsafe-binders.rs rename to src/tools/rustfmt/tests/target/unsafe-binders.rs diff --git a/tests/target/unsafe-field.rs b/src/tools/rustfmt/tests/target/unsafe-field.rs similarity index 100% rename from tests/target/unsafe-field.rs rename to src/tools/rustfmt/tests/target/unsafe-field.rs diff --git a/tests/target/unsafe-mod.rs b/src/tools/rustfmt/tests/target/unsafe-mod.rs similarity index 100% rename from tests/target/unsafe-mod.rs rename to src/tools/rustfmt/tests/target/unsafe-mod.rs diff --git a/tests/target/unsafe_attributes.rs b/src/tools/rustfmt/tests/target/unsafe_attributes.rs similarity index 100% rename from tests/target/unsafe_attributes.rs rename to src/tools/rustfmt/tests/target/unsafe_attributes.rs diff --git a/tests/target/unsafe_extern_blocks.rs b/src/tools/rustfmt/tests/target/unsafe_extern_blocks.rs similarity index 100% rename from tests/target/unsafe_extern_blocks.rs rename to src/tools/rustfmt/tests/target/unsafe_extern_blocks.rs diff --git a/tests/target/use-identifier-order-mixed-edition.rs b/src/tools/rustfmt/tests/target/use-identifier-order-mixed-edition.rs similarity index 100% rename from tests/target/use-identifier-order-mixed-edition.rs rename to src/tools/rustfmt/tests/target/use-identifier-order-mixed-edition.rs diff --git a/tests/target/use-identifier-order.rs b/src/tools/rustfmt/tests/target/use-identifier-order.rs similarity index 100% rename from tests/target/use-identifier-order.rs rename to src/tools/rustfmt/tests/target/use-identifier-order.rs diff --git a/tests/target/visibility.rs b/src/tools/rustfmt/tests/target/visibility.rs similarity index 100% rename from tests/target/visibility.rs rename to src/tools/rustfmt/tests/target/visibility.rs diff --git a/tests/target/visual-fn-type.rs b/src/tools/rustfmt/tests/target/visual-fn-type.rs similarity index 100% rename from tests/target/visual-fn-type.rs rename to src/tools/rustfmt/tests/target/visual-fn-type.rs diff --git a/tests/target/where-clause-rfc.rs b/src/tools/rustfmt/tests/target/where-clause-rfc.rs similarity index 100% rename from tests/target/where-clause-rfc.rs rename to src/tools/rustfmt/tests/target/where-clause-rfc.rs diff --git a/tests/target/where-clause.rs b/src/tools/rustfmt/tests/target/where-clause.rs similarity index 100% rename from tests/target/where-clause.rs rename to src/tools/rustfmt/tests/target/where-clause.rs diff --git a/tests/target/width-heuristics.rs b/src/tools/rustfmt/tests/target/width-heuristics.rs similarity index 100% rename from tests/target/width-heuristics.rs rename to src/tools/rustfmt/tests/target/width-heuristics.rs diff --git a/tests/target/wrap_comments_should_not_imply_format_doc_comments.rs b/src/tools/rustfmt/tests/target/wrap_comments_should_not_imply_format_doc_comments.rs similarity index 100% rename from tests/target/wrap_comments_should_not_imply_format_doc_comments.rs rename to src/tools/rustfmt/tests/target/wrap_comments_should_not_imply_format_doc_comments.rs diff --git a/tests/warning/snapshots/deprecated_skip.snap b/src/tools/rustfmt/tests/warning/snapshots/deprecated_skip.snap similarity index 100% rename from tests/warning/snapshots/deprecated_skip.snap rename to src/tools/rustfmt/tests/warning/snapshots/deprecated_skip.snap diff --git a/tests/warning/snapshots/invalid_attribute.snap b/src/tools/rustfmt/tests/warning/snapshots/invalid_attribute.snap similarity index 100% rename from tests/warning/snapshots/invalid_attribute.snap rename to src/tools/rustfmt/tests/warning/snapshots/invalid_attribute.snap diff --git a/tests/warning/snapshots/issue_3950.snap b/src/tools/rustfmt/tests/warning/snapshots/issue_3950.snap similarity index 100% rename from tests/warning/snapshots/issue_3950.snap rename to src/tools/rustfmt/tests/warning/snapshots/issue_3950.snap diff --git a/tests/warning/snapshots/issue_4968.snap b/src/tools/rustfmt/tests/warning/snapshots/issue_4968.snap similarity index 100% rename from tests/warning/snapshots/issue_4968.snap rename to src/tools/rustfmt/tests/warning/snapshots/issue_4968.snap diff --git a/tests/warning/snapshots/issue_6442.snap b/src/tools/rustfmt/tests/warning/snapshots/issue_6442.snap similarity index 100% rename from tests/warning/snapshots/issue_6442.snap rename to src/tools/rustfmt/tests/warning/snapshots/issue_6442.snap diff --git a/tests/warning/snapshots/issue_6632.snap b/src/tools/rustfmt/tests/warning/snapshots/issue_6632.snap similarity index 100% rename from tests/warning/snapshots/issue_6632.snap rename to src/tools/rustfmt/tests/warning/snapshots/issue_6632.snap diff --git a/tests/warning/snapshots/issue_6826.snap b/src/tools/rustfmt/tests/warning/snapshots/issue_6826.snap similarity index 100% rename from tests/warning/snapshots/issue_6826.snap rename to src/tools/rustfmt/tests/warning/snapshots/issue_6826.snap diff --git a/tests/warning/snapshots/issue_6850.snap b/src/tools/rustfmt/tests/warning/snapshots/issue_6850.snap similarity index 100% rename from tests/warning/snapshots/issue_6850.snap rename to src/tools/rustfmt/tests/warning/snapshots/issue_6850.snap diff --git a/tests/warning/snapshots/line_overflow.snap b/src/tools/rustfmt/tests/warning/snapshots/line_overflow.snap similarity index 100% rename from tests/warning/snapshots/line_overflow.snap rename to src/tools/rustfmt/tests/warning/snapshots/line_overflow.snap diff --git a/tests/warning/snapshots/line_overflow_tabs.snap b/src/tools/rustfmt/tests/warning/snapshots/line_overflow_tabs.snap similarity index 100% rename from tests/warning/snapshots/line_overflow_tabs.snap rename to src/tools/rustfmt/tests/warning/snapshots/line_overflow_tabs.snap diff --git a/tests/warning/snapshots/line_overflow_with_trailing_whitespace.snap b/src/tools/rustfmt/tests/warning/snapshots/line_overflow_with_trailing_whitespace.snap similarity index 100% rename from tests/warning/snapshots/line_overflow_with_trailing_whitespace.snap rename to src/tools/rustfmt/tests/warning/snapshots/line_overflow_with_trailing_whitespace.snap diff --git a/tests/warning/snapshots/lost_comment.snap b/src/tools/rustfmt/tests/warning/snapshots/lost_comment.snap similarity index 100% rename from tests/warning/snapshots/lost_comment.snap rename to src/tools/rustfmt/tests/warning/snapshots/lost_comment.snap diff --git a/tests/warning/snapshots/multiple_errors.snap b/src/tools/rustfmt/tests/warning/snapshots/multiple_errors.snap similarity index 100% rename from tests/warning/snapshots/multiple_errors.snap rename to src/tools/rustfmt/tests/warning/snapshots/multiple_errors.snap diff --git a/tests/warning/snapshots/trailing_whitespace.snap b/src/tools/rustfmt/tests/warning/snapshots/trailing_whitespace.snap similarity index 100% rename from tests/warning/snapshots/trailing_whitespace.snap rename to src/tools/rustfmt/tests/warning/snapshots/trailing_whitespace.snap diff --git a/tests/warning/snapshots/trailing_whitespace_overflow.snap b/src/tools/rustfmt/tests/warning/snapshots/trailing_whitespace_overflow.snap similarity index 100% rename from tests/warning/snapshots/trailing_whitespace_overflow.snap rename to src/tools/rustfmt/tests/warning/snapshots/trailing_whitespace_overflow.snap diff --git a/tests/warning/snapshots/unicode_trailing_whitespace.snap b/src/tools/rustfmt/tests/warning/snapshots/unicode_trailing_whitespace.snap similarity index 100% rename from tests/warning/snapshots/unicode_trailing_whitespace.snap rename to src/tools/rustfmt/tests/warning/snapshots/unicode_trailing_whitespace.snap diff --git a/tests/warning/source/deprecated_skip.rs b/src/tools/rustfmt/tests/warning/source/deprecated_skip.rs similarity index 100% rename from tests/warning/source/deprecated_skip.rs rename to src/tools/rustfmt/tests/warning/source/deprecated_skip.rs diff --git a/tests/warning/source/invalid_attribute.rs b/src/tools/rustfmt/tests/warning/source/invalid_attribute.rs similarity index 100% rename from tests/warning/source/invalid_attribute.rs rename to src/tools/rustfmt/tests/warning/source/invalid_attribute.rs diff --git a/tests/warning/source/issue_3950.rs b/src/tools/rustfmt/tests/warning/source/issue_3950.rs similarity index 100% rename from tests/warning/source/issue_3950.rs rename to src/tools/rustfmt/tests/warning/source/issue_3950.rs diff --git a/tests/warning/source/issue_4968.rs b/src/tools/rustfmt/tests/warning/source/issue_4968.rs similarity index 100% rename from tests/warning/source/issue_4968.rs rename to src/tools/rustfmt/tests/warning/source/issue_4968.rs diff --git a/tests/warning/source/issue_6442.rs b/src/tools/rustfmt/tests/warning/source/issue_6442.rs similarity index 100% rename from tests/warning/source/issue_6442.rs rename to src/tools/rustfmt/tests/warning/source/issue_6442.rs diff --git a/tests/warning/source/issue_6632.rs b/src/tools/rustfmt/tests/warning/source/issue_6632.rs similarity index 100% rename from tests/warning/source/issue_6632.rs rename to src/tools/rustfmt/tests/warning/source/issue_6632.rs diff --git a/tests/warning/source/issue_6826.rs b/src/tools/rustfmt/tests/warning/source/issue_6826.rs similarity index 100% rename from tests/warning/source/issue_6826.rs rename to src/tools/rustfmt/tests/warning/source/issue_6826.rs diff --git a/tests/warning/source/issue_6850.rs b/src/tools/rustfmt/tests/warning/source/issue_6850.rs similarity index 100% rename from tests/warning/source/issue_6850.rs rename to src/tools/rustfmt/tests/warning/source/issue_6850.rs diff --git a/tests/warning/source/line_overflow.rs b/src/tools/rustfmt/tests/warning/source/line_overflow.rs similarity index 100% rename from tests/warning/source/line_overflow.rs rename to src/tools/rustfmt/tests/warning/source/line_overflow.rs diff --git a/tests/warning/source/line_overflow_tabs.rs b/src/tools/rustfmt/tests/warning/source/line_overflow_tabs.rs similarity index 100% rename from tests/warning/source/line_overflow_tabs.rs rename to src/tools/rustfmt/tests/warning/source/line_overflow_tabs.rs diff --git a/tests/warning/source/line_overflow_with_trailing_whitespace.rs b/src/tools/rustfmt/tests/warning/source/line_overflow_with_trailing_whitespace.rs similarity index 100% rename from tests/warning/source/line_overflow_with_trailing_whitespace.rs rename to src/tools/rustfmt/tests/warning/source/line_overflow_with_trailing_whitespace.rs diff --git a/tests/warning/source/lost_comment.rs b/src/tools/rustfmt/tests/warning/source/lost_comment.rs similarity index 100% rename from tests/warning/source/lost_comment.rs rename to src/tools/rustfmt/tests/warning/source/lost_comment.rs diff --git a/tests/warning/source/multiple_errors.rs b/src/tools/rustfmt/tests/warning/source/multiple_errors.rs similarity index 100% rename from tests/warning/source/multiple_errors.rs rename to src/tools/rustfmt/tests/warning/source/multiple_errors.rs diff --git a/tests/warning/source/trailing_whitespace.rs b/src/tools/rustfmt/tests/warning/source/trailing_whitespace.rs similarity index 100% rename from tests/warning/source/trailing_whitespace.rs rename to src/tools/rustfmt/tests/warning/source/trailing_whitespace.rs diff --git a/tests/warning/source/trailing_whitespace_overflow.rs b/src/tools/rustfmt/tests/warning/source/trailing_whitespace_overflow.rs similarity index 100% rename from tests/warning/source/trailing_whitespace_overflow.rs rename to src/tools/rustfmt/tests/warning/source/trailing_whitespace_overflow.rs diff --git a/tests/warning/source/unicode_trailing_whitespace.rs b/src/tools/rustfmt/tests/warning/source/unicode_trailing_whitespace.rs similarity index 100% rename from tests/warning/source/unicode_trailing_whitespace.rs rename to src/tools/rustfmt/tests/warning/source/unicode_trailing_whitespace.rs diff --git a/tests/writemode/source/fn-single-line.rs b/src/tools/rustfmt/tests/writemode/source/fn-single-line.rs similarity index 100% rename from tests/writemode/source/fn-single-line.rs rename to src/tools/rustfmt/tests/writemode/source/fn-single-line.rs diff --git a/tests/writemode/source/json.rs b/src/tools/rustfmt/tests/writemode/source/json.rs similarity index 100% rename from tests/writemode/source/json.rs rename to src/tools/rustfmt/tests/writemode/source/json.rs diff --git a/tests/writemode/source/modified.rs b/src/tools/rustfmt/tests/writemode/source/modified.rs similarity index 100% rename from tests/writemode/source/modified.rs rename to src/tools/rustfmt/tests/writemode/source/modified.rs diff --git a/tests/writemode/source/stdin.rs b/src/tools/rustfmt/tests/writemode/source/stdin.rs similarity index 100% rename from tests/writemode/source/stdin.rs rename to src/tools/rustfmt/tests/writemode/source/stdin.rs diff --git a/tests/writemode/target/checkstyle.xml b/src/tools/rustfmt/tests/writemode/target/checkstyle.xml similarity index 100% rename from tests/writemode/target/checkstyle.xml rename to src/tools/rustfmt/tests/writemode/target/checkstyle.xml diff --git a/tests/writemode/target/modified.txt b/src/tools/rustfmt/tests/writemode/target/modified.txt similarity index 100% rename from tests/writemode/target/modified.txt rename to src/tools/rustfmt/tests/writemode/target/modified.txt diff --git a/tests/writemode/target/output.json b/src/tools/rustfmt/tests/writemode/target/output.json similarity index 100% rename from tests/writemode/target/output.json rename to src/tools/rustfmt/tests/writemode/target/output.json diff --git a/tests/writemode/target/stdin.json b/src/tools/rustfmt/tests/writemode/target/stdin.json similarity index 100% rename from tests/writemode/target/stdin.json rename to src/tools/rustfmt/tests/writemode/target/stdin.json diff --git a/tests/writemode/target/stdin.xml b/src/tools/rustfmt/tests/writemode/target/stdin.xml similarity index 100% rename from tests/writemode/target/stdin.xml rename to src/tools/rustfmt/tests/writemode/target/stdin.xml diff --git a/triagebot.toml b/src/tools/rustfmt/triagebot.toml similarity index 100% rename from triagebot.toml rename to src/tools/rustfmt/triagebot.toml From 880d20ea14d42476d70499dcc39c808cf5d6cc25 Mon Sep 17 00:00:00 2001 From: rami3l Date: Fri, 11 Sep 2026 21:18:55 +0200 Subject: [PATCH 02/16] refactor(config): extract `resolve_project_file()` and `config_from_user_dirs()` --- src/tools/rustfmt/src/config/mod.rs | 92 +++++++++++++++-------------- 1 file changed, 48 insertions(+), 44 deletions(-) diff --git a/src/tools/rustfmt/src/config/mod.rs b/src/tools/rustfmt/src/config/mod.rs index a3f9842cd4f7f..abbbd1d913b9c 100644 --- a/src/tools/rustfmt/src/config/mod.rs +++ b/src/tools/rustfmt/src/config/mod.rs @@ -354,50 +354,7 @@ impl Config { style_edition: Option, version: Option, ) -> Result<(Config, Option), Error> { - /// Try to find a project file in the given directory and its parents. - /// Returns the path of the nearest project file if one exists, - /// or `None` if no project file was found. - fn resolve_project_file(dir: &Path) -> Result, Error> { - let mut current = if dir.is_relative() { - env::current_dir()?.join(dir) - } else { - dir.to_path_buf() - }; - - current = fs::canonicalize(current)?; - - loop { - match get_toml_path(¤t) { - Ok(Some(path)) => return Ok(Some(path)), - Err(e) => return Err(e), - _ => (), - } - - // If the current directory has no parent, we're done searching. - if !current.pop() { - break; - } - } - - // If nothing was found, check in the home directory. - if let Some(home_dir) = dirs::home_dir() { - if let Some(path) = get_toml_path(&home_dir)? { - return Ok(Some(path)); - } - } - - // If none was found there either, check in the user's configuration directory. - if let Some(mut config_dir) = dirs::config_dir() { - config_dir.push("rustfmt"); - if let Some(path) = get_toml_path(&config_dir)? { - return Ok(Some(path)); - } - } - - Ok(None) - } - - match resolve_project_file(dir)? { + match resolve_project_file(dir).or_else(|_| config_from_user_dirs())? { None => Ok(( Config::default_for_possible_style_edition(style_edition, edition, version), None, @@ -455,6 +412,53 @@ impl Config { } } +/// Looks for a configuration file in the given directory and its parents. +/// +/// Returns the path of the configuration file nearest to that directory if one exists, or `None` if +/// none was found. +fn resolve_project_file(dir: &Path) -> Result, Error> { + let mut current = if dir.is_relative() { + env::current_dir()?.join(dir) + } else { + dir.to_path_buf() + }; + + current = fs::canonicalize(current)?; + + loop { + match get_toml_path(¤t) { + Ok(Some(path)) => return Ok(Some(path)), + Err(e) => return Err(e), + _ => (), + } + + // If the current directory has no parent, we're done searching. + if !current.pop() { + break Ok(None); + } + } +} + +/// Looks for a configuration file in the user's home directory and configuration directory. +/// +/// Returns the path of the first configuration file found in that order, or `None` if none was +/// found. +fn config_from_user_dirs() -> Result, Error> { + for dir in [ + dirs::home_dir(), + dirs::config_dir().map(|d| d.join("rustfmt")), + ] + .iter() + .flatten() + { + if let Some(path) = get_toml_path(&dir)? { + return Ok(Some(path)); + } + } + + Ok(None) +} + /// Loads a config by checking the client-supplied options and if appropriate, the /// file system (including searching the file system for overrides). pub fn load_config( From ec2bb9caaaef73ef1e1b5f0e6d3e779913a9c32f Mon Sep 17 00:00:00 2001 From: rami3l Date: Fri, 11 Sep 2026 21:40:19 +0200 Subject: [PATCH 03/16] fix(config): search for config file recursively on `--config-path` --- src/tools/rustfmt/src/config/mod.rs | 9 +-------- src/tools/rustfmt/tests/rustfmt/main.rs | 12 ++++-------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/src/tools/rustfmt/src/config/mod.rs b/src/tools/rustfmt/src/config/mod.rs index abbbd1d913b9c..780402d21fe29 100644 --- a/src/tools/rustfmt/src/config/mod.rs +++ b/src/tools/rustfmt/src/config/mod.rs @@ -538,14 +538,7 @@ fn config_path(options: &dyn CliOptions) -> Result, Error> { // If a config file cannot be found from the given path, return error. match options.config_path() { Some(path) if !path.exists() => config_path_not_found(path.to_str().unwrap()), - Some(path) if path.is_dir() => { - let config_file_path = get_toml_path(path)?; - if config_file_path.is_some() { - Ok(config_file_path) - } else { - config_path_not_found(path.to_str().unwrap()) - } - } + Some(path) if path.is_dir() => resolve_project_file(path), Some(path) => Ok(Some( // Canonicalize only after checking above that the `path.exists()`. path.canonicalize()?, diff --git a/src/tools/rustfmt/tests/rustfmt/main.rs b/src/tools/rustfmt/tests/rustfmt/main.rs index 7d60f3343f646..e04fae7ad043c 100644 --- a/src/tools/rustfmt/tests/rustfmt/main.rs +++ b/src/tools/rustfmt/tests/rustfmt/main.rs @@ -346,19 +346,15 @@ fn rustfmt_error_improvement_regarding_invalid_toml() { } #[test] -fn config_path_does_not_walk_parent_directories_with_dir_name() { +fn config_path_walks_parent_directories_with_dir_name() { let src_dir = "tests/config/issue_4660/inner_lib/src"; let src_file = src_dir.to_owned() + "/lib.rs"; let args = ["--config-path", src_dir, "--check", &src_file]; let (stdout, stderr) = rustfmt(&args); - assert_eq!( - stderr, - format!( - "Error: unable to find a config file for the given path: `{}`\n", - Path::new(src_dir).display(), - ) - ); + assert_eq!(stderr, ""); + // Due to `disable_all_formatting = true` in `tests/config/issue_4660/inner_lib/rustfmt.toml`, + // the source file should not be modified. assert_eq!(stdout, ""); } From 684d929f9d6e59720e3f550b580cad2d59b55508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Tue, 22 Sep 2026 10:46:50 +0200 Subject: [PATCH 04/16] Rename `rust-toolchain` to `rust-toolchain.toml` To ensure compatibility with Josh. The old name is legacy anyway. --- src/tools/rustfmt/Subtree sync procedure.md | 2 +- src/tools/rustfmt/{rust-toolchain => rust-toolchain.toml} | 0 src/tools/rustfmt/src/bin/main.rs | 4 ---- src/tools/rustfmt/src/lib.rs | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) rename src/tools/rustfmt/{rust-toolchain => rust-toolchain.toml} (100%) diff --git a/src/tools/rustfmt/Subtree sync procedure.md b/src/tools/rustfmt/Subtree sync procedure.md index 99e01486ed1be..e993456f8bc37 100644 --- a/src/tools/rustfmt/Subtree sync procedure.md +++ b/src/tools/rustfmt/Subtree sync procedure.md @@ -100,7 +100,7 @@ $ git merge upstream/main --no-ff ### 4. Bump the nightly toolchain version in the `rustfmt` repository Using the same latest nightly date (that you can obtain by inspecting `rustup check` output), -manually edit `rust-toolchain`: +manually edit `rust-toolchain.toml`: ```diff [toolchain] diff --git a/src/tools/rustfmt/rust-toolchain b/src/tools/rustfmt/rust-toolchain.toml similarity index 100% rename from src/tools/rustfmt/rust-toolchain rename to src/tools/rustfmt/rust-toolchain.toml diff --git a/src/tools/rustfmt/src/bin/main.rs b/src/tools/rustfmt/src/bin/main.rs index ffe9aa7e3a49c..05a22324d0f68 100644 --- a/src/tools/rustfmt/src/bin/main.rs +++ b/src/tools/rustfmt/src/bin/main.rs @@ -671,10 +671,6 @@ impl GetOptsOptions { } } - if let Some(ref edition_str) = matches.opt_str("style-edition") { - options.style_edition = Some(style_edition_from_style_edition_str(edition_str)?); - } - Ok(options) } diff --git a/src/tools/rustfmt/src/lib.rs b/src/tools/rustfmt/src/lib.rs index f54d0641f4629..285fa26d00a50 100644 --- a/src/tools/rustfmt/src/lib.rs +++ b/src/tools/rustfmt/src/lib.rs @@ -3,7 +3,6 @@ #![warn(unreachable_pub)] #![recursion_limit = "256"] #![allow(clippy::match_like_matches_macro)] -#![allow(unreachable_pub)] // N.B. these crates are loaded from the sysroot, so they need extern crate. extern crate rustc_ast; From d91799db579293c0e50df4daf64fd5ec33aa628a Mon Sep 17 00:00:00 2001 From: Matthew Hughes Date: Wed, 2 Sep 2026 19:50:34 +0100 Subject: [PATCH 05/16] `chain`: drop redundant check While processing children in a chain, e.g. the `1.foo.bar` in `root.1.foo.bar` there was a check that would skip handling comments (and so remove them) if the `use_try_shorthand` config option was set. This is because earlier in the processing (trace: `Chain::from_ast` -> `Chain::make_subexpr_list` -> `Chain::pop_expr_chain`) we would replace `try!(..)` expressions with `?` ones but _not_ update spans, so things would get confused later if we tried to use these spans to recover comments. However, it's not possible for a `try!` macro to appear as a child, e.g. `root.try!(bar);`, so this check is unnecessary. There are added parser failure tests to demonstrate this. Aside: Of course a: `try!` can be the _root_ of a chain `try!(foo).bar` is perfectly valid. And `?` can be used anywhere in a chain: `foo.try!(bar)` is invalid, but `foo.bar?` is valid. This change only focuses on the `try!` macros. Fixes: rust-lang/rustfmt#6121 --- src/tools/rustfmt/src/chains.rs | 4 +--- src/tools/rustfmt/src/test/parser.rs | 12 ++++++++++++ .../tests/parser/try_macro_cant_be_chain_child.rs | 6 ++++++ .../parser/try_macro_literal_cant_be_chain_child.rs | 3 +++ src/tools/rustfmt/tests/source/issue_6121.rs | 10 ++++++++++ src/tools/rustfmt/tests/target/issue_6121.rs | 10 ++++++++++ 6 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 src/tools/rustfmt/tests/parser/try_macro_cant_be_chain_child.rs create mode 100644 src/tools/rustfmt/tests/parser/try_macro_literal_cant_be_chain_child.rs create mode 100644 src/tools/rustfmt/tests/source/issue_6121.rs create mode 100644 src/tools/rustfmt/tests/target/issue_6121.rs diff --git a/src/tools/rustfmt/src/chains.rs b/src/tools/rustfmt/src/chains.rs index 6d087816c0ac3..77e8341970f5f 100644 --- a/src/tools/rustfmt/src/chains.rs +++ b/src/tools/rustfmt/src/chains.rs @@ -463,9 +463,7 @@ impl Chain { } while let Some(chain_item) = iter.next() { let comment_snippet = context.snippet(chain_item.span); - // FIXME: Figure out the way to get a correct span when converting `try!` to `?`. - let handle_comment = - !(context.config.use_try_shorthand() || is_tries(comment_snippet.trim())); + let handle_comment = !is_tries(comment_snippet.trim()); // Pre-comment if handle_comment { diff --git a/src/tools/rustfmt/src/test/parser.rs b/src/tools/rustfmt/src/test/parser.rs index 04b4d3b362b0c..c8cd419a9c958 100644 --- a/src/tools/rustfmt/src/test/parser.rs +++ b/src/tools/rustfmt/src/test/parser.rs @@ -76,3 +76,15 @@ fn crate_parsing_stashed_diag2() { let filename = "tests/parser/stashed-diag2.rs"; assert_parser_error(filename); } + +#[test] +fn try_macro_cant_be_chain_child() { + let filename = "tests/parser/try_macro_cant_be_chain_child.rs"; + assert_parser_error(filename); +} + +#[test] +fn try_macro_literal_cant_be_chain_child() { + let filename = "tests/parser/try_macro_literal_cant_be_chain_child.rs"; + assert_parser_error(filename); +} diff --git a/src/tools/rustfmt/tests/parser/try_macro_cant_be_chain_child.rs b/src/tools/rustfmt/tests/parser/try_macro_cant_be_chain_child.rs new file mode 100644 index 0000000000000..98beb566f82f7 --- /dev/null +++ b/src/tools/rustfmt/tests/parser/try_macro_cant_be_chain_child.rs @@ -0,0 +1,6 @@ +// rustfmt-edition: 2015 +// set edition for clarity, since 'try' became a reserved keyword in editions >=2018 + +fn main() { + some_expr.try!(anything) +} diff --git a/src/tools/rustfmt/tests/parser/try_macro_literal_cant_be_chain_child.rs b/src/tools/rustfmt/tests/parser/try_macro_literal_cant_be_chain_child.rs new file mode 100644 index 0000000000000..f2d1acbd56f11 --- /dev/null +++ b/src/tools/rustfmt/tests/parser/try_macro_literal_cant_be_chain_child.rs @@ -0,0 +1,3 @@ +fn main() { + some_expr.r#try!(anything) +} diff --git a/src/tools/rustfmt/tests/source/issue_6121.rs b/src/tools/rustfmt/tests/source/issue_6121.rs new file mode 100644 index 0000000000000..4d58766638e7a --- /dev/null +++ b/src/tools/rustfmt/tests/source/issue_6121.rs @@ -0,0 +1,10 @@ +// rustfmt-use_try_shorthand: true + +fn main() { + let e: Result<(), &str> = Ok(()); + let _e = e // hello comment + .map_err(|_| "This is an error message") // Hello comment - Fails to format + .map(|_| ()); + + println!("Hello, world!"); +} diff --git a/src/tools/rustfmt/tests/target/issue_6121.rs b/src/tools/rustfmt/tests/target/issue_6121.rs new file mode 100644 index 0000000000000..1339d6dc7ae78 --- /dev/null +++ b/src/tools/rustfmt/tests/target/issue_6121.rs @@ -0,0 +1,10 @@ +// rustfmt-use_try_shorthand: true + +fn main() { + let e: Result<(), &str> = Ok(()); + let _e = e // hello comment + .map_err(|_| "This is an error message") // Hello comment - Fails to format + .map(|_| ()); + + println!("Hello, world!"); +} From b850b3504c7d48db84982c1100bd96dfa8600096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Wed, 23 Sep 2026 12:52:59 +0200 Subject: [PATCH 06/16] Initial josh-sync configuration --- src/tools/rustfmt/josh-sync.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/tools/rustfmt/josh-sync.toml diff --git a/src/tools/rustfmt/josh-sync.toml b/src/tools/rustfmt/josh-sync.toml new file mode 100644 index 0000000000000..736b3d52cb886 --- /dev/null +++ b/src/tools/rustfmt/josh-sync.toml @@ -0,0 +1,4 @@ +repo = "rustfmt" +filter = ":~(history=\"keep-trivial-merges,no-splice\")[:rev(<=e47f161c8476418e8b55b61db3bbf0338e0ab827:prefix=src/tools/rustfmt,<=e5b95097d9a14bdec7cd9101dde67ee3aad2578a:SQUASH)]:/src/tools/rustfmt" +filter-version = 2 +pull-mode = "Nightly" From d8fb1130ab5fb003c65288de9435e23409a58b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Wed, 23 Sep 2026 12:52:59 +0200 Subject: [PATCH 07/16] Prepare for merging from rust-lang/rust This updates the rust-toolchain.toml file to nightly-2026-09-23 (6bb1652a020e80cef79332741d89e996d71933c9). --- src/tools/rustfmt/rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/rustfmt/rust-toolchain.toml b/src/tools/rustfmt/rust-toolchain.toml index 739ec1b48dad4..0d01929160891 100644 --- a/src/tools/rustfmt/rust-toolchain.toml +++ b/src/tools/rustfmt/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2026-09-21" +channel = "nightly-2026-09-23" components = ["llvm-tools", "rustc-dev"] From c2e5f1152c7090b37250eb1539f9ac5dce753b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Wed, 23 Sep 2026 13:07:35 +0200 Subject: [PATCH 08/16] Update sync docs --- src/tools/rustfmt/Subtree sync procedure.md | 187 +++----------------- 1 file changed, 20 insertions(+), 167 deletions(-) diff --git a/src/tools/rustfmt/Subtree sync procedure.md b/src/tools/rustfmt/Subtree sync procedure.md index e993456f8bc37..cedca7b40f5da 100644 --- a/src/tools/rustfmt/Subtree sync procedure.md +++ b/src/tools/rustfmt/Subtree sync procedure.md @@ -1,190 +1,43 @@ # `rustfmt` subtree sync procedure -Note that `rustfmt` has not migrated to `josh` yet, so the git subtree sync is somewhat involved. -This procedure is mostly adapted from the `clippy` subtree sync process at -, but adapted for -`rustfmt`. We are keeping a separate copy of the instructions for `rustfmt` in case `clippy` moves -off of `git subtree` in the mean time (and also slightly adjusted to be `rustfmt`-specific. +`rustfmt` is using [Josh] to perform subtree synces with the `rust-lang/rust` repository. -> [!NOTE] -> -> Note that AFAIK, eventually both `clippy` and `rustfmt` would like to move to the `josh`-sync -> workflow, just that `rustfmt` is blocked on actually doing a bidirectional sync first, while -> `clippy` is sorting out some issues related to tags and git history (due to usage of `git -> subtree`). +[Josh]: https://josh-project.dev/docs/intro.html ## Tooling -The `git-subtree` tooling still has a bug that prevents it from working properly with the -`rust-lang/rust` repository. This means that you need to build and use a patched version of -`git-subtree`. +The [`josh-sync`][josh-sync] tool is used as a wrapper on top of Josh to help automate the subtree +sync process (both pulls and pushes). You can install it with `cargo install --git https://github.com/rust-lang/josh-sync`. -> [!NOTE] -> -> The patched version of `git-subtree` is the sources corresponding to the stale PR -> . +[josh-sync]: https://github.com/rust-lang/josh-sync -On Linux, place `git-subtree` under `/usr/lib/git-core` (make sure to keep a backup copy of the -'standard' `git-subtree`), and make sure it has proper permissions: +## Subtree pull direction: syncing changes from `rust-lang/rust` to `rustfmt` -```sh -$ sudo cp --backup /path/to/patched/git-subtree.sh /usr/lib/git-core/git-subtree -$ sudo chmod --reference=/usr/lib/git-core/git-subtree~ /usr/lib/git-core/git-subtree -$ sudo chown --reference=/usr/lib/git-core/git-subtree~ /usr/lib/git-core/git-subtree -``` +1. Be in a `rustfmt` checkout +2. Checkout the latest `main` branch from upstream +3. Create a new branch that will be used for the sync +4. Run `rustc-josh-sync pull` +5. Confirm the creation of a PR directly by `rustc-josh-sync`, or create a PR to `rust-lang/rustfmt` repository -> [!NOTE] -> -> Running `git subtree push` for the first time requires building a cache, which involves going -> through the entire history of `rustfmt` once. You likely will need to increase the stack limit via -> -> ```sh -> $ ulimit -s 60000 -> ``` - -> [!NOTE] -> -> The following steps assume that you have configured the `rustfmt` remote as `upstream`, i.e. -> -> ```sh -> $ git remote add upstream git@github.com:rust-lang/rustfmt -> ``` - -## Subtree push direction: syncing changes from `rust-lang/rust` to `rustfmt` - -> [!WARNING] -> -> **For this subtree-push direction, all commands described must be run within the `rust-lang/rust` -> checkout.** - -### 1. Acquire a checkout of `rust-lang/rust` - -Either acquire a clone of `rust-lang/rust`, or if you already have a checkout, make sure the -checkout is up-to-date via `git fetch`. - -### 2. Checkout the commit from the latest available nightly - - You can fetch the commit hash of the latest available nightly by inspecting `rustup check` output. - -### 3. Sync changes from the `rust`-copy of `rustfmt` to your `rustfmt` fork - -> [!WARNING] -> -> **Make sure to either use a fresh branch, e.g. `subtree-push`, or delete the branch beforehand**. -> Changes cannot be fast forwarded and you have to run this command again. - -```sh -$ git subtree push -P src/tools/rustfmt /path/to/rustfmt/checkout subtree-push -``` - -Most of the time, you will need to create a **merge commit** in the `rustfmt` repository. Note that -this must be done in the subtree repo (i.e. `rustfmt` repo) and not in the `rust`-copy of `rustfmt`. - -Assuming the `upstream` remote is the `rust-lang/rust` remote: - -```sh -$ git fetch upstream -$ git switch subtree-push -$ git merge upstream/main --no-ff -``` - -> [!WARNING] -> -> You may have to manually resolve certain merge conflicts. Pay extra attention when resolving them, -> since it's easy to accidentally resolve the conflict in incorrect ways. - -> [!TIP] -> -> Subtree syncs are one of the rare occasions where a merge commit is allowed in a PR. - -### 4. Bump the nightly toolchain version in the `rustfmt` repository - -Using the same latest nightly date (that you can obtain by inspecting `rustup check` output), -manually edit `rust-toolchain.toml`: - -```diff - [toolchain] --channel = "nightly-2025-04-02" -+channel = "nightly-$LATEST_NIGHTLY_DATE" - components = ["llvm-tools", "rustc-dev"] -``` - -Substituting `$LATEST_NIGHTLY_DATE` with the latest nightly date. - -Create a separate commit dedicated to making the `rust-toolchain` change. You can use [the following -commit message template](#rust-toolchain-bump-commit-message-template). - -#### `rust-toolchain` bump commit message template - -````text -chore: bump rustfmt toolchain to nightly-$LATEST_NIGHTLY_DATE - -Bumping the toolchain version as part of a git subtree push. - -Before: - -``` -$CURRENT_NIGHTLY_VERSION-nightly ($CURRENT_NIGHTLY_HASH $CURRENT_NIGHTLY_DATE) -``` - -After: - -``` -$LATEST_NIGHTLY_VERSION-nightly ($LATEST_NIGHTLY_HASH $LATEST_NIGHTLY_DATE) -``` -```` - -Substituting the placeholders with the right information. - -### 5. Open a PR against `rustfmt` - -And wait for the sync PR to be merged. The `rustfmt` maintainers will run Diff Check against the PR -to catch any unexpected formatting changes. +The `rustfmt` maintainers will run Diff Check against the PR to catch any unexpected formatting changes. - Maintainers should trigger Diff-Check for the combinations of Edition {2021, 2024} x Style Edition {2021, 2024}. Once Diff Check failures are investigated and are resolved, the PR can then be merged. -For the PR: - -- Use the title `subtree-push nightly-$LATEST_NIGHTLY_DATE` for consistency with previous - subtree-pushes. -- Include a copy of the bump commit message in the PR description for quick reference. Feel free to - include additional notes that might be helpful for the maintainers when reviewing. - -**Make sure to minimize the time between the subtree-push direction and the subtree-pull direction -to avoid unnecessary complications.** - -### 5. (Where applicable) Update changelog and bump rustfmt version number +### (Where applicable) Update changelog and bump rustfmt version number Where applicable, we may need to update the CHANGELOG entries with merged PRs (both in `rustfmt` repository and also in the `rust-lang/rust` `rustfmt` subtree that was included in the subtree-push merge), and then bump rustfmt version number. -## Subtree pull direction: syncing from `rustfmt` to `rust-lang/rust` - -> [!WARNING] -> -> For this **subtree-pull** direction, all commands must also be performed within the -> `rust-lang/rust` checkout. - -### 1. Make sure latest `main` of `rust-lang/rust` is checked out - -### 2. Sync `rustfmt` `main` to the `rust`-copy of `rustfmt` - -```sh -$ git switch -c rustfmt-subtree-update -$ git subtree pull -P src/tools/rustfmt /path/to/rustfmt/checkout main -``` - -### 3. Open a PR against `rust-lang/rust` - -Use the PR title - -> `rustfmt` subtree update +## Subtree push direction: syncing changes from `rustfmt` to rust-lang/rust` -so that `triagebot` will not warn against the PR containing a merge commit, and makes it easy for -`rustfmt` maintainers to discover. +1. Be in a `rustfmt` checkout +2. Checkout the latest `main` branch from upstream +3. Run `rustc-josh-sync push ` + - Josh will push the changes to a branch with the given name in your `/rust` fork of `rust-lang/rust`. +4. Follow the prompt of `rustc-josh-sync` to open a PR to `rust-lang/rust`, or create the PR manually. -Back link to the `rustfmt` subtree-push PR as helpful context. +**Make sure to minimize the time between a pull and a subsequent push to avoid unnecessary complications.** From a49d3932c0c2ade458efd0eedad5c40693577553 Mon Sep 17 00:00:00 2001 From: Jieyou Xu Date: Wed, 23 Sep 2026 20:34:41 +0800 Subject: [PATCH 09/16] chore: drop unneeded `#![allow(unreachable_pub)]` This probably was needed at some point in the rust-lang/rust tree when someone was tuning the lint itself? But in any case, we don't need this anymore. --- src/tools/rustfmt/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tools/rustfmt/src/lib.rs b/src/tools/rustfmt/src/lib.rs index f54d0641f4629..285fa26d00a50 100644 --- a/src/tools/rustfmt/src/lib.rs +++ b/src/tools/rustfmt/src/lib.rs @@ -3,7 +3,6 @@ #![warn(unreachable_pub)] #![recursion_limit = "256"] #![allow(clippy::match_like_matches_macro)] -#![allow(unreachable_pub)] // N.B. these crates are loaded from the sysroot, so they need extern crate. extern crate rustc_ast; From 79d6180478938373ab2de2bb4430e4522c0b906c Mon Sep 17 00:00:00 2001 From: ding-young Date: Sun, 17 Nov 2024 15:07:10 +0900 Subject: [PATCH 10/16] fix panic on failure to format generics in enum - related issues: #5738, #6137, #6318, #6378 - instead of calling unwrap(), restore original snippet when we fail to format generics in enum - we need to propagate this rewrite failure later --- src/tools/rustfmt/src/items.rs | 10 +++++++--- .../source/crash-on-enum-generics/issue_5738.rs | 13 +++++++++++++ .../source/crash-on-enum-generics/issue_6137.rs | 3 +++ .../source/crash-on-enum-generics/issue_6318.rs | 13 +++++++++++++ .../target/crash-on-enum-generics/issue_5738.rs | 13 +++++++++++++ .../target/crash-on-enum-generics/issue_6137.rs | 3 +++ .../target/crash-on-enum-generics/issue_6318.rs | 12 ++++++++++++ 7 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_5738.rs create mode 100644 src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6137.rs create mode 100644 src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6318.rs create mode 100644 src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_5738.rs create mode 100644 src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6137.rs create mode 100644 src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6318.rs diff --git a/src/tools/rustfmt/src/items.rs b/src/tools/rustfmt/src/items.rs index 07ce0b6e58ecb..85db4a873fbff 100644 --- a/src/tools/rustfmt/src/items.rs +++ b/src/tools/rustfmt/src/items.rs @@ -556,9 +556,13 @@ impl<'a> FmtVisitor<'a> { // make a span that starts right after `enum Foo` mk_sp(ident.span.hi(), body_start), last_line_width(&enum_header, self.get_context().config.tab_spaces()), - ) - .unwrap(); - self.push_str(&generics_str); + ); + + if let Some(generics_str) = generics_str { + self.push_str(&generics_str); + } else { + self.push_str(self.snippet(mk_sp(ident.span.hi(), body_start))); + } self.last_pos = body_start; diff --git a/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_5738.rs b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_5738.rs new file mode 100644 index 0000000000000..bdba3b1094401 --- /dev/null +++ b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_5738.rs @@ -0,0 +1,13 @@ +enum Node where P::>>>>>>>>>>>>>>>>>>>>>>>: { + Cons, +} + +enum En6 +where + T: Tr1>>>>>>>>>>>>>>>>>>>>>>>, +{ + V0, + V1, + V2, + V3, +} diff --git a/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6137.rs b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6137.rs new file mode 100644 index 0000000000000..a8c75f8e17976 --- /dev/null +++ b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6137.rs @@ -0,0 +1,3 @@ +enum MZReaderType< + D: DeconvolutedCentroidLike + Default + From + BuildFromArrayMap=DeconvolutedPeak +> {} diff --git a/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6318.rs b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6318.rs new file mode 100644 index 0000000000000..787225f4aae0f --- /dev/null +++ b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6318.rs @@ -0,0 +1,13 @@ +// rustfmt-max_width: 80 +fn my_fn() { + enum MyEnum + where + SomeTypeA___: SomeTrait__< + _A, + Archived = , + >>::Archived, + >, + { + } +} diff --git a/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_5738.rs b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_5738.rs new file mode 100644 index 0000000000000..4a9dd0d8a1c9b --- /dev/null +++ b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_5738.rs @@ -0,0 +1,13 @@ +enum Node where P::>>>>>>>>>>>>>>>>>>>>>>>: { + Cons, +} + +enum En6 +where + T: Tr1>>>>>>>>>>>>>>>>>>>>>>>, +{ + V0, + V1, + V2, + V3, +} diff --git a/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6137.rs b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6137.rs new file mode 100644 index 0000000000000..a8c75f8e17976 --- /dev/null +++ b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6137.rs @@ -0,0 +1,3 @@ +enum MZReaderType< + D: DeconvolutedCentroidLike + Default + From + BuildFromArrayMap=DeconvolutedPeak +> {} diff --git a/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6318.rs b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6318.rs new file mode 100644 index 0000000000000..6f3b9275349c1 --- /dev/null +++ b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6318.rs @@ -0,0 +1,12 @@ +// rustfmt-max_width: 80 +fn my_fn() { + enum MyEnum + where + SomeTypeA___: SomeTrait__< + _A, + Archived = , + >>::Archived, + >, + {} +} From bc92c8603bd63970451f7fe3dac6af2c60e7e8ca Mon Sep 17 00:00:00 2001 From: ding-young Date: Fri, 29 Nov 2024 17:55:34 +0900 Subject: [PATCH 11/16] refactor visit_enum - introduce format_enum that returns Rewrite - early return when it fails to format the generics in enum --- src/tools/rustfmt/src/items.rs | 41 ++++++++++++------- src/tools/rustfmt/src/visitor.rs | 2 - .../crash-on-enum-generics/issue_5738.rs | 2 +- .../crash-on-enum-generics/issue_6318.rs | 1 + .../crash-on-enum-generics/issue_5738.rs | 2 +- .../crash-on-enum-generics/issue_6318.rs | 4 +- 6 files changed, 32 insertions(+), 20 deletions(-) diff --git a/src/tools/rustfmt/src/items.rs b/src/tools/rustfmt/src/items.rs index 85db4a873fbff..60d8d8963c524 100644 --- a/src/tools/rustfmt/src/items.rs +++ b/src/tools/rustfmt/src/items.rs @@ -528,21 +528,21 @@ impl<'a> FmtVisitor<'a> { self.push_rewrite(struct_parts.span, rewrite); } - pub(crate) fn visit_enum( + fn format_enum( &mut self, ident: symbol::Ident, vis: &ast::Visibility, enum_def: &ast::EnumDef, generics: &ast::Generics, span: Span, - ) { + ) -> Option { let enum_header = format_header(&self.get_context(), "enum ", ident, vis, self.block_indent); - self.push_str(&enum_header); let enum_snippet = self.snippet(span); let brace_pos = enum_snippet.find_uncommented("{").unwrap(); let body_start = span.lo() + BytePos(brace_pos as u32 + 1); + let generics_str = format_generics( &self.get_context(), generics, @@ -556,25 +556,36 @@ impl<'a> FmtVisitor<'a> { // make a span that starts right after `enum Foo` mk_sp(ident.span.hi(), body_start), last_line_width(&enum_header, self.get_context().config.tab_spaces()), - ); - - if let Some(generics_str) = generics_str { - self.push_str(&generics_str); - } else { - self.push_str(self.snippet(mk_sp(ident.span.hi(), body_start))); - } - - self.last_pos = body_start; + )?; match self.format_variant_list(enum_def, body_start, span.hi()) { - Some(ref s) if enum_def.variants.is_empty() => self.push_str(s), - rw => { - self.push_rewrite(mk_sp(body_start, span.hi()), rw); + Some(ref s) if enum_def.variants.is_empty() => { + Some(format!("{enum_header}{generics_str}{s}")) + } + Some(rw) => { + let indent = self.block_indent.to_string(self.config); + self.block_indent = self.block_indent.block_unindent(self.config); + Some(format!("{enum_header}{generics_str}\n{indent}{rw}")) + } + None => { self.block_indent = self.block_indent.block_unindent(self.config); + None } } } + pub(crate) fn visit_enum( + &mut self, + ident: symbol::Ident, + vis: &ast::Visibility, + enum_def: &ast::EnumDef, + generics: &ast::Generics, + span: Span, + ) { + let rewrite = self.format_enum(ident, vis, enum_def, generics, span); + self.push_rewrite(span, rewrite); + } + // Format the body of an enum definition fn format_variant_list( &mut self, diff --git a/src/tools/rustfmt/src/visitor.rs b/src/tools/rustfmt/src/visitor.rs index 5043038d4fc09..7824963bb4ff6 100644 --- a/src/tools/rustfmt/src/visitor.rs +++ b/src/tools/rustfmt/src/visitor.rs @@ -527,9 +527,7 @@ impl<'b, 'a: 'b> FmtVisitor<'a> { self.visit_struct(&StructParts::from_item(item)); } ast::ItemKind::Enum(ident, ref generics, ref def) => { - self.format_missing_with_indent(source!(self, item.span).lo()); self.visit_enum(ident, &item.vis, def, generics, item.span); - self.last_pos = source!(self, item.span).hi(); } ast::ItemKind::Mod(safety, ident, ref mod_kind) => { self.format_missing_with_indent(source!(self, item.span).lo()); diff --git a/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_5738.rs b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_5738.rs index bdba3b1094401..70d211f0e8108 100644 --- a/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_5738.rs +++ b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_5738.rs @@ -8,6 +8,6 @@ where { V0, V1, - V2, + V2, // left unformatted since formatting where clause fails V3, } diff --git a/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6318.rs b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6318.rs index 787225f4aae0f..73471f3eee1a2 100644 --- a/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6318.rs +++ b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6318.rs @@ -8,6 +8,7 @@ fn my_fn() { Option<[u8; 4]>, >>::Archived, >, + // left unformatted since formatting where clause fails { } } diff --git a/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_5738.rs b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_5738.rs index 4a9dd0d8a1c9b..70d211f0e8108 100644 --- a/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_5738.rs +++ b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_5738.rs @@ -8,6 +8,6 @@ where { V0, V1, - V2, + V2, // left unformatted since formatting where clause fails V3, } diff --git a/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6318.rs b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6318.rs index 6f3b9275349c1..73471f3eee1a2 100644 --- a/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6318.rs +++ b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6318.rs @@ -8,5 +8,7 @@ fn my_fn() { Option<[u8; 4]>, >>::Archived, >, - {} + // left unformatted since formatting where clause fails + { + } } From da10331482bf3fe3aaf812e6892d6e12021c13ac Mon Sep 17 00:00:00 2001 From: Seoyoung Lee Date: Sun, 5 Oct 2025 23:47:04 +0900 Subject: [PATCH 12/16] add test case for issue#6571 --- .../source/crash-on-enum-generics/issue_6571.rs | 14 ++++++++++++++ .../target/crash-on-enum-generics/issue_6571.rs | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6571.rs create mode 100644 src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6571.rs diff --git a/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6571.rs b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6571.rs new file mode 100644 index 0000000000000..b28d50f583184 --- /dev/null +++ b/src/tools/rustfmt/tests/source/crash-on-enum-generics/issue_6571.rs @@ -0,0 +1,14 @@ +pub enum TestEnum< + T: std::collections::HashMap>> + Clone + Default + PartialEq + Eq + std::fmt::Debug + serde::Serialize + serde::Deserialize<'static> + Send + Sync + 'static = std::collections::HashMap>>, +> { + Variant1(T), + Variant2 { field: T }, +} + +// More realistic example from real codebase +pub enum ElementInit< + P: wrt_foundation::MemoryProvider + Clone + Default + PartialEq + Eq = wrt_foundation::NoStdProvider<1024>, +> { + FuncIndices(crate::WasmVec), + Expressions(crate::WasmVec, P>), +} diff --git a/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6571.rs b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6571.rs new file mode 100644 index 0000000000000..b28d50f583184 --- /dev/null +++ b/src/tools/rustfmt/tests/target/crash-on-enum-generics/issue_6571.rs @@ -0,0 +1,14 @@ +pub enum TestEnum< + T: std::collections::HashMap>> + Clone + Default + PartialEq + Eq + std::fmt::Debug + serde::Serialize + serde::Deserialize<'static> + Send + Sync + 'static = std::collections::HashMap>>, +> { + Variant1(T), + Variant2 { field: T }, +} + +// More realistic example from real codebase +pub enum ElementInit< + P: wrt_foundation::MemoryProvider + Clone + Default + PartialEq + Eq = wrt_foundation::NoStdProvider<1024>, +> { + FuncIndices(crate::WasmVec), + Expressions(crate::WasmVec, P>), +} From c2248256e9936f6a9666843b8cd890fc0aa1bb99 Mon Sep 17 00:00:00 2001 From: Jieyou Xu Date: Tue, 29 Sep 2026 18:38:02 +0800 Subject: [PATCH 13/16] test(config): add regression test for `adjust_max_width` overflows For . --- src/tools/rustfmt/src/config/mod.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/tools/rustfmt/src/config/mod.rs b/src/tools/rustfmt/src/config/mod.rs index 780402d21fe29..141933cd7cfa9 100644 --- a/src/tools/rustfmt/src/config/mod.rs +++ b/src/tools/rustfmt/src/config/mod.rs @@ -698,6 +698,23 @@ mod test { assert_eq!(config.verbose(), Verbosity::Normal); } + #[test] + fn test_adjust_max_width() { + // Regression tests for #7147, where we didn't handle overflows / integral cast outside of + // range properly. + + // Reduce with huge amount saturates to zero instead of wraparound. + let mut config = Config::default(); + config.reduce_max_width(usize::MAX); + assert_eq!(config.max_width(), 0); + + // Increase with huge amount saturates instead of wraparound. + let mut config = Config::default(); + config.set().max_width(usize::MAX - 1); + config.increase_max_width(2); + assert_eq!(config.max_width(), usize::MAX); + } + #[test] fn test_config_used_to_toml() { let config = Config::default(); From 5e9724cc02b002f2263801efee4e6226ed77e699 Mon Sep 17 00:00:00 2001 From: Jieyou Xu Date: Tue, 29 Sep 2026 18:39:46 +0800 Subject: [PATCH 14/16] docs(config): `increase_max_width` actually increases max width Copy-pasta typo. --- src/tools/rustfmt/src/config/config_type.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/rustfmt/src/config/config_type.rs b/src/tools/rustfmt/src/config/config_type.rs index f559cc0d620c4..d078fbb8c30ae 100644 --- a/src/tools/rustfmt/src/config/config_type.rs +++ b/src/tools/rustfmt/src/config/config_type.rs @@ -442,7 +442,7 @@ macro_rules! create_config { /// /// This method is intended to be used when creating a forked /// configuration for a particular formatting context in which the - /// total available width needs to be reduced. This increases the + /// total available width needs to be increased. This increases the /// size of max_width, and all other properties affected by small /// heuristics, without treating those adjustments as overrides. /// From 942efae16184d3d6f5f5951339cb7da13a4c287c Mon Sep 17 00:00:00 2001 From: Jieyou Xu Date: Tue, 29 Sep 2026 18:40:38 +0800 Subject: [PATCH 15/16] fix(config): use saturating arithmetics in `adjust_max_width` Instead of overflows, or arguably worse, bitwise reinterpretations. They tend to give us garbage (and massive) indentations. --- src/tools/rustfmt/src/config/config_type.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tools/rustfmt/src/config/config_type.rs b/src/tools/rustfmt/src/config/config_type.rs index d078fbb8c30ae..6611a387814ab 100644 --- a/src/tools/rustfmt/src/config/config_type.rs +++ b/src/tools/rustfmt/src/config/config_type.rs @@ -435,7 +435,7 @@ macro_rules! create_config { /// arms within a declarative macro. #[allow(unreachable_pub)] pub fn reduce_max_width(&mut self, delta: usize) { - self.adjust_max_width(-(delta as isize)); + self.adjust_max_width(-(delta.min(isize::MAX as usize) as isize)); } /// Increases the maximum width of the configuration. @@ -450,7 +450,7 @@ macro_rules! create_config { /// arms within a declarative macro. #[allow(unreachable_pub)] pub fn increase_max_width(&mut self, delta: usize) { - self.adjust_max_width(delta as isize); + self.adjust_max_width(delta.min(isize::MAX as usize) as isize); } /// Adjusts the maximum width of the configuration. @@ -464,7 +464,9 @@ macro_rules! create_config { /// As an example use case, this method is used when formatting /// arms within a declarative macro. fn adjust_max_width(&mut self, delta: isize) { - let adjust = |value: usize| (value as isize + delta) as usize; + // NB: we need to either saturate or report an error (or some kind of testable + // warning). I picked to saturate here. + let adjust = |value: usize| value.saturating_add_signed(delta); self.array_width.2 = adjust(self.array_width.2); self.attr_fn_like_width.2 = adjust(self.attr_fn_like_width.2); From cdb1e99b97662c7893b77d43f25fefd56399b374 Mon Sep 17 00:00:00 2001 From: Jieyou Xu Date: Tue, 29 Sep 2026 19:15:53 +0800 Subject: [PATCH 16/16] chore(triagebot): route rustfmt repo backport nominations to zulip To the [backport channel](https://rust-lang.zulipchat.com/#narrow/channel/621384-t-rustfmt.2Fbackports). --- src/tools/rustfmt/triagebot.toml | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/src/tools/rustfmt/triagebot.toml b/src/tools/rustfmt/triagebot.toml index de28ad00a4272..d156d2b70ae58 100644 --- a/src/tools/rustfmt/triagebot.toml +++ b/src/tools/rustfmt/triagebot.toml @@ -102,6 +102,57 @@ add_labels = ["S-waiting-on-review"] # Documentation at: [shortcut] +# ------------------------------------------------------------------------------ +# Backport nominations (rustfmt repo side) +# ------------------------------------------------------------------------------ + +[notify-zulip."beta-nominated".rustfmt] +zulip_stream = 621384 # #t-rustfmt/backports +topic = "rustfmt#{number}: beta-nominated" +message_on_add = [ + """\ +@*T-rustfmt* @*T-rustfmt-contributors* PR rustfmt#{number} "{title}" has been nominated +for beta backport. +""", + """\ +/poll Approve beta backport of rustfmt#{number}? +approve +decline +don't know +""", +] +message_on_remove = "PR rustfmt#{number}'s beta-nomination has been removed." + +[notify-zulip."beta-accepted".rustfmt] +zulip_stream = 621384 # #t-rustfmt/backports +# Put it in the same thread as beta-nominated. +topic = "rustfmt#{number}: beta-nominated" +message_on_add = "PR rustfmt#{number} has been **accepted** for **beta** backport." + +[notify-zulip."stable-nominated".rustfmt] +zulip_stream = 621384 # #t-rustfmt/backports +topic = "rustfmt#{number}: stable-nominated" +message_on_add = [ + """\ +@*T-rustfmt* @*T-rustfmt-contributors* PR rustfmt#{number} "{title}" has been nominated +for stable backport. +""", + """\ +/poll Approve stable backport of rustfmt#{number}? +approve +approve (but does not justify new dot release on its own) +decline +don't know +""", +] +message_on_remove = "PR rustfmt#{number}'s stable-nomination has been removed." + +[notify-zulip."stable-accepted".rustfmt] +zulip_stream = 621384 # #t-rustfmt/backports +# Put it in the same thread as stable-nominated. +topic = "rustfmt#{number}: stable-nominated" +message_on_add = "PR rustfmt#{number} has been **accepted** for **stable** backport." + # ------------------------------------------------------------------------------ # PR assignments # ------------------------------------------------------------------------------