Rename a variable.
This commit is contained in:
parent
33527755a3
commit
7e8905cd18
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user