about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-02-27 23:30:40 -0800
committerbors <bors@rust-lang.org>2013-02-27 23:30:40 -0800
commitc705440ee3f98a01c0e840202f320ed7998221d6 (patch)
treedeec96635e740426ae18513d8a0019715ced23fc /src/libsyntax
parentfcd4af169fc6ed45090625c354460a911177533b (diff)
parent43d43adf6bd2024b1ddc0e596d4bed88e1df82b1 (diff)
downloadrust-c705440ee3f98a01c0e840202f320ed7998221d6.tar.gz
rust-c705440ee3f98a01c0e840202f320ed7998221d6.zip
auto merge of #5155 : bstrie/rust/dedrop, r=pcwalton
This removes all but 6 uses of `drop {}` from the entire codebase. Removing any of the remaining uses causes various non-trivial bugs; I'll start reporting them once this gets merged.
Diffstat (limited to 'src/libsyntax')
-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 6b4f195d076..9ad3e60ba84 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -245,7 +245,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 {