]> git.lizzy.rs Git - rust.git/commitdiff
Fix accursed issue-4264.pp
authorNiko Matsakis <niko@alum.mit.edu>
Mon, 21 Mar 2016 19:11:23 +0000 (15:11 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Fri, 25 Mar 2016 18:07:20 +0000 (14:07 -0400)
src/test/pretty/issue-4264.pp

index fedb68a26afc928296698379e40547bc5b200191..fe4337eedc63d4dc516c1909063523b97ca8a933 100644 (file)
@@ -41,37 +41,37 @@ pub fn bar() {
     ((::std::fmt::format as
          fn(core::fmt::Arguments<'_>) -> collections::string::String {collections::fmt::format})(((::std::fmt::Arguments::new_v1
                                                                                                       as
-                                                                                                      fn(&[&str], &[core::fmt::ArgumentV1<'_>]) -> core::fmt::Arguments<'_> {core::fmt::Arguments<'a><'_>::new_v1})(({
-                                                                                                                                                                                                                         static __STATIC_FMTSTR:
-                                                                                                                                                                                                                                &'static [&'static str]
-                                                                                                                                                                                                                                =
-                                                                                                                                                                                                                             (&([("test"
-                                                                                                                                                                                                                                     as
-                                                                                                                                                                                                                                     &'static str)]
-                                                                                                                                                                                                                                   as
-                                                                                                                                                                                                                                   [&'static str; 1])
+                                                                                                      fn(&[&str], &[core::fmt::ArgumentV1<'_>]) -> core::fmt::Arguments<'_> {core::fmt::Arguments<'_>::new_v1})(({
+                                                                                                                                                                                                                     static __STATIC_FMTSTR:
+                                                                                                                                                                                                                            &'static [&'static str]
+                                                                                                                                                                                                                            =
+                                                                                                                                                                                                                         (&([("test"
                                                                                                                                                                                                                                  as
-                                                                                                                                                                                                                                 &'static [&'static str; 1]);
-                                                                                                                                                                                                                         (__STATIC_FMTSTR
-                                                                                                                                                                                                                             as
-                                                                                                                                                                                                                             &'static [&'static str])
-                                                                                                                                                                                                                     }
-                                                                                                                                                                                                                        as
-                                                                                                                                                                                                                        &[&str]),
-                                                                                                                                                                                                                    (&(match (()
-                                                                                                                                                                                                                                 as
-                                                                                                                                                                                                                                 ())
-                                                                                                                                                                                                                           {
-                                                                                                                                                                                                                           ()
-                                                                                                                                                                                                                           =>
-                                                                                                                                                                                                                           ([]
+                                                                                                                                                                                                                                 &'static str)]
                                                                                                                                                                                                                                as
-                                                                                                                                                                                                                               [core::fmt::ArgumentV1<'_>; 0]),
-                                                                                                                                                                                                                       }
-                                                                                                                                                                                                                          as
-                                                                                                                                                                                                                          [core::fmt::ArgumentV1<'_>; 0])
-                                                                                                                                                                                                                        as
-                                                                                                                                                                                                                        &[core::fmt::ArgumentV1<'_>; 0]))
+                                                                                                                                                                                                                               [&'static str; 1])
+                                                                                                                                                                                                                             as
+                                                                                                                                                                                                                             &'static [&'static str; 1]);
+                                                                                                                                                                                                                     (__STATIC_FMTSTR
+                                                                                                                                                                                                                         as
+                                                                                                                                                                                                                         &'static [&'static str])
+                                                                                                                                                                                                                 }
+                                                                                                                                                                                                                    as
+                                                                                                                                                                                                                    &[&str]),
+                                                                                                                                                                                                                (&(match (()
+                                                                                                                                                                                                                             as
+                                                                                                                                                                                                                             ())
+                                                                                                                                                                                                                       {
+                                                                                                                                                                                                                       ()
+                                                                                                                                                                                                                       =>
+                                                                                                                                                                                                                       ([]
+                                                                                                                                                                                                                           as
+                                                                                                                                                                                                                           [core::fmt::ArgumentV1<'_>; 0]),
+                                                                                                                                                                                                                   }
+                                                                                                                                                                                                                      as
+                                                                                                                                                                                                                      [core::fmt::ArgumentV1<'_>; 0])
+                                                                                                                                                                                                                    as
+                                                                                                                                                                                                                    &[core::fmt::ArgumentV1<'_>; 0]))
                                                                                                      as
                                                                                                      core::fmt::Arguments<'_>))
         as collections::string::String);