Turn old drop blocks into Drop traits

This commit is contained in:
Ben Striegel
2013-02-27 19:13:53 -05:00
parent 33e7a1f087
commit 43d43adf6b
22 changed files with 117 additions and 29 deletions

View File

@@ -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 {