From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- src/tools/rustfmt/tests/config/disable_all_formatting.toml | 1 + src/tools/rustfmt/tests/config/issue-1111.toml | 1 + src/tools/rustfmt/tests/config/issue-2641.toml | 1 + src/tools/rustfmt/tests/config/issue-3779.toml | 3 +++ src/tools/rustfmt/tests/config/skip_children.toml | 1 + src/tools/rustfmt/tests/config/small_tabs.toml | 10 ++++++++++ 6 files changed, 17 insertions(+) create mode 100644 src/tools/rustfmt/tests/config/disable_all_formatting.toml create mode 100644 src/tools/rustfmt/tests/config/issue-1111.toml create mode 100644 src/tools/rustfmt/tests/config/issue-2641.toml create mode 100644 src/tools/rustfmt/tests/config/issue-3779.toml create mode 100644 src/tools/rustfmt/tests/config/skip_children.toml create mode 100644 src/tools/rustfmt/tests/config/small_tabs.toml (limited to 'src/tools/rustfmt/tests/config') diff --git a/src/tools/rustfmt/tests/config/disable_all_formatting.toml b/src/tools/rustfmt/tests/config/disable_all_formatting.toml new file mode 100644 index 000000000..c7ad93baf --- /dev/null +++ b/src/tools/rustfmt/tests/config/disable_all_formatting.toml @@ -0,0 +1 @@ +disable_all_formatting = true diff --git a/src/tools/rustfmt/tests/config/issue-1111.toml b/src/tools/rustfmt/tests/config/issue-1111.toml new file mode 100644 index 000000000..44148a2d3 --- /dev/null +++ b/src/tools/rustfmt/tests/config/issue-1111.toml @@ -0,0 +1 @@ +reorder_imports = true diff --git a/src/tools/rustfmt/tests/config/issue-2641.toml b/src/tools/rustfmt/tests/config/issue-2641.toml new file mode 100644 index 000000000..11c9dca8a --- /dev/null +++ b/src/tools/rustfmt/tests/config/issue-2641.toml @@ -0,0 +1 @@ +newline_style = "Windows" diff --git a/src/tools/rustfmt/tests/config/issue-3779.toml b/src/tools/rustfmt/tests/config/issue-3779.toml new file mode 100644 index 000000000..6ca52aee3 --- /dev/null +++ b/src/tools/rustfmt/tests/config/issue-3779.toml @@ -0,0 +1,3 @@ +ignore = [ + "tests/**/issue-3779/ice.rs" +] diff --git a/src/tools/rustfmt/tests/config/skip_children.toml b/src/tools/rustfmt/tests/config/skip_children.toml new file mode 100644 index 000000000..f52930d50 --- /dev/null +++ b/src/tools/rustfmt/tests/config/skip_children.toml @@ -0,0 +1 @@ +skip_children = true diff --git a/src/tools/rustfmt/tests/config/small_tabs.toml b/src/tools/rustfmt/tests/config/small_tabs.toml new file mode 100644 index 000000000..c3cfd3431 --- /dev/null +++ b/src/tools/rustfmt/tests/config/small_tabs.toml @@ -0,0 +1,10 @@ +max_width = 100 +comment_width = 80 +tab_spaces = 2 +newline_style = "Unix" +brace_style = "SameLineWhere" +fn_args_layout = "Tall" +trailing_comma = "Vertical" +indent_style = "Block" +reorder_imports = false +format_strings = true -- cgit v1.2.3