Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: Don't abort process when printing panics in tests #69959

Merged
merged 1 commit into from
Mar 19, 2020

Commits on Mar 18, 2020

  1. std: Don't abort process when printing panics in tests

    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 rust-lang#69558
    alexcrichton committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    d5b6a20 View commit details
    Browse the repository at this point in the history