rustc: Implement the Drop trait. r=brson
This commit is contained in:
parent
70886d314d
commit
2904095570
11 changed files with 200 additions and 23 deletions
|
@ -23,6 +23,11 @@ pub trait Owned {
|
|||
// Empty.
|
||||
}
|
||||
|
||||
#[lang="drop"]
|
||||
pub trait Drop {
|
||||
fn finalize(); // XXX: Rename to "drop"? --pcwalton
|
||||
}
|
||||
|
||||
#[lang="add"]
|
||||
pub trait Add<RHS,Result> {
|
||||
pure fn add(rhs: &RHS) -> Result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue