librustc: Forbid destructors from being attached to any structs that might contain non-Owned fields. r=nmatsakis

This commit is contained in:
Patrick Walton 2013-03-20 18:18:57 -07:00
parent 5726fd4526
commit d4fee24c7c
40 changed files with 236 additions and 47 deletions

View file

@ -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) {}