]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/trans/closure.rs
remove ty_closure
[rust.git] / src / librustc_trans / trans / closure.rs
index 7b394cef192eb99479ac7944a0bb52496cb3abef..cb0d2f3edd4d69f6afa49028b984894739335d02 100644 (file)
@@ -599,7 +599,6 @@ pub fn get_wrapper_for_bare_fn<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
     debug!("get_wrapper_for_bare_fn(closure_ty={})", closure_ty.repr(tcx));
 
     let f = match closure_ty.sty {
-        ty::ty_closure(ref f) => f,
         _ => {
             ccx.sess().bug(format!("get_wrapper_for_bare_fn: \
                                     expected a closure ty, got {}",