Skip to content

Rollup of 8 pull requests #136463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e00cbf3
Move std::env unit tests to integration tests
bjorn3 Jan 17, 2025
03d44a6
Move std::error unit tests to integration tests
bjorn3 Jan 17, 2025
29166cd
Move std float unit tests to integration tests
bjorn3 Jan 17, 2025
9baeb45
Move std::num unit tests to integration tests
bjorn3 Jan 17, 2025
09c4dbf
Move std::panic unit tests to integration tests
bjorn3 Jan 17, 2025
b8fa843
Move std::path unit tests to integration tests
bjorn3 Jan 17, 2025
4ce917d
Move std::time unit tests to integration tests
bjorn3 Jan 17, 2025
332fb7e
Move std::thread_local unit tests to integration tests
bjorn3 Jan 17, 2025
b8ae372
Move std::sync unit tests to integration tests
bjorn3 Jan 17, 2025
e76d0b8
Fix benchmarking of libstd
bjorn3 Jan 17, 2025
52907d7
Fix for SGX
bjorn3 Jan 23, 2025
05cbf03
Move env modifying tests to a separate integration test
bjorn3 Jan 23, 2025
a063cf5
fix(rustdoc): always use a channel when linking to doc.rust-lang.org
poliorcetics Dec 26, 2024
5efee2c
Enable more tests on Windows
saethlin Dec 26, 2024
88260f4
bootstrap: only build `crt{begin,end}.o` when compiling to MUSL
japaric Jan 21, 2025
acb3bab
bootstrap: add wrapper macros for `tracing`-gated tracing macros
jieyouxu Jan 31, 2025
cc7e3a6
Remove stabilized feature gate
bjorn3 Jan 23, 2025
5465770
Pretty print pattern type values with `transmute` if they don't satis…
oli-obk Jan 29, 2025
f62d1ed
Support raw-dylib link kind on ELF
Noratrieb Jan 18, 2025
7de67a1
Flatten the option check in `lower_pattern_range_endpoint`
Zalathar Feb 3, 2025
85f4cdc
Return range endpoint ascriptions/consts via a `&mut Vec`
Zalathar Feb 3, 2025
2fb1261
Simplify the pattern unpeeling in `lower_pattern_range_endpoint`
Zalathar Feb 3, 2025
d96a693
Rollup merge of #134777 - saethlin:enable-more-tests-on-windows, r=No…
matthiaskrgr Feb 3, 2025
e25f9fc
Rollup merge of #134807 - poliorcetics:ab/push-skpynvsmwkll, r=camelid
matthiaskrgr Feb 3, 2025
8db3ec0
Rollup merge of #135621 - bjorn3:move_tests_to_stdtests, r=Noratrieb
matthiaskrgr Feb 3, 2025
661773a
Rollup merge of #135695 - Noratrieb:elf-raw-dylib, r=bjorn3
matthiaskrgr Feb 3, 2025
15bfc9b
Rollup merge of #135836 - ferrocene:ja-gh135782-build-crt-only-for-mu…
matthiaskrgr Feb 3, 2025
498d568
Rollup merge of #136235 - oli-obk:transmuty-pat-tys, r=RalfJung
matthiaskrgr Feb 3, 2025
657fb22
Rollup merge of #136392 - jieyouxu:wrap-tracing, r=onur-ozkan
matthiaskrgr Feb 3, 2025
72bb960
Rollup merge of #136462 - Zalathar:endpoint, r=oli-obk
matthiaskrgr Feb 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move std::error unit tests to integration tests
  • Loading branch information
bjorn3 committed Jan 26, 2025
commit 03d44a641b61d4cad0cb025ffb1d6be7cd194ae7
3 changes: 0 additions & 3 deletions library/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 library/std/src/error/tests.rs → library/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