mozilla/rust — pull request #14215 by brson (2014-05-15 00:52:15+00:00)
Title: std: Modify TempDir to not fail on drop. Closes #12628

After discussion with Alex, we think the proper policy is for dtors to not fail. This is consistent with C++ best practice, which has the same double-failure semantics. BufferedWriter already does this, so this patch modifies TempDir to not fail in the dtor, adding a `close` method for handling errors on destruction.