Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5e01c26

Browse files
committed
Call maybe_expr_static_mut inside resolve_expr
1 parent 11129a8 commit 5e01c26

File tree

1 file changed

+4
-0
lines changed
  • compiler/rustc_hir_analysis/src/check

1 file changed

+4
-0
lines changed

compiler/rustc_hir_analysis/src/check/region.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ use rustc_middle::ty::TyCtxt;
1818
use rustc_span::source_map;
1919
use rustc_span::Span;
2020

21+
use super::errs::maybe_expr_static_mut;
22+
2123
use std::mem;
2224

2325
#[derive(Debug, Copy, Clone)]
@@ -232,6 +234,8 @@ fn resolve_stmt<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, stmt: &'tcx h
232234
fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx hir::Expr<'tcx>) {
233235
debug!("resolve_expr - pre-increment {} expr = {:?}", visitor.expr_and_pat_count, expr);
234236

237+
maybe_expr_static_mut(visitor.tcx, *expr);
238+
235239
let prev_cx = visitor.cx;
236240
visitor.enter_node_scope_with_dtor(expr.hir_id.local_id);
237241

0 commit comments

Comments
 (0)