Skip to content

Commit 8279918

Browse files
bjorn3gitbot
authored and
gitbot
committed
Move std::panic unit tests to integration tests
1 parent 0a8ed17 commit 8279918

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

std/src/panic.rs

-3
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,3 @@ pub fn get_backtrace_style() -> Option<BacktraceStyle> {
529529
Err(new) => BacktraceStyle::from_u8(new),
530530
}
531531
}
532-
533-
#[cfg(test)]
534-
mod tests;

std/src/panic/tests.rs renamed to std/tests/panic.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#![allow(dead_code)]
22

3-
use crate::cell::RefCell;
4-
use crate::panic::{AssertUnwindSafe, UnwindSafe};
5-
use crate::rc::Rc;
6-
use crate::sync::{Arc, Mutex, RwLock};
3+
use std::cell::RefCell;
4+
use std::panic::{AssertUnwindSafe, UnwindSafe};
5+
use std::rc::Rc;
6+
use std::sync::{Arc, Mutex, RwLock};
77

88
struct Foo {
99
a: i32,

0 commit comments

Comments
 (0)