]> git.lizzy.rs Git - rust.git/commitdiff
Test fallout
authorNick Cameron <ncameron@mozilla.com>
Mon, 6 Mar 2017 22:28:25 +0000 (11:28 +1300)
committerNick Cameron <ncameron@mozilla.com>
Mon, 6 Mar 2017 22:28:25 +0000 (11:28 +1300)
tests/target/chains-visual.rs
tests/target/chains.rs
tests/target/expr.rs
tests/target/hard-tabs.rs

index e88c08fb93269ec4ac86e23d382e71215882d14a..d2cf993b10c1cbd34a7956209c7a882209de5459 100644 (file)
@@ -10,8 +10,7 @@ fn main() {
              .1
              .foo(|x| x + 1);
 
-    bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
-                       .ddddddddddddddddddddddddddd();
+    bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc.ddddddddddddddddddddddddddd();
 
     bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
                        .ddddddddddddddddddddddddddd
@@ -50,9 +49,7 @@ fn main() {
     });
 
     let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum =
-        xxxxxxx.map(|x| x + 5)
-               .map(|x| x / 2)
-               .fold(0, |acc, x| acc + x);
+        xxxxxxx.map(|x| x + 5).map(|x| x / 2).fold(0, |acc, x| acc + x);
 
     aaaaaaaaaaaaaaaa.map(|x| {
                              x += 1;
@@ -128,8 +125,7 @@ fn floaters() {
 }
 
 fn is_replaced_content() -> bool {
-    constellat.send(ConstellationMsg::ViewportConstrained(self.id, constraints))
-              .unwrap();
+    constellat.send(ConstellationMsg::ViewportConstrained(self.id, constraints)).unwrap();
 }
 
 fn issue587() {
index c7fdd3076e4e38612d3d8d80385c689f155d4f88..6263fac10e8007637651d51a80a1ecb504ecb720 100644 (file)
@@ -9,8 +9,7 @@ fn main() {
         .1
         .foo(|x| x + 1);
 
-    bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
-        .ddddddddddddddddddddddddddd();
+    bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc.ddddddddddddddddddddddddddd();
 
     bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
         .ddddddddddddddddddddddddddd
@@ -48,9 +47,8 @@ fn main() {
         SCRIPT_TASK_ROOT.with(|root| { *root.borrow_mut() = Some(&script_task); });
     });
 
-    let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum = xxxxxxx.map(|x| x + 5)
-        .map(|x| x / 2)
-        .fold(0, |acc, x| acc + x);
+    let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum =
+        xxxxxxx.map(|x| x + 5).map(|x| x / 2).fold(0, |acc, x| acc + x);
 
     aaaaaaaaaaaaaaaa.map(|x| {
                              x += 1;
@@ -126,8 +124,7 @@ fn floaters() {
 }
 
 fn is_replaced_content() -> bool {
-    constellat.send(ConstellationMsg::ViewportConstrained(self.id, constraints))
-        .unwrap();
+    constellat.send(ConstellationMsg::ViewportConstrained(self.id, constraints)).unwrap();
 }
 
 fn issue587() {
@@ -139,10 +136,26 @@ fn issue587() {
 fn try_shorthand() {
     let x = expr?;
     let y = expr.kaas()?.test();
-    let loooooooooooooooooooooooooooooooooooooooooong =
-        does_this?.look?.good?.should_we_break?.after_the_first_question_mark?;
-    let yyyy = expr?.another?.another?.another?.another?.another?.another?.another?.another?.test();
-    let zzzz = expr?.another?.another?.another?.another?;
+    let loooooooooooooooooooooooooooooooooooooooooong = does_this?
+        .look?
+        .good?
+        .should_we_break?
+        .after_the_first_question_mark?;
+    let yyyy = expr?
+        .another?
+        .another?
+        .another?
+        .another?
+        .another?
+        .another?
+        .another?
+        .another?
+        .test();
+    let zzzz = expr?
+        .another?
+        .another?
+        .another?
+        .another?;
     let aaa = x??????????????????????????????????????????????????????????????????????????;
 
     let y = a.very
index 025afa4c38afb62537832054e0746f26320f59e7..2d9f0e6ad105b372aae67c05c01cba433089b8a4 100644 (file)
@@ -291,7 +291,7 @@ fn issue1106() {
             self.ast_map.expect_item(enum_node_id).node {}
     }
 
-    for entry in WalkDir::new(path)
-            .into_iter()
-            .filter_entry(|entry| exclusions.filter_entry(entry)) {}
+    for entry in WalkDir::new(path).into_iter().filter_entry(|entry| {
+        exclusions.filter_entry(entry)
+    }) {}
 }
index d0f25c0ad3a1c844fc3ce69be3c6b0523c871e5f..7fbeb88c4f54c4e870ef32cc740a13b1163183ab 100644 (file)
@@ -83,9 +83,7 @@ fn generic<T>(arg: T) -> &SomeType
        fffffffffffffffffffffffffffffffffff(a, {
                SCRIPT_TASK_ROOT.with(|root| { *root.borrow_mut() = Some(&script_task); });
        });
-       a.b
-               .c
-               .d();
+       a.b.c.d();
 
        x().y(|| match cond() {
                  true => (),