Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fc9a14d
cleanup promoteds move check
lcnr Dec 18, 2024
67f4901
add tidy warning for unrecognized directives
cod10129 Jan 15, 2025
865a09d
remove unnecessary assertion for reference error
chenyukang Jan 17, 2025
5b46a07
Move std::env unit tests to integration tests
bjorn3 Jan 17, 2025
ce2f242
Move std::error unit tests to integration tests
bjorn3 Jan 17, 2025
5d07ee8
ci: improve github action name
marcoieni Jan 17, 2025
21c0d95
Move std float unit tests to integration tests
bjorn3 Jan 17, 2025
a89675d
Move std::num unit tests to integration tests
bjorn3 Jan 17, 2025
fc152a0
Move std::panic unit tests to integration tests
bjorn3 Jan 17, 2025
4d5b0ec
Move std::path unit tests to integration tests
bjorn3 Jan 17, 2025
9b142dd
Move std::time unit tests to integration tests
bjorn3 Jan 17, 2025
c4289e4
Move std::thread_local unit tests to integration tests
bjorn3 Jan 17, 2025
f301e4d
Move std::sync unit tests to integration tests
bjorn3 Jan 17, 2025
d48be0d
Fix benchmarking of libstd
bjorn3 Jan 17, 2025
00844be
new solver: prefer trivial builtin impls over where-clauses
lqd Jan 17, 2025
d58540d
add src/librustdoc and src/rustdoc-json-types to RUSTC_IF_UNCHANGED_A…
lolbinarycat Jan 17, 2025
39274b6
Rollup merge of #134455 - lcnr:move-errors-in-promoteds, r=compiler-e…
matthiaskrgr Jan 17, 2025
f9c3b8c
Rollup merge of #135421 - cod10129:warn-tidy-ignore, r=onur-ozkan
matthiaskrgr Jan 17, 2025
8ef152e
Rollup merge of #135611 - chenyukang:yukang-fix-135341-ice-crash, r=o…
matthiaskrgr Jan 17, 2025
150c2c0
Rollup merge of #135620 - marcoieni:edit-ghcr-action-name, r=Kobzol
matthiaskrgr Jan 17, 2025
84534e8
Rollup merge of #135621 - bjorn3:move_tests_to_stdtests, r=Noratrieb
matthiaskrgr Jan 17, 2025
03fb232
Rollup merge of #135639 - lqd:trivial-builtin-impls, r=lcnr
matthiaskrgr Jan 17, 2025
10239b1
Rollup merge of #135654 - lolbinarycat:bootstrap-135650, r=onur-ozkan
matthiaskrgr Jan 17, 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::num unit tests to integration tests
  • Loading branch information
bjorn3 committed Jan 17, 2025
commit a89675d879092c7f575bfc8ad151980547bc7f52
3 changes: 0 additions & 3 deletions library/std/src/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#![stable(feature = "rust1", since = "1.0.0")]
#![allow(missing_docs)]

#[cfg(test)]
mod tests;

#[stable(feature = "int_error_matching", since = "1.55.0")]
pub use core::num::IntErrorKind;
#[stable(feature = "generic_nonzero", since = "1.79.0")]
Expand Down
6 changes: 3 additions & 3 deletions library/std/src/num/tests.rs → library/std/tests/num.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::ops::Mul;
use std::ops::Mul;

#[test]
fn test_saturating_add_uint() {
Expand Down Expand Up @@ -190,8 +190,8 @@ fn test_uint_to_str_overflow() {
assert_eq!(u64_val.to_string(), "0");
}

fn from_str<T: crate::str::FromStr>(t: &str) -> Option<T> {
crate::str::FromStr::from_str(t).ok()
fn from_str<T: std::str::FromStr>(t: &str) -> Option<T> {
std::str::FromStr::from_str(t).ok()
}

#[test]
Expand Down