about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorChris Gregory <czipperz@gmail.com>2019-06-01 16:50:15 -0700
committerGitHub <noreply@github.com>2019-06-01 16:50:15 -0700
commitc25b3df3e548ec42de1bb8a3aaad1e10d9de4aab (patch)
tree91f8333fbc90b987b367622ddb4be4b5a19ab2f0 /src
parent911d205b1fab7cb0b84e1768c1744d89bd2c5c27 (diff)
downloadrust-c25b3df3e548ec42de1bb8a3aaad1e10d9de4aab.tar.gz
rust-c25b3df3e548ec42de1bb8a3aaad1e10d9de4aab.zip
Elide lifetimes not used
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/borrow_check/used_muts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/borrow_check/used_muts.rs b/src/librustc_mir/borrow_check/used_muts.rs
index 2334bd33694..db5c3c7a340 100644
--- a/src/librustc_mir/borrow_check/used_muts.rs
+++ b/src/librustc_mir/borrow_check/used_muts.rs
@@ -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