]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/parse/parser.rs
switch Drop to `&mut self`
[rust.git] / src / libsyntax / parse / parser.rs
index f05452bb6c504d584ece8c54484ecf5e0fa80940..4aad5c24d0f3d8e07e3355f38bd32d4908d844a1 100644 (file)
@@ -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 {