Rename a variable.

This commit is contained in:
Nicholas Nethercote 2023-04-11 13:25:57 +10:00
parent 33527755a3
commit 7e8905cd18

View File

@ -111,9 +111,9 @@ fn visit_region(&mut self, region: &mut ty::Region<'tcx>, location: Location) {
}
#[instrument(skip(self), level = "debug")]
fn visit_constant(&mut self, constant: &mut Constant<'tcx>, _location: Location) {
fn visit_constant(&mut self, constant: &mut Constant<'tcx>, location: Location) {
let literal = constant.literal;
constant.literal = self.renumber_regions(literal, || RegionCtxt::Location(_location));
constant.literal = self.renumber_regions(literal, || RegionCtxt::Location(location));
debug!("constant: {:#?}", constant);
}
}