From d4fee24c7c4c8ddb1c2c681a01f666a59881acbb Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 20 Mar 2013 18:18:57 -0700 Subject: librustc: Forbid destructors from being attached to any structs that might contain non-Owned fields. r=nmatsakis --- src/libsyntax/parse/parser.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax/parse') 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) {} -- cgit 1.4.1-3-g733a5