mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 07:13:24 +03:00
4f2e2ceeb7
Avoid double panics when using `TempDir` in tests `TempDir` could panic on drop if `remove_dir_all` returns an error. If this happens while already panicking, the test process would abort and therefore not show the test results. This PR tries to avoid such double panics.