about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-04-11 13:25:57 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-04-11 13:25:57 +1000
commit7e8905cd18901fb0a2fdc68bfbf3133291ca2183 (patch)
treee0911c95085a2c1d03780631e4b45745e191080c
parent33527755a33674880093199e311f1d578edd7397 (diff)
downloadrust-7e8905cd18901fb0a2fdc68bfbf3133291ca2183.tar.gz
rust-7e8905cd18901fb0a2fdc68bfbf3133291ca2183.zip
Rename a variable.
-rw-r--r--compiler/rustc_borrowck/src/renumber.rs4
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);
     }
 }