Call maybe_stmt_static_mut
inside resolve_stmt
This commit is contained in:
parent
a82fd2bc7c
commit
e36f7b7a5c
1 changed files with 3 additions and 1 deletions
|
@ -18,7 +18,7 @@ use rustc_middle::ty::TyCtxt;
|
||||||
use rustc_span::source_map;
|
use rustc_span::source_map;
|
||||||
use rustc_span::Span;
|
use rustc_span::Span;
|
||||||
|
|
||||||
use super::errs::maybe_expr_static_mut;
|
use super::errs::{maybe_expr_static_mut, maybe_stmt_static_mut};
|
||||||
|
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
||||||
|
@ -226,6 +226,8 @@ fn resolve_stmt<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, stmt: &'tcx h
|
||||||
let stmt_id = stmt.hir_id.local_id;
|
let stmt_id = stmt.hir_id.local_id;
|
||||||
debug!("resolve_stmt(stmt.id={:?})", stmt_id);
|
debug!("resolve_stmt(stmt.id={:?})", stmt_id);
|
||||||
|
|
||||||
|
maybe_stmt_static_mut(visitor.tcx, *stmt);
|
||||||
|
|
||||||
// Every statement will clean up the temporaries created during
|
// Every statement will clean up the temporaries created during
|
||||||
// execution of that statement. Therefore each statement has an
|
// execution of that statement. Therefore each statement has an
|
||||||
// associated destruction scope that represents the scope of the
|
// associated destruction scope that represents the scope of the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue