From 2b96cfb14375def79676a969ded1b00a44aa74c4 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 23 Mar 2016 05:18:49 -0400 Subject: [PATCH] add comments on remaining fields --- src/librustc_mir/build/scope.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/librustc_mir/build/scope.rs b/src/librustc_mir/build/scope.rs index 00d517cc255..cc9a4c4e714 100644 --- a/src/librustc_mir/build/scope.rs +++ b/src/librustc_mir/build/scope.rs @@ -100,7 +100,15 @@ use rustc_const_eval::ConstInt; pub struct Scope<'tcx> { /// the scope-id within the scope_datas id: ScopeId, + + /// the extent of this scope within source code; also stored in + /// `ScopeAuxiliary`, but kept here for convenience extent: CodeExtent, + + /// set of lvalues to drop when exiting this scope. This starts + /// out empty but grows as variables are declared during the + /// building process. This is a stack, so we always drop from the + /// end of the vector (top of the stack) first. drops: Vec>, /// A scope may only have one associated free, because: