Move log's short part to first

This commit is contained in:
liudingming 2021-04-04 00:05:17 +08:00
parent 36bcf40697
commit 8eed8ed967

View File

@ -161,7 +161,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
expr: &'tcx hir::Expr<'tcx>,
expected: Expectation<'tcx>,
) -> Ty<'tcx> {
debug!(">> type-checking: expr={:?} expected={:?}", expr, expected);
debug!(">> type-checking: expected={:?}, expr={:?} ", expected, expr);
// True if `expr` is a `Try::from_ok(())` that is a result of desugaring a try block
// without the final expr (e.g. `try { return; }`). We don't want to generate an
@ -224,7 +224,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
expr: &'tcx hir::Expr<'tcx>,
expected: Expectation<'tcx>,
) -> Ty<'tcx> {
debug!("check_expr_kind(expr={:?}, expected={:?})", expr, expected);
debug!("check_expr_kind(expected={:?}, expr={:?})", expected, expr);
let tcx = self.tcx;
match expr.kind {