librustc: Forbid destructors from being attached to any structs that might contain non-Owned fields. r=nmatsakis
This commit is contained in:
parent
5726fd4526
commit
d4fee24c7c
40 changed files with 236 additions and 47 deletions
|
@ -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) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue