Skip to content

Commit 5312f0c

Browse files
committed
Fix tidy check errors
This adjusts several lines to be shorter than 100 characters.
1 parent dd906ef commit 5312f0c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/librustc_typeck/check/coercion.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,12 @@ impl<'gcx, 'tcx, 'exprs, E> CoerceMany<'gcx, 'tcx, 'exprs, E>
10011001
expression_ty: Ty<'tcx>,
10021002
expression_diverges: Diverges)
10031003
{
1004-
self.coerce_inner(fcx, cause, Some(expression), expression_ty, expression_diverges, None, false)
1004+
self.coerce_inner(fcx,
1005+
cause,
1006+
Some(expression),
1007+
expression_ty,
1008+
expression_diverges,
1009+
None, false)
10051010
}
10061011

10071012
/// Indicates that one of the inputs is a "forced unit". This

src/librustc_typeck/check/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4078,7 +4078,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
40784078
// this implies that the type of the block will be
40794079
// `!`).
40804080
//
4081-
// #41425 -- label the implicit `()` as being the "found type" here, rather than the "expected type".
4081+
// #41425 -- label the implicit `()` as being the
4082+
// "found type" here, rather than the "expected type".
40824083
if !self.diverges.get().always() {
40834084
coerce.coerce_forced_unit(self, &self.misc(blk.span), &mut |err| {
40844085
if let Some(expected_ty) = expected.only_has_type(self) {

0 commit comments

Comments
 (0)