From 4e161a4d401224507513bfbf33b22f0b72f8ba81 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 16 Sep 2013 21:18:07 -0400 Subject: switch Drop to `&mut self` --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index f05452bb6c5..4aad5c24d0f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -341,7 +341,7 @@ pub struct Parser { #[unsafe_destructor] impl Drop for Parser { /* do not copy the parser; its state is tied to outside state */ - fn drop(&self) {} + fn drop(&mut self) {} } fn is_plain_ident_or_underscore(t: &token::Token) -> bool { -- cgit 1.4.1-3-g733a5