From 43d43adf6bd2024b1ddc0e596d4bed88e1df82b1 Mon Sep 17 00:00:00 2001 From: Ben Striegel Date: Wed, 27 Feb 2013 19:13:53 -0500 Subject: Turn old `drop` blocks into `Drop` traits --- src/libsyntax/parse/parser.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/parse') 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 { -- cgit 1.4.1-3-g733a5