librustc: Make the Drop trait use explicit self
This commit is contained in:
parent
5a282ec26f
commit
9e1c9be16f
91 changed files with 166 additions and 123 deletions
|
@ -229,7 +229,7 @@ struct PoisonOnFail {
|
|||
}
|
||||
|
||||
impl PoisonOnFail : Drop {
|
||||
fn finalize() {
|
||||
fn finalize(&self) {
|
||||
/* assert !*self.failed; -- might be false in case of cond.wait() */
|
||||
if task::failing() { *self.failed = true; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue