about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-10-18 14:21:23 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-10-18 14:24:15 +1100
commit42c8803fe86dec00df2f5794e5f57aa78b54c8ee (patch)
tree86a3c567f20aab0d139bd7ac4e66b6adbb663d15
parent025eb20a861df45e681629c999c9e7c0981cc09c (diff)
downloadrust-42c8803fe86dec00df2f5794e5f57aa78b54c8ee.tar.gz
rust-42c8803fe86dec00df2f5794e5f57aa78b54c8ee.zip
Remove empty `MirUsedCollector::visit_local`.
It has not effect, because the default `visit_local` in `mir::Visitor`
is already empty.
-rw-r--r--compiler/rustc_monomorphize/src/collector.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs
index 6ea177bb6ea..e9fbc20f93d 100644
--- a/compiler/rustc_monomorphize/src/collector.rs
+++ b/compiler/rustc_monomorphize/src/collector.rs
@@ -874,14 +874,6 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirUsedCollector<'a, 'tcx> {
         self.super_operand(operand, location);
         self.check_operand_move_size(operand, location);
     }
-
-    fn visit_local(
-        &mut self,
-        _place_local: Local,
-        _context: mir::visit::PlaceContext,
-        _location: Location,
-    ) {
-    }
 }
 
 fn visit_drop_use<'tcx>(