]> git.lizzy.rs Git - rust.git/commitdiff
Update tests
authorSeiichi Uchida <seuchida@gmail.com>
Wed, 7 Mar 2018 06:49:15 +0000 (15:49 +0900)
committerSeiichi Uchida <seuchida@gmail.com>
Fri, 9 Mar 2018 05:07:43 +0000 (14:07 +0900)
tests/target/big-impl-block.rs
tests/target/big-impl-visual.rs
tests/target/comment.rs
tests/target/trailing_commas.rs

index 3f26552e802a04bfd9e602106406535a293b9c37..b7ea24617448dae7e5abc6156e0f014e098d05b8 100644 (file)
@@ -38,11 +38,8 @@ impl Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessiv
 {
     fn foo() {}
 }
-impl<
-    ExcessivelyLongGenericName,
-    ExcessivelyLongGenericName,
-    AnotherExcessivelyLongGenericName,
-> Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
+impl<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
+    Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
     for Bar
 {
     fn foo() {}
@@ -65,11 +62,8 @@ impl Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessiv
 {
     fn foo() {}
 }
-impl<
-    ExcessivelyLongGenericName,
-    ExcessivelyLongGenericName,
-    AnotherExcessivelyLongGenericName,
-> Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
+impl<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
+    Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
     for Bar<
         ExcessivelyLongGenericName,
         ExcessivelyLongGenericName,
index 91e7cb5b9837ec9ae2a8d89548f98b1810e91590..04b0a83fd97eab2a8308b23d46fbf80c1265e008 100644 (file)
@@ -25,9 +25,8 @@ fn internal_into_boxed(self) -> Self::Output {
 }
 
 // #1369
-impl<ExcessivelyLongGenericName,
-     ExcessivelyLongGenericName,
-     AnotherExcessivelyLongGenericName> Foo for Bar
+impl<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName> Foo
+    for Bar
 {
     fn foo() {}
 }
@@ -36,17 +35,13 @@ impl Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessiv
 {
     fn foo() {}
 }
-impl<ExcessivelyLongGenericName,
-     ExcessivelyLongGenericName,
-     AnotherExcessivelyLongGenericName> Foo<ExcessivelyLongGenericName,
-                                            ExcessivelyLongGenericName,
-                                            AnotherExcessivelyLongGenericName> for Bar
+impl<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
+    Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
+    for Bar
 {
     fn foo() {}
 }
-impl<ExcessivelyLongGenericName,
-     ExcessivelyLongGenericName,
-     AnotherExcessivelyLongGenericName> Foo
+impl<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName> Foo
     for Bar<ExcessivelyLongGenericName,
             ExcessivelyLongGenericName,
             AnotherExcessivelyLongGenericName>
@@ -60,11 +55,8 @@ impl Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessiv
 {
     fn foo() {}
 }
-impl<ExcessivelyLongGenericName,
-     ExcessivelyLongGenericName,
-     AnotherExcessivelyLongGenericName> Foo<ExcessivelyLongGenericName,
-                                            ExcessivelyLongGenericName,
-                                            AnotherExcessivelyLongGenericName>
+impl<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
+    Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
     for Bar<ExcessivelyLongGenericName,
             ExcessivelyLongGenericName,
             AnotherExcessivelyLongGenericName>
index 5abf5369066ca4875b3c2a1880745dfab2e16ad9..4cccdab0e8b5e31dc8b0541b4002531751b08c75 100644 (file)
@@ -82,8 +82,7 @@ fn some_fn3() // some comment some comment some comment some comment some commen
 }
 
 fn some_fn4()
-// some comment some comment some comment some comment some comment some comment
-// some comment
+// some comment some comment some comment some comment some comment some comment some comment
 {
 }
 
index 61b82035450819aa628277a112f2580fae08f04a..ce9e16a4006fb003836b74fcc2c77c02c5ef6931 100644 (file)
@@ -11,12 +11,7 @@ fn main() {
     }
 }
 
-fn f<
-    S, T,
->(
-    x: T,
-    y: S,
-) -> T
+fn f<S, T,>(x: T, y: S,) -> T
 where
     T: P,
     S: Q,
@@ -36,9 +31,8 @@ fn f(x: T) -> T
     }
 }
 
-struct Pair<
-    S, T,
-> where
+struct Pair<S, T,>
+where
     T: P,
     S: P + Q,
 {
@@ -46,57 +40,38 @@ struct Pair<
     b: S,
 }
 
-struct TupPair<
-    S, T,
->(S, T,)
+struct TupPair<S, T,>(S, T,)
 where
     T: P,
     S: P + Q;
 
-enum E<
-    S, T,
-> where
+enum E<S, T,>
+where
     S: P,
     T: P,
 {
     A { a: T, },
 }
 
-type Double<
-    T,
-> where
+type Double<T,>
+where
     T: P,
     T: Q,
-= Pair<
-    T, T,
->;
+= Pair<T, T,>;
 
 extern "C" {
-    fn f<
-        S, T,
-    >(
-        x: T,
-        y: S,
-    ) -> T
+    fn f<S, T,>(x: T, y: S,) -> T
     where
         T: P,
         S: Q;
 }
 
-trait Q<
-    S, T,
-> where
+trait Q<S, T,>
+where
     T: P,
     S: R,
 {
-    fn f<
-        U, V,
-    >(
-        self,
-        x: T,
-        y: S,
-        z: U,
-    ) -> Self
+    fn f<U, V,>(self, x: T, y: S, z: U,) -> Self
     where
         U: P,
         V: P;