track the innermost scope for every stmt
This commit is contained in:
parent
323d7f4e98
commit
e752d4cde3
12 changed files with 55 additions and 28 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue