Skip to content

Commit 64d196a

Browse files
committed
Use deterministic keyword renaming (append _)
1 parent 4cb1f63 commit 64d196a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lvalue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
137137
Local(mir::RETURN_POINTER) => self.frame().return_lvalue,
138138
Local(local) => Lvalue::Local { frame: self.stack.len() - 1, local, field: None },
139139

140-
Static(ref statik) => {
140+
Static(ref static_) => {
141141
let substs = self.tcx.intern_substs(&[]);
142-
Lvalue::Global(GlobalId { def_id: statik.def_id, substs, promoted: None })
142+
Lvalue::Global(GlobalId { def_id: static_.def_id, substs, promoted: None })
143143
}
144144

145145
Projection(ref proj) => return self.eval_lvalue_projection(proj),

src/step.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ impl<'a, 'b, 'tcx> Visitor<'tcx> for ConstantExtractor<'a, 'b, 'tcx> {
242242
location: mir::Location
243243
) {
244244
self.super_lvalue(lvalue, context, location);
245-
if let mir::Lvalue::Static(ref statik) = *lvalue {
246-
let def_id = statik.def_id;
245+
if let mir::Lvalue::Static(ref static_) = *lvalue {
246+
let def_id = static_.def_id;
247247
let substs = self.ecx.tcx.intern_substs(&[]);
248248
let span = self.span;
249249
if let Some(node_item) = self.ecx.tcx.hir.get_if_local(def_id) {

0 commit comments

Comments
 (0)