]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_borrowck/borrowck/gather_loans/mod.rs
rustc: Remove some dead code
[rust.git] / src / librustc_borrowck / borrowck / gather_loans / mod.rs
index 4ff603b7eae01441e9f26a0e646b92a72c6aa12a..00ebf5de44af8ad74b2b88e397ce0a2a8679b00b 100644 (file)
@@ -94,12 +94,6 @@ fn matched_pat(&mut self,
                matched_pat,
                cmt,
                mode);
-
-        if let Categorization::Downcast(..) = cmt.cat {
-            gather_moves::gather_match_variant(
-                self.bccx, &self.move_data, &mut self.move_error_collector,
-                matched_pat, cmt, mode);
-        }
     }
 
     fn consume_pat(&mut self,