Skip to content

Commit 10101dd

Browse files
committed
rename variables to match new type name
1 parent ea911ca commit 10101dd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/librustc_mir/interpret/validation.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,34 +89,34 @@ impl<'a, 'tcx, M: Machine<'tcx>> EvalContext<'a, 'tcx, M> {
8989
let mode = match op {
9090
ValidationOp::Acquire => ValidationMode::Acquire,
9191
ValidationOp::Release => ValidationMode::ReleaseUntil(None),
92-
ValidationOp::Suspend(ce) => {
92+
ValidationOp::Suspend(scope) => {
9393
if query.mutbl == MutMutable {
9494
let lft = DynamicLifetime {
9595
frame: self.cur_frame(),
96-
region: Some(ce),
96+
region: Some(scope),
9797
};
98-
trace!("Suspending {:?} until {:?}", query, ce);
98+
trace!("Suspending {:?} until {:?}", query, scope);
9999
self.suspended.entry(lft).or_insert_with(Vec::new).push(
100100
query.clone(),
101101
);
102102
}
103-
ValidationMode::ReleaseUntil(Some(ce))
103+
ValidationMode::ReleaseUntil(Some(scope))
104104
}
105105
};
106106
self.validate(query, mode)
107107
}
108108

109-
pub(crate) fn end_region(&mut self, ce: region::Scope) -> EvalResult<'tcx> {
110-
self.memory.locks_lifetime_ended(Some(ce));
109+
pub(crate) fn end_region(&mut self, scope: region::Scope) -> EvalResult<'tcx> {
110+
self.memory.locks_lifetime_ended(Some(scope));
111111
// Recover suspended lvals
112112
let lft = DynamicLifetime {
113113
frame: self.cur_frame(),
114-
region: Some(ce),
114+
region: Some(scope),
115115
};
116116
if let Some(queries) = self.suspended.remove(&lft) {
117117
for query in queries {
118118
trace!("Recovering {:?} from suspension", query);
119-
self.validate(query, ValidationMode::Recover(ce))?;
119+
self.validate(query, ValidationMode::Recover(scope))?;
120120
}
121121
}
122122
Ok(())
@@ -459,7 +459,7 @@ impl<'a, 'tcx, M: Machine<'tcx>> EvalContext<'a, 'tcx, M> {
459459
// we record the region of this borrow to the context.
460460
if query.re == None {
461461
match *region {
462-
ReScope(ce) => query.re = Some(ce),
462+
ReScope(scope) => query.re = Some(scope),
463463
// It is possible for us to encounter erased lifetimes here because the lifetimes in
464464
// this functions' Subst will be erased.
465465
_ => {}

0 commit comments

Comments
 (0)