Skip to content

Commit

Permalink
Fix tidy check errors
Browse files Browse the repository at this point in the history
This adjusts several lines to be shorter than 100 characters.
  • Loading branch information
alexeyzab committed Apr 26, 2017
1 parent dd906ef commit 5312f0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/librustc_typeck/check/coercion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,12 @@ impl<'gcx, 'tcx, 'exprs, E> CoerceMany<'gcx, 'tcx, 'exprs, E>
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
Expand Down
3 changes: 2 additions & 1 deletion src/librustc_typeck/check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4078,7 +4078,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
// 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) {
Expand Down

0 comments on commit 5312f0c

Please sign in to comment.