diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-04-11 13:25:57 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-04-11 13:25:57 +1000 |
| commit | 7e8905cd18901fb0a2fdc68bfbf3133291ca2183 (patch) | |
| tree | e0911c95085a2c1d03780631e4b45745e191080c | |
| parent | 33527755a33674880093199e311f1d578edd7397 (diff) | |
| download | rust-7e8905cd18901fb0a2fdc68bfbf3133291ca2183.tar.gz rust-7e8905cd18901fb0a2fdc68bfbf3133291ca2183.zip | |
Rename a variable.
| -rw-r--r-- | compiler/rustc_borrowck/src/renumber.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_borrowck/src/renumber.rs b/compiler/rustc_borrowck/src/renumber.rs index 6913d74af94..07962267594 100644 --- a/compiler/rustc_borrowck/src/renumber.rs +++ b/compiler/rustc_borrowck/src/renumber.rs @@ -111,9 +111,9 @@ impl<'a, 'tcx> MutVisitor<'tcx> for NllVisitor<'a, 'tcx> { } #[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); } } |
