Skip to content

Commit

Permalink
consume subexpr of type ascription in expr_use_visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
b-naber committed Feb 11, 2021
1 parent f699d41 commit 597cb28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_typeck/src/expr_use_visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ impl<'a, 'tcx> ExprUseVisitor<'a, 'tcx> {
let place_with_id = return_if_err!(self.mc.cat_expr(expr));

self.delegate_consume(&place_with_id, place_with_id.hir_id);
self.walk_expr(subexpr);
self.consume_expr(subexpr);
}

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

0 comments on commit 597cb28

Please sign in to comment.