about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorBen Striegel <ben.striegel@gmail.com>2013-02-27 19:13:53 -0500
committerBen Striegel <ben.striegel@gmail.com>2013-02-27 19:14:19 -0500
commit43d43adf6bd2024b1ddc0e596d4bed88e1df82b1 (patch)
tree62bc69f2ad5f4e78dfef71a5555e1be4b4ec3aed /src/libsyntax/parse/parser.rs
parent33e7a1f087b3b8047891b91fa95c5626042e7f6e (diff)
downloadrust-43d43adf6bd2024b1ddc0e596d4bed88e1df82b1.tar.gz
rust-43d43adf6bd2024b1ddc0e596d4bed88e1df82b1.zip
Turn old `drop` blocks into `Drop` traits
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 59ad35b38e4..1799d807564 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -243,7 +243,11 @@ pub struct Parser {
     /// Used to determine the path to externally loaded source files
     mod_path_stack: @mut ~[~str],
 
-    drop {} /* do not copy the parser; its state is tied to outside state */
+}
+
+impl Drop for Parser {
+    /* do not copy the parser; its state is tied to outside state */
+    fn finalize(&self) {}
 }
 
 pub impl Parser {