Skip to content

Commit

Permalink
Move std::panic unit tests to integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 authored and gitbot committed Feb 20, 2025
1 parent 6f8c5c7 commit fcbf7a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions std/src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,3 @@ pub fn get_backtrace_style() -> Option<BacktraceStyle> {
Err(new) => BacktraceStyle::from_u8(new),
}
}

#[cfg(test)]
mod tests;
8 changes: 4 additions & 4 deletions std/src/panic/tests.rs → std/tests/panic.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit fcbf7a3

Please sign in to comment.