about summary refs log tree commit diff
path: root/src/test/ui/panic-while-printing.rs
AgeCommit message (Collapse)AuthorLines
2020-03-18std: Don't abort process when printing panics in testsAlex Crichton-0/+24
This commit fixes an issue when using `set_print` and friends, notably used by libtest, to avoid aborting the process if printing panics. This previously panicked due to borrowing a mutable `RefCell` twice, and this is worked around by borrowing these cells for less time, instead taking out and removing contents temporarily. Closes #69558