diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-07-05 15:58:45 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-07-05 16:11:51 -0700 |
| commit | 663b3fc89c7f8cd0568720f5c0acf6ee6818b0d9 (patch) | |
| tree | 47d84b4d4b0880e84ce5cad1b70a019ca5c1d188 /src/libsyntax/parse | |
| parent | 889be71cb4d4252073f2dbdedb71e8ea1645f6e3 (diff) | |
| download | rust-663b3fc89c7f8cd0568720f5c0acf6ee6818b0d9.tar.gz rust-663b3fc89c7f8cd0568720f5c0acf6ee6818b0d9.zip | |
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?)
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 4d13b8ac9a5..55e75f07f27 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; |
