]> git.lizzy.rs Git - rust.git/commitdiff
Fix tidy errors
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sat, 15 Jul 2017 19:28:42 +0000 (21:28 +0200)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Fri, 28 Jul 2017 13:46:27 +0000 (15:46 +0200)
src/librustc_borrowck/borrowck/mod.rs
src/test/ui/generator/yield-in-args-rev.rs
src/test/ui/generator/yield-in-args.rs

index 79dff50022802b3a28a7c9789e6d7672ff6c082d..820761603cd6ab5ae0d9bd44f36e421bf70b28d4 100644 (file)
@@ -719,7 +719,11 @@ fn report_bckerr(&self, err: &BckError<'tcx>) {
 
                 let mut db = match err.cause {
                     MutabilityViolation => {
-                        struct_span_err!(self.tcx.sess, error_span, E0594, "cannot assign to {}", descr)
+                        struct_span_err!(self.tcx.sess,
+                                         error_span,
+                                         E0594,
+                                         "cannot assign to {}",
+                                         descr)
                     }
                     BorrowViolation(euv::ClosureCapture(_)) => {
                         struct_span_err!(self.tcx.sess, error_span, E0595,
index 0d2e9a85de1e672c2b4d214742170c2cedb9c043..fb0e68136f544f151efbc3a13f910ba66659d6f1 100644 (file)
@@ -15,10 +15,10 @@ fn foo(_a: (), _b: &bool) {}
 // Some examples that probably *could* be accepted, but which we reject for now.
 
 fn bar() {
-       || {
-               let b = true;
-               foo(yield, &b); //~ ERROR
-       };
+    || {
+        let b = true;
+        foo(yield, &b); //~ ERROR
+    };
 }
 
 fn main() { }
index c2fcfa5cdc20762350a8459c5e9bcf2a7c3b2585..faeb4b1feb28ded8ca89d9989e56d132fd22f062 100644 (file)
@@ -13,8 +13,8 @@
 fn foo(_b: &bool, _a: ()) {}
 
 fn main() {
-       || {
-               let b = true;
-               foo(&b, yield); //~ ERROR
-       };
+    || {
+        let b = true;
+        foo(&b, yield); //~ ERROR
+    };
 }