]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/feature_gate.rs
remove TyClosure
[rust.git] / src / libsyntax / feature_gate.rs
index f8ac34cfe29202a90594f1d00dfe4b057cf45f97..cb6277069e1a2b4ccbf3078c7ee23c04eed185df 100644 (file)
@@ -364,12 +364,6 @@ fn visit_foreign_item(&mut self, i: &ast::ForeignItem) {
     }
 
     fn visit_ty(&mut self, t: &ast::Ty) {
-        if let ast::TyClosure(ref closure) =  t.node {
-            // this used to be blocked by a feature gate, but it should just
-            // be plain impossible right now
-            assert!(closure.onceness != ast::Once);
-        }
-
         visit::walk_ty(self, t);
     }