librustc: Make the Drop trait use explicit self

This commit is contained in:
Patrick Walton
2012-11-28 15:42:16 -08:00
parent 5a282ec26f
commit 9e1c9be16f
91 changed files with 166 additions and 123 deletions

View File

@@ -42,11 +42,11 @@ struct DtorRes {
}
impl DtorRes : Drop {
fn finalize() {
match self.dtor {
option::None => (),
option::Some(f) => f()
}
fn finalize(&self) {
match self.dtor {
option::None => (),
option::Some(f) => f()
}
}
}