Skip to content

Commit 597cb28

Browse files
committed
consume subexpr of type ascription in expr_use_visitor
1 parent f699d41 commit 597cb28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/expr_use_visitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl<'a, 'tcx> ExprUseVisitor<'a, 'tcx> {
187187
let place_with_id = return_if_err!(self.mc.cat_expr(expr));
188188

189189
self.delegate_consume(&place_with_id, place_with_id.hir_id);
190-
self.walk_expr(subexpr);
190+
self.consume_expr(subexpr);
191191
}
192192

193193
hir::ExprKind::Unary(hir::UnOp::UnDeref, ref base) => {

0 commit comments

Comments
 (0)