about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-02-28 07:25:49 -0800
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-02-28 07:25:49 -0800
commitd2c4b6492dbccc1bb60f163ac583467bc63abce6 (patch)
treed17faf8bcf8622272d8f8f3d31ef8e0fd795031d /src/libsyntax/parse
parent3953bdd812d73a51f9a7be4a1c57c60d56c6aa1a (diff)
parentb171d0ef7b68fed961597d38e6a474d748243987 (diff)
downloadrust-d2c4b6492dbccc1bb60f163ac583467bc63abce6.tar.gz
rust-d2c4b6492dbccc1bb60f163ac583467bc63abce6.zip
Merge remote-tracking branch 'remotes/origin/incoming' into incoming
Diffstat (limited to 'src/libsyntax/parse')
-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 69afa882765..b0b2107703c 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -259,7 +259,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 {