diff options
| author | Ben Striegel <ben.striegel@gmail.com> | 2013-02-27 19:13:53 -0500 |
|---|---|---|
| committer | Ben Striegel <ben.striegel@gmail.com> | 2013-02-27 19:14:19 -0500 |
| commit | 43d43adf6bd2024b1ddc0e596d4bed88e1df82b1 (patch) | |
| tree | 62bc69f2ad5f4e78dfef71a5555e1be4b4ec3aed /src/libsyntax/parse/parser.rs | |
| parent | 33e7a1f087b3b8047891b91fa95c5626042e7f6e (diff) | |
| download | rust-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.rs | 6 |
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 { |
