about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-01-17 09:39:09 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-01-26 10:28:04 +0000
commit09c4dbf7fbb545c0b861ea2473dcb84023f494c4 (patch)
tree4ea2145e83c8e2e60e21280590213ba345870c08
parent9baeb453095bc74966e0c99a6eeddefed5ed9eaa (diff)
downloadrust-09c4dbf7fbb545c0b861ea2473dcb84023f494c4.tar.gz
rust-09c4dbf7fbb545c0b861ea2473dcb84023f494c4.zip
Move std::panic unit tests to integration tests
-rw-r--r--library/std/src/panic.rs3
-rw-r--r--library/std/tests/panic.rs (renamed from library/std/src/panic/tests.rs)8
2 files changed, 4 insertions, 7 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs
index d649357a56d..153189b8b03 100644
--- a/library/std/src/panic.rs
+++ b/library/std/src/panic.rs
@@ -529,6 +529,3 @@ pub fn get_backtrace_style() -> Option<BacktraceStyle> {
         Err(new) => BacktraceStyle::from_u8(new),
     }
 }
-
-#[cfg(test)]
-mod tests;
diff --git a/library/std/src/panic/tests.rs b/library/std/tests/panic.rs
index b37d74011cc..f13b931dd22 100644
--- a/library/std/src/panic/tests.rs
+++ b/library/std/tests/panic.rs
@@ -1,9 +1,9 @@
 #![allow(dead_code)]
 
-use crate::cell::RefCell;
-use crate::panic::{AssertUnwindSafe, UnwindSafe};
-use crate::rc::Rc;
-use crate::sync::{Arc, Mutex, RwLock};
+use std::cell::RefCell;
+use std::panic::{AssertUnwindSafe, UnwindSafe};
+use std::rc::Rc;
+use std::sync::{Arc, Mutex, RwLock};
 
 struct Foo {
     a: i32,