about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/pretty/hir-if-else.pp54
-rw-r--r--tests/pretty/if-else.pp36
-rw-r--r--tests/ui/match/issue-82392.stdout8
-rw-r--r--tests/ui/proc-macro/quote/debug.stdout8
4 files changed, 53 insertions, 53 deletions
diff --git a/tests/pretty/hir-if-else.pp b/tests/pretty/hir-if-else.pp
index 551f24c6900..072e050d3e0 100644
--- a/tests/pretty/hir-if-else.pp
+++ b/tests/pretty/hir-if-else.pp
@@ -16,33 +16,33 @@ fn f(x: u32,
                     {
                         a = 1;
                     } else if x < 2
-                       {
-                           a = 2;
-                       } else if x < 3
-                          {
-                              a = 3;
-                          } else if x < 4 { a = 4; } else { a = 5; }
+                        {
+                            a = 2;
+                        } else if x < 3
+                            {
+                                a = 3;
+                            } else if x < 4 { a = 4; } else { a = 5; }
 
-                             if x < y
-                                     {
-                                         a += 1;
-                                         a += 1;
-                                         a += 1;
-                                         a += 1;
-                                         a += 1;
-                                         a += 1;
-                                     } else { a += 1; a += 1; a += 1; a += 1; a += 1; a += 1; }
+                                if x < y
+                                        {
+                                            a += 1;
+                                            a += 1;
+                                            a += 1;
+                                            a += 1;
+                                            a += 1;
+                                            a += 1;
+                                        } else { a += 1; a += 1; a += 1; a += 1; a += 1; a += 1; }
 
-                                     if x < 1
-                                             {
-                                                 if x < 2
-                                                         {
-                                                             if x < 3
-                                                                     {
-                                                                         a += 1;
-                                                                     } else if x < 4
-                                                                        { a += 1; if x < 5 { a += 1; } }
-                                                                        } else if x < 6 { a += 1; } }
-                                                                 }
+                                        if x < 1
+                                                {
+                                                    if x < 2
+                                                            {
+                                                                if x < 3
+                                                                        {
+                                                                            a += 1;
+                                                                        } else if x < 4
+                                                                            { a += 1; if x < 5 { a += 1; } }
+                                                                            } else if x < 6 { a += 1; } }
+                                                                    }
 
-                                                             fn main() { f(3, 4); }
+                                                                fn main() { f(3, 4); }
diff --git a/tests/pretty/if-else.pp b/tests/pretty/if-else.pp
index c70a78ade42..14c715a8793 100644
--- a/tests/pretty/if-else.pp
+++ b/tests/pretty/if-else.pp
@@ -15,30 +15,30 @@ fn f(x: u32, y: u32) {
     if x < 1 {
             a = 1;
         } else if x < 2 {
-           a = 2;
-       } else if x < 3 { a = 3; } else if x < 4 { a = 4; } else { a = 5; }
+            a = 2;
+        } else if x < 3 { a = 3; } else if x < 4 { a = 4; } else { a = 5; }
 
     if x < y {
             a += 1;
             a += 1;
             a += 1;
         } else {
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-           a += 1;
-       }
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+            a += 1;
+        }
 
     if x < 1 {
             if x < 2 {
diff --git a/tests/ui/match/issue-82392.stdout b/tests/ui/match/issue-82392.stdout
index 8b7edabf004..34d2c7aa2ba 100644
--- a/tests/ui/match/issue-82392.stdout
+++ b/tests/ui/match/issue-82392.stdout
@@ -11,7 +11,7 @@ fn main() ({
     (if (true as bool)
             ({ } as
                 ()) else if (let Some(a) =
-                   ((Some as
-                           fn(i32) -> Option<i32> {Option::<i32>::Some})((3 as i32)) as
-                       Option<i32>) as bool) ({ } as ()) as ())
-           } as ())
+                    ((Some as
+                            fn(i32) -> Option<i32> {Option::<i32>::Some})((3 as i32)) as
+                        Option<i32>) as bool) ({ } as ()) as ())
+            } as ())
diff --git a/tests/ui/proc-macro/quote/debug.stdout b/tests/ui/proc-macro/quote/debug.stdout
index 6ebb3a37951..b2a9f031b28 100644
--- a/tests/ui/proc-macro/quote/debug.stdout
+++ b/tests/ui/proc-macro/quote/debug.stdout
@@ -36,8 +36,8 @@ fn main() {
                                 lit.set_span(crate::Span::recover_proc_macro_span(2));
                                 lit
                             } else {
-                               ::core::panicking::panic("internal error: entered unreachable code")
-                           }
+                                ::core::panicking::panic("internal error: entered unreachable code")
+                            }
                     }), &mut ts);
         crate::ToTokens::to_tokens(&crate::TokenTree::Punct(crate::Punct::new(';',
                         crate::Spacing::Alone)), &mut ts);
@@ -55,8 +55,8 @@ fn main() {
                                 lit.set_span(crate::Span::recover_proc_macro_span(5));
                                 lit
                             } else {
-                               ::core::panicking::panic("internal error: entered unreachable code")
-                           }
+                                ::core::panicking::panic("internal error: entered unreachable code")
+                            }
                     }), &mut ts);
         crate::ToTokens::to_tokens(&crate::TokenTree::Punct(crate::Punct::new(';',
                         crate::Spacing::Alone)), &mut ts);