Skip to content

Commit

Permalink
Move std::error 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 08d046c commit cb75c03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 0 additions & 3 deletions std/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#![doc = include_str!("../../core/src/error.md")]
#![stable(feature = "rust1", since = "1.0.0")]

#[cfg(test)]
mod tests;

#[stable(feature = "rust1", since = "1.0.0")]
pub use core::error::Error;
#[unstable(feature = "error_generic_member_access", issue = "99301")]
Expand Down
10 changes: 4 additions & 6 deletions std/src/error/tests.rs → std/tests/error.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use core::error::Request;
#![feature(error_generic_member_access, error_reporter)]

use super::Error;
use crate::fmt;
use std::backtrace::Backtrace;
use std::error::{Error, Report, Request};
use std::fmt;

#[derive(Debug, PartialEq)]
struct A;
Expand Down Expand Up @@ -38,9 +39,6 @@ fn downcasting() {
}
}

use crate::backtrace::Backtrace;
use crate::error::Report;

#[derive(Debug)]
struct SuperError {
source: SuperErrorSideKick,
Expand Down

0 comments on commit cb75c03

Please sign in to comment.