We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c36707a commit 2b96cfbCopy full SHA for 2b96cfb
src/librustc_mir/build/scope.rs
@@ -100,7 +100,15 @@ use rustc_const_eval::ConstInt;
100
pub struct Scope<'tcx> {
101
/// the scope-id within the scope_datas
102
id: ScopeId,
103
+
104
+ /// the extent of this scope within source code; also stored in
105
+ /// `ScopeAuxiliary`, but kept here for convenience
106
extent: CodeExtent,
107
108
+ /// set of lvalues to drop when exiting this scope. This starts
109
+ /// out empty but grows as variables are declared during the
110
+ /// building process. This is a stack, so we always drop from the
111
+ /// end of the vector (top of the stack) first.
112
drops: Vec<DropData<'tcx>>,
113
114
/// A scope may only have one associated free, because:
0 commit comments