]> git.lizzy.rs Git - rust.git/commitdiff
Add more tests for comments in lists
authormujpao <mujpao@gmail.com>
Wed, 24 Nov 2021 23:05:23 +0000 (15:05 -0800)
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>
Sat, 27 Nov 2021 17:38:36 +0000 (11:38 -0600)
tests/source/comments-in-lists/wrap-comments-not-normalized.rs [new file with mode: 0644]
tests/source/comments-in-lists/wrap-comments-true.rs [new file with mode: 0644]
tests/source/issue-4909/wrap-comments-not-normalized.rs [deleted file]
tests/source/issue-4909/wrap-comments-true.rs [deleted file]
tests/target/comments-in-lists/format-doc-comments.rs [new file with mode: 0644]
tests/target/comments-in-lists/wrap-comments-false.rs [new file with mode: 0644]
tests/target/comments-in-lists/wrap-comments-not-normalized.rs [new file with mode: 0644]
tests/target/comments-in-lists/wrap-comments-true.rs [new file with mode: 0644]
tests/target/issue-4909/wrap-comments-false.rs [deleted file]
tests/target/issue-4909/wrap-comments-not-normalized.rs [deleted file]
tests/target/issue-4909/wrap-comments-true.rs [deleted file]

diff --git a/tests/source/comments-in-lists/wrap-comments-not-normalized.rs b/tests/source/comments-in-lists/wrap-comments-not-normalized.rs
new file mode 100644 (file)
index 0000000..b96c028
--- /dev/null
@@ -0,0 +1,129 @@
+// rustfmt-wrap_comments: true
+
+// https://github.com/rust-lang/rustfmt/issues/4909
+pub enum E {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant1,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant2,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub enum E2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+pub enum E3 {
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    Variant1,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    Variant2,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+
+}
+
+pub struct S {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    some_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    last_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S3 {
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    some_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    last_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+}
+
+fn foo(
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    a: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    b: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn foo2(// Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn foo3(
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    a: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    b: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+
+) -> usize {
+    5
+}
+
+fn main() {
+    let v = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        1,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        2,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    let v2: Vec<i32> = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    let v3 = vec![
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+        1,
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+        2,
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    ];
+
+    // https://github.com/rust-lang/rustfmt/issues/4430
+    match a {
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        b => c,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        d => e,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    }
+
+    match a {
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+        b => c,
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+        d => e,
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    }
+}
diff --git a/tests/source/comments-in-lists/wrap-comments-true.rs b/tests/source/comments-in-lists/wrap-comments-true.rs
new file mode 100644 (file)
index 0000000..360b838
--- /dev/null
@@ -0,0 +1,130 @@
+// rustfmt-normalize_comments: true
+// rustfmt-wrap_comments: true
+
+// https://github.com/rust-lang/rustfmt/issues/4909
+pub enum E {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant1,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant2,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub enum E2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+pub enum E3 {
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    Variant1,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    Variant2,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+
+}
+
+pub struct S {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    some_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    last_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S3 {
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    some_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    last_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+}
+
+fn foo(
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    a: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    b: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn foo2(// Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn foo3(
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    a: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    b: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+
+) -> usize {
+    5
+}
+
+fn main() {
+    let v = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        1,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        2,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    let v2: Vec<i32> = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    let v3 = vec![
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+        1,
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+        2,
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    ];
+
+    // https://github.com/rust-lang/rustfmt/issues/4430
+    match a {
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        b => c,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        d => e,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    }
+
+    match a {
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+        b => c,
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+        d => e,
+        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
+    }
+}
diff --git a/tests/source/issue-4909/wrap-comments-not-normalized.rs b/tests/source/issue-4909/wrap-comments-not-normalized.rs
deleted file mode 100644 (file)
index cd8de27..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-// rustfmt-wrap_comments: true
-
-pub enum E {
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    Variant1,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    Variant2,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-}
-
-pub enum E2 {
-    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
-// Expand as needed, numbers should be ascending according to the stage
-// through the inclusion pipeline, or according to the descriptions
-}
-
-pub enum E3 {
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    Variant1,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    Variant2,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-
-}
-
-pub struct S {
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    some_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    last_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-}
-
-pub struct S2 {
-    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
-// Expand as needed, numbers should be ascending according to the stage
-// through the inclusion pipeline, or according to the descriptions
-}
-
-pub struct S3 {
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    some_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    last_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-}
-
-fn foo(
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    a: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    b: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn foo2(// Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn foo3(
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    a: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    b: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-
-) -> usize {
-    5
-}
-
-fn main() {
-    let v = vec![
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-        1,
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-        2,
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-    ];
-
-    let v2: Vec<i32> = vec![
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-    ];
-
-    let v3 = vec![
-        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-        1,
-        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-        2,
-        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    ];
-}
diff --git a/tests/source/issue-4909/wrap-comments-true.rs b/tests/source/issue-4909/wrap-comments-true.rs
deleted file mode 100644 (file)
index f18d8d6..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-// rustfmt-normalize_comments: true
-// rustfmt-wrap_comments: true
-
-pub enum E {
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    Variant1,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    Variant2,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-}
-
-pub enum E2 {
-    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
-// Expand as needed, numbers should be ascending according to the stage
-// through the inclusion pipeline, or according to the descriptions
-}
-
-pub enum E3 {
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    Variant1,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    Variant2,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-
-}
-
-pub struct S {
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    some_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    last_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-}
-
-pub struct S2 {
-    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
-// Expand as needed, numbers should be ascending according to the stage
-// through the inclusion pipeline, or according to the descriptions
-}
-
-pub struct S3 {
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    some_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    last_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-}
-
-fn foo(
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    a: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    b: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn foo2(// Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn foo3(
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    a: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    b: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-
-) -> usize {
-    5
-}
-
-fn main() {
-    let v = vec![
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-        1,
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-        2,
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-    ];
-
-    let v2: Vec<i32> = vec![
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-    ];
-
-    let v3 = vec![
-        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-        1,
-        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-        2,
-        // Expand as needed, numbers should be ascending according to the stage through the inclusion pipeline, or according to the descriptions
-    ];
-}
diff --git a/tests/target/comments-in-lists/format-doc-comments.rs b/tests/target/comments-in-lists/format-doc-comments.rs
new file mode 100644 (file)
index 0000000..be31bf0
--- /dev/null
@@ -0,0 +1,96 @@
+// rustfmt-format_code_in_doc_comments: true
+
+// https://github.com/rust-lang/rustfmt/issues/4420
+enum Minimal {
+    Example,
+    //[thisisremoved thatsleft
+    // canbeanything
+}
+
+struct Minimal2 {
+    Example: usize,
+    //[thisisremoved thatsleft
+    // canbeanything
+}
+
+pub enum E {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant1,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant2,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub enum E2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    some_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    last_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+fn foo(
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    a: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    b: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn foo2(// Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn main() {
+    let v = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        1,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        2,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    let v2: Vec<i32> = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    match a {
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        b => c,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        d => e,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    }
+}
diff --git a/tests/target/comments-in-lists/wrap-comments-false.rs b/tests/target/comments-in-lists/wrap-comments-false.rs
new file mode 100644 (file)
index 0000000..80aea59
--- /dev/null
@@ -0,0 +1,85 @@
+// rustfmt-normalize_comments: true
+
+// https://github.com/rust-lang/rustfmt/issues/4909
+pub enum E {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant1,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant2,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub enum E2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    some_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    last_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+fn foo(
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    a: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    b: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn foo2(// Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn main() {
+    let v = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        1,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        2,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    let v2: Vec<i32> = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    // https://github.com/rust-lang/rustfmt/issues/4430
+    match a {
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        b => c,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        d => e,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    }
+}
diff --git a/tests/target/comments-in-lists/wrap-comments-not-normalized.rs b/tests/target/comments-in-lists/wrap-comments-not-normalized.rs
new file mode 100644 (file)
index 0000000..52315f4
--- /dev/null
@@ -0,0 +1,142 @@
+// rustfmt-wrap_comments: true
+
+// https://github.com/rust-lang/rustfmt/issues/4909
+pub enum E {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant1,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant2,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub enum E2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+pub enum E3 {
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    Variant1,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    Variant2,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+}
+
+pub struct S {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    some_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    last_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S3 {
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    some_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    last_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+}
+
+fn foo(
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    a: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    b: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn foo2(// Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn foo3(
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    a: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    b: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn main() {
+    let v = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        1,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        2,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    let v2: Vec<i32> = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    let v3 = vec![
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+        1,
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+        2,
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+    ];
+
+    // https://github.com/rust-lang/rustfmt/issues/4430
+    match a {
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        b => c,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        d => e,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    }
+
+    match a {
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+        b => c,
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+        d => e,
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+    }
+}
diff --git a/tests/target/comments-in-lists/wrap-comments-true.rs b/tests/target/comments-in-lists/wrap-comments-true.rs
new file mode 100644 (file)
index 0000000..e0bfcf0
--- /dev/null
@@ -0,0 +1,143 @@
+// rustfmt-normalize_comments: true
+// rustfmt-wrap_comments: true
+
+// https://github.com/rust-lang/rustfmt/issues/4909
+pub enum E {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant1,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    Variant2,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub enum E2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+pub enum E3 {
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    Variant1,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    Variant2,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+}
+
+pub struct S {
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    some_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    last_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S2 {
+    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
+// Expand as needed, numbers should be ascending according to the stage
+// through the inclusion pipeline, or according to the descriptions
+}
+
+pub struct S3 {
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    some_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    last_field: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+}
+
+fn foo(
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    a: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+    b: usize,
+    // Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn foo2(// Expand as needed, numbers should be ascending according to the stage
+    // through the inclusion pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn foo3(
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    a: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+    b: usize,
+    // Expand as needed, numbers should be ascending according to the stage through the inclusion
+    // pipeline, or according to the descriptions
+) -> usize {
+    5
+}
+
+fn main() {
+    let v = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        1,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        2,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    let v2: Vec<i32> = vec![
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    ];
+
+    let v3 = vec![
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+        1,
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+        2,
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+    ];
+
+    // https://github.com/rust-lang/rustfmt/issues/4430
+    match a {
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        b => c,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+        d => e,
+        // Expand as needed, numbers should be ascending according to the stage
+        // through the inclusion pipeline, or according to the descriptions
+    }
+
+    match a {
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+        b => c,
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+        d => e,
+        // Expand as needed, numbers should be ascending according to the stage through the
+        // inclusion pipeline, or according to the descriptions
+    }
+}
diff --git a/tests/target/issue-4909/wrap-comments-false.rs b/tests/target/issue-4909/wrap-comments-false.rs
deleted file mode 100644 (file)
index a8ead58..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-// rustfmt-normalize_comments: true
-
-pub enum E {
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    Variant1,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    Variant2,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-}
-
-pub enum E2 {
-    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
-// Expand as needed, numbers should be ascending according to the stage
-// through the inclusion pipeline, or according to the descriptions
-}
-
-pub struct S {
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    some_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    last_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-}
-
-pub struct S2 {
-    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
-// Expand as needed, numbers should be ascending according to the stage
-// through the inclusion pipeline, or according to the descriptions
-}
-
-fn foo(
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    a: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    b: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn foo2(// Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn main() {
-    let v = vec![
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-        1,
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-        2,
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-    ];
-
-    let v2: Vec<i32> = vec![
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-    ];
-}
diff --git a/tests/target/issue-4909/wrap-comments-not-normalized.rs b/tests/target/issue-4909/wrap-comments-not-normalized.rs
deleted file mode 100644 (file)
index 2a3d803..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-// rustfmt-wrap_comments: true
-
-pub enum E {
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    Variant1,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    Variant2,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-}
-
-pub enum E2 {
-    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
-// Expand as needed, numbers should be ascending according to the stage
-// through the inclusion pipeline, or according to the descriptions
-}
-
-pub enum E3 {
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    Variant1,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    Variant2,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-}
-
-pub struct S {
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    some_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    last_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-}
-
-pub struct S2 {
-    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
-// Expand as needed, numbers should be ascending according to the stage
-// through the inclusion pipeline, or according to the descriptions
-}
-
-pub struct S3 {
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    some_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    last_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-}
-
-fn foo(
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    a: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    b: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn foo2(// Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn foo3(
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    a: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    b: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn main() {
-    let v = vec![
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-        1,
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-        2,
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-    ];
-
-    let v2: Vec<i32> = vec![
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-    ];
-
-    let v3 = vec![
-        // Expand as needed, numbers should be ascending according to the stage through the
-        // inclusion pipeline, or according to the descriptions
-        1,
-        // Expand as needed, numbers should be ascending according to the stage through the
-        // inclusion pipeline, or according to the descriptions
-        2,
-        // Expand as needed, numbers should be ascending according to the stage through the
-        // inclusion pipeline, or according to the descriptions
-    ];
-}
diff --git a/tests/target/issue-4909/wrap-comments-true.rs b/tests/target/issue-4909/wrap-comments-true.rs
deleted file mode 100644 (file)
index 5376962..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-// rustfmt-normalize_comments: true
-// rustfmt-wrap_comments: true
-
-pub enum E {
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    Variant1,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    Variant2,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-}
-
-pub enum E2 {
-    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
-// Expand as needed, numbers should be ascending according to the stage
-// through the inclusion pipeline, or according to the descriptions
-}
-
-pub enum E3 {
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    Variant1,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    Variant2,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-}
-
-pub struct S {
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    some_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    last_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-}
-
-pub struct S2 {
-    // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
-// Expand as needed, numbers should be ascending according to the stage
-// through the inclusion pipeline, or according to the descriptions
-}
-
-pub struct S3 {
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    some_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    last_field: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-}
-
-fn foo(
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    a: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-    b: usize,
-    // Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn foo2(// Expand as needed, numbers should be ascending according to the stage
-    // through the inclusion pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn foo3(
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    a: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-    b: usize,
-    // Expand as needed, numbers should be ascending according to the stage through the inclusion
-    // pipeline, or according to the descriptions
-) -> usize {
-    5
-}
-
-fn main() {
-    let v = vec![
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-        1,
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-        2,
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-    ];
-
-    let v2: Vec<i32> = vec![
-        // Expand as needed, numbers should be ascending according to the stage
-        // through the inclusion pipeline, or according to the descriptions
-    ];
-
-    let v3 = vec![
-        // Expand as needed, numbers should be ascending according to the stage through the
-        // inclusion pipeline, or according to the descriptions
-        1,
-        // Expand as needed, numbers should be ascending according to the stage through the
-        // inclusion pipeline, or according to the descriptions
-        2,
-        // Expand as needed, numbers should be ascending according to the stage through the
-        // inclusion pipeline, or according to the descriptions
-    ];
-}