]> git.lizzy.rs Git - rust.git/commitdiff
Elide lifetimes not used
authorChris Gregory <czipperz@gmail.com>
Sat, 1 Jun 2019 23:50:15 +0000 (16:50 -0700)
committerGitHub <noreply@github.com>
Sat, 1 Jun 2019 23:50:15 +0000 (16:50 -0700)
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
src/librustc_mir/borrow_check/used_muts.rs

index 2334bd33694c0232c44ada1486dadc323d6d18b6..db5c3c7a34046511b06ce90956564dd52cda31b2 100644 (file)
@@ -52,7 +52,7 @@ struct GatherUsedMutsVisitor<'visit, 'cx: 'visit, 'gcx: 'tcx, 'tcx: 'cx> {
     mbcx: &'visit mut MirBorrowckCtxt<'cx, 'gcx, 'tcx>,
 }
 
-impl<'visit, 'cx, 'gcx, 'tcx> GatherUsedMutsVisitor<'visit, 'cx, 'gcx, 'tcx> {
+impl GatherUsedMutsVisitor<'_, '_, '_, '_> {
     fn remove_never_initialized_mut_locals(into: &Place) {
         // Remove any locals that we found were initialized from the
         // `never_initialized_mut_locals` set. At the end, the only remaining locals will