Skip to content

Commit 7e8905c

Browse files
committed
Rename a variable.
1 parent 3352775 commit 7e8905c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_borrowck/src/renumber.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ impl<'a, 'tcx> MutVisitor<'tcx> for NllVisitor<'a, 'tcx> {
111111
}
112112

113113
#[instrument(skip(self), level = "debug")]
114-
fn visit_constant(&mut self, constant: &mut Constant<'tcx>, _location: Location) {
114+
fn visit_constant(&mut self, constant: &mut Constant<'tcx>, location: Location) {
115115
let literal = constant.literal;
116-
constant.literal = self.renumber_regions(literal, || RegionCtxt::Location(_location));
116+
constant.literal = self.renumber_regions(literal, || RegionCtxt::Location(location));
117117
debug!("constant: {:#?}", constant);
118118
}
119119
}

0 commit comments

Comments
 (0)