about summary refs log tree commit diff
path: root/library/std/src/panic.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-09-28 18:39:39 +0200
committerGitHub <noreply@github.com>2020-09-28 18:39:39 +0200
commit734c57d45c3b3d6ff19bc7d04ce00f7c9441c368 (patch)
treec0ea98d03164b650b078e8f50653e99fbbc2ad12 /library/std/src/panic.rs
parent535d27ac9a3d45dd92769f4d4c7b9f454d1077ea (diff)
parenta61b9638bbbb48f9c2fde0ccbbcf03e64494ea0f (diff)
downloadrust-734c57d45c3b3d6ff19bc7d04ce00f7c9441c368.tar.gz
rust-734c57d45c3b3d6ff19bc7d04ce00f7c9441c368.zip
Rollup merge of #76454 - poliorcetics:ui-to-unit-test-1, r=matklad
UI to unit test for those using Cell/RefCell/UnsafeCell

Helps with #76268.

I'm working on all files using `Cell` and moving them to unit tests when possible.

r? @matklad
Diffstat (limited to 'library/std/src/panic.rs')
-rw-r--r--library/std/src/panic.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs
index 18d9c2f11b5..4281867314c 100644
--- a/library/std/src/panic.rs
+++ b/library/std/src/panic.rs
@@ -411,3 +411,6 @@ pub fn catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
 pub fn resume_unwind(payload: Box<dyn Any + Send>) -> ! {
     panicking::rust_panic_without_hook(payload)
 }
+
+#[cfg(test)]
+mod tests;