summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/configs/imports_layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/configs/imports_layout')
-rw-r--r--src/tools/rustfmt/tests/target/configs/imports_layout/horizontal_vertical.rs18
-rw-r--r--src/tools/rustfmt/tests/target/configs/imports_layout/merge_mixed.rs5
-rw-r--r--src/tools/rustfmt/tests/target/configs/imports_layout/mixed.rs9
3 files changed, 32 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/configs/imports_layout/horizontal_vertical.rs b/src/tools/rustfmt/tests/target/configs/imports_layout/horizontal_vertical.rs
new file mode 100644
index 000000000..4a63556d4
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/configs/imports_layout/horizontal_vertical.rs
@@ -0,0 +1,18 @@
+// rustfmt-imports_indent: Block
+// rustfmt-imports_layout: HorizontalVertical
+
+use comment::{contains_comment, recover_comment_removed, rewrite_comment, FindUncommented};
+use lists::{
+ definitive_tactic,
+ itemize_list,
+ shape_for_tactic,
+ struct_lit_formatting,
+ struct_lit_shape,
+ struct_lit_tactic,
+ write_list,
+ DefinitiveListTactic,
+ ListFormatting,
+ ListItem,
+ ListTactic,
+ SeparatorTactic,
+};
diff --git a/src/tools/rustfmt/tests/target/configs/imports_layout/merge_mixed.rs b/src/tools/rustfmt/tests/target/configs/imports_layout/merge_mixed.rs
new file mode 100644
index 000000000..bc0da92ff
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/configs/imports_layout/merge_mixed.rs
@@ -0,0 +1,5 @@
+// rustfmt-imports_indent: Block
+// rustfmt-imports_granularity: Crate
+// rustfmt-imports_layout: Mixed
+
+use std::{fmt, io, str, str::FromStr};
diff --git a/src/tools/rustfmt/tests/target/configs/imports_layout/mixed.rs b/src/tools/rustfmt/tests/target/configs/imports_layout/mixed.rs
new file mode 100644
index 000000000..5d3349a01
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/configs/imports_layout/mixed.rs
@@ -0,0 +1,9 @@
+// rustfmt-imports_indent: Block
+// rustfmt-imports_layout: Mixed
+
+use comment::{contains_comment, recover_comment_removed, rewrite_comment, FindUncommented};
+use lists::{
+ definitive_tactic, itemize_list, shape_for_tactic, struct_lit_formatting, struct_lit_shape,
+ struct_lit_tactic, write_list, DefinitiveListTactic, ListFormatting, ListItem, ListTactic,
+ SeparatorTactic,
+};