about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-20 18:18:57 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-03-21 17:31:34 -0700
commitd4fee24c7c4c8ddb1c2c681a01f666a59881acbb (patch)
tree8e708c38984e6d54dfe823377113d6047d9f3551 /src/libsyntax/parse/parser.rs
parent5726fd45268d1ef3574c9321c7ce6efb7e676eac (diff)
downloadrust-d4fee24c7c4c8ddb1c2c681a01f666a59881acbb.tar.gz
rust-d4fee24c7c4c8ddb1c2c681a01f666a59881acbb.zip
librustc: Forbid destructors from being attached to any structs that might contain non-Owned fields. r=nmatsakis
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index de861075a5b..421c1805f6a 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -268,6 +268,7 @@ pub struct Parser {
 
 }
 
+#[unsafe_destructor]
 impl Drop for Parser {
     /* do not copy the parser; its state is tied to outside state */
     fn finalize(&self) {}