Skip to content

Commit cecccd9

Browse files
committed
whitespace changes, debug message
1 parent 140165f commit cecccd9

File tree

1 file changed

+6
-2
lines changed
  • src/librustc_typeck/check

1 file changed

+6
-2
lines changed

src/librustc_typeck/check/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,6 +1526,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
15261526
if self.diverges.get() == Diverges::Always {
15271527
self.diverges.set(Diverges::WarnedAlways);
15281528

1529+
debug!("warn_if_unreachable: id={:?} span={:?} kind={}", id, span, kind);
1530+
15291531
self.tables.borrow_mut().lints.add_lint(
15301532
lint::builtin::UNREACHABLE_CODE,
15311533
id, span,
@@ -2545,8 +2547,10 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
25452547
Expectation::rvalue_hint(self, ty)
25462548
});
25472549

2548-
let checked_ty = self.check_expr_with_expectation(&arg,
2549-
expected.unwrap_or(ExpectHasType(formal_ty)));
2550+
let checked_ty = self.check_expr_with_expectation(
2551+
&arg,
2552+
expected.unwrap_or(ExpectHasType(formal_ty)));
2553+
25502554
// 2. Coerce to the most detailed type that could be coerced
25512555
// to, which is `expected_ty` if `rvalue_hint` returns an
25522556
// `ExpectHasType(expected_ty)`, or the `formal_ty` otherwise.

0 commit comments

Comments
 (0)