Remove unnecessary body_expr_count

This commit is contained in:
Michael Goulet
2023-12-22 20:19:18 +00:00
parent 71696e516d
commit bacfa976ca
2 changed files with 0 additions and 18 deletions

View File

@@ -824,10 +824,6 @@ impl<'tcx> Visitor<'tcx> for RegionResolutionVisitor<'tcx> {
resolve_local(self, None, Some(body.value));
}
if body.coroutine_kind.is_some() {
self.scope_tree.body_expr_count.insert(body_id, self.expr_and_pat_count);
}
// Restore context we had at the start.
self.expr_and_pat_count = outer_ec;
self.cx = outer_cx;