Convert libstd to use the Drop trait
This commit is contained in:
parent
4b0e1336b2
commit
4589597785
8 changed files with 107 additions and 52 deletions
|
|
@ -1133,7 +1133,10 @@ mod big_tests {
|
|||
val: uint,
|
||||
key: fn(@uint),
|
||||
|
||||
drop {
|
||||
}
|
||||
|
||||
impl LVal : Drop {
|
||||
fn finalize() {
|
||||
let x = unsafe { task::local_data::local_data_get(self.key) };
|
||||
match x {
|
||||
Some(@y) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue