about summary refs log tree commit diff
path: root/library/std/src/panic.rs
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2020-09-25 23:10:24 +0200
committerAlexis Bourget <alexis.bourget@gmail.com>2020-09-25 23:10:24 +0200
commita61b9638bbbb48f9c2fde0ccbbcf03e64494ea0f (patch)
tree48b9c693a6e0cc8a5b8847ab1ad83d7f7db1cea3 /library/std/src/panic.rs
parent5be843fc54f80817c88438efa097a4ba81d4aa9e (diff)
downloadrust-a61b9638bbbb48f9c2fde0ccbbcf03e64494ea0f.tar.gz
rust-a61b9638bbbb48f9c2fde0ccbbcf03e64494ea0f.zip
review: fix nits and move panic safety tests to the correct place
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;