]> git.lizzy.rs Git - rust.git/commitdiff
Fix tidy check errors
authoralexey zabelin <zabelin.alex@gmail.com>
Wed, 26 Apr 2017 02:22:42 +0000 (22:22 -0400)
committeralexey zabelin <zabelin.alex@gmail.com>
Wed, 26 Apr 2017 02:22:42 +0000 (22:22 -0400)
This adjusts several lines to be shorter than 100 characters.

src/librustc_typeck/check/coercion.rs
src/librustc_typeck/check/mod.rs

index 5baa8fdb9a0c267cda205c513f14ee88e5e55018..1e08d6378a94cad50be77a1279e50fd71ec1817e 100644 (file)
@@ -1001,7 +1001,12 @@ pub fn coerce<'a>(&mut self,
                       expression_ty: Ty<'tcx>,
                       expression_diverges: Diverges)
     {
-        self.coerce_inner(fcx, cause, Some(expression), expression_ty, expression_diverges, None, false)
+        self.coerce_inner(fcx,
+                          cause,
+                          Some(expression),
+                          expression_ty,
+                          expression_diverges,
+                          None, false)
     }
 
     /// Indicates that one of the inputs is a "forced unit". This
index c64e27692be8dfd8658dd8768a4da52f7e01d97a..940678c06e2a000cfd92cfd40cde9f9a6a93dc0c 100644 (file)
@@ -4078,7 +4078,8 @@ fn check_block_with_expected(&self,
                 // this implies that the type of the block will be
                 // `!`).
                 //
-                // #41425 -- label the implicit `()` as being the "found type" here, rather than the "expected type".
+                // #41425 -- label the implicit `()` as being the
+                // "found type" here, rather than the "expected type".
                 if !self.diverges.get().always() {
                     coerce.coerce_forced_unit(self, &self.misc(blk.span), &mut |err| {
                         if let Some(expected_ty) = expected.only_has_type(self) {