]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/trans/closure.rs
Remove incorrect assert in trans
[rust.git] / src / librustc / middle / trans / closure.rs
index 16db4daba46b8ba767aa99ebef481f1f192dfcfc..4f6d4ab6a2432fa009bf6ebebd3bb2176a0bbfad 100644 (file)
@@ -322,7 +322,6 @@ fn load_unboxed_closure_environment<'blk, 'tcx>(
                                          self_type,
                                          "unboxed_closure_env");
         store_ty(bcx, bcx.fcx.llenv.unwrap(), datum.val, self_type);
-        assert!(freevars.len() <= 1);
         datum.val
     } else {
         bcx.fcx.llenv.unwrap()