diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-20 18:18:57 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-21 17:31:34 -0700 |
| commit | d4fee24c7c4c8ddb1c2c681a01f666a59881acbb (patch) | |
| tree | 8e708c38984e6d54dfe823377113d6047d9f3551 /src/libsyntax/parse | |
| parent | 5726fd45268d1ef3574c9321c7ce6efb7e676eac (diff) | |
| download | rust-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')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 1 |
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) {} |
