From 663b3fc89c7f8cd0568720f5c0acf6ee6818b0d9 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 5 Jul 2012 15:58:45 -0700 Subject: [PATCH] Uncomment destructor in parser now that dtors work Although this one is just a hack to make a class non-copyable. (Do we want syntax for that instead?) --- src/libsyntax/parse/parser.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 4d13b8ac9a55..55e75f07f274 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -98,8 +98,7 @@ class parser { self.restricted_keywords = token::restricted_keyword_table(); } - //TODO: uncomment when destructors work - //drop {} /* do not copy the parser; its state is tied to outside state */ + drop {} /* do not copy the parser; its state is tied to outside state */ fn bump() { self.last_span = self.span;