]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/borrowck/mod.rs
rollup merge of #18337 : bkoropoff/unboxed-imm-upvar-fixes
[rust.git] / src / librustc / middle / borrowck / mod.rs
index 06249b956b67dc0a8691f23bb414fec423cdafc3..b09e9105f3f6be4102905f05b1fd38fc56bc8329 100644 (file)
@@ -379,8 +379,7 @@ pub fn opt_loan_path(cmt: &mc::cmt) -> Option<Rc<LoanPath>> {
             })
         }
 
-        mc::cat_downcast(ref cmt_base) |
-        mc::cat_discr(ref cmt_base, _) => {
+        mc::cat_downcast(ref cmt_base) => {
             opt_loan_path(cmt_base)
         }
     }