track the innermost scope for every stmt

This commit is contained in:
Niko Matsakis 2016-03-09 13:36:04 -05:00
parent 323d7f4e98
commit e752d4cde3
12 changed files with 55 additions and 28 deletions

View file

@ -458,6 +458,7 @@ impl<'tcx> Terminator<'tcx> {
#[derive(Clone, RustcEncodable, RustcDecodable)]
pub struct Statement<'tcx> {
pub span: Span,
pub scope: ScopeId,
pub kind: StatementKind<'tcx>,
}
@ -474,6 +475,7 @@ impl<'tcx> Debug for Statement<'tcx> {
}
}
}
///////////////////////////////////////////////////////////////////////////
// Lvalues