]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_borrowck/src/diagnostics/find_all_local_uses.rs
Also erase substs for new infcx in pin move error
[rust.git] / compiler / rustc_borrowck / src / diagnostics / find_all_local_uses.rs
index 498e9834354b7ff851da549230f7b2707ef43c28..2c4d953f011fc013c8058fc17506cecb12e76832 100644 (file)
@@ -9,7 +9,7 @@
 /// Find all uses of (including assignments to) a [`Local`].
 ///
 /// Uses `BTreeSet` so output is deterministic.
-pub(super) fn find<'tcx>(body: &Body<'tcx>, local: Local) -> BTreeSet<Location> {
+pub(super) fn find(body: &Body<'_>, local: Local) -> BTreeSet<Location> {
     let mut visitor = AllLocalUsesVisitor { for_local: local, uses: BTreeSet::default() };
     visitor.visit_body(body);
     visitor.uses