summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/configs/reorder_modules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/tools/rustfmt/tests/source/configs/reorder_modules
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/rustfmt/tests/source/configs/reorder_modules')
-rw-r--r--src/tools/rustfmt/tests/source/configs/reorder_modules/dolor/mod.rs1
-rw-r--r--src/tools/rustfmt/tests/source/configs/reorder_modules/false.rs7
-rw-r--r--src/tools/rustfmt/tests/source/configs/reorder_modules/ipsum/mod.rs1
-rw-r--r--src/tools/rustfmt/tests/source/configs/reorder_modules/lorem/mod.rs1
-rw-r--r--src/tools/rustfmt/tests/source/configs/reorder_modules/sit/mod.rs1
-rw-r--r--src/tools/rustfmt/tests/source/configs/reorder_modules/true.rs7
6 files changed, 18 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/configs/reorder_modules/dolor/mod.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/dolor/mod.rs
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/configs/reorder_modules/dolor/mod.rs
@@ -0,0 +1 @@
+
diff --git a/src/tools/rustfmt/tests/source/configs/reorder_modules/false.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/false.rs
new file mode 100644
index 000000000..56b1aa03e
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/configs/reorder_modules/false.rs
@@ -0,0 +1,7 @@
+// rustfmt-reorder_modules: false
+// Reorder modules
+
+mod lorem;
+mod ipsum;
+mod dolor;
+mod sit;
diff --git a/src/tools/rustfmt/tests/source/configs/reorder_modules/ipsum/mod.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/ipsum/mod.rs
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/configs/reorder_modules/ipsum/mod.rs
@@ -0,0 +1 @@
+
diff --git a/src/tools/rustfmt/tests/source/configs/reorder_modules/lorem/mod.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/lorem/mod.rs
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/configs/reorder_modules/lorem/mod.rs
@@ -0,0 +1 @@
+
diff --git a/src/tools/rustfmt/tests/source/configs/reorder_modules/sit/mod.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/sit/mod.rs
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/configs/reorder_modules/sit/mod.rs
@@ -0,0 +1 @@
+
diff --git a/src/tools/rustfmt/tests/source/configs/reorder_modules/true.rs b/src/tools/rustfmt/tests/source/configs/reorder_modules/true.rs
new file mode 100644
index 000000000..79b0ab1e3
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/configs/reorder_modules/true.rs
@@ -0,0 +1,7 @@
+// rustfmt-reorder_modules: true
+// Reorder modules
+
+mod lorem;
+mod ipsum;
+mod dolor;
+mod sit;