Skip to content

Rollup of 17 pull requests #143916

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 54 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
136d24f
core: Add `BorrowedCursor::with_unfilled_buf`
a1phyr Jun 22, 2025
f1b5a56
wrapping shift: remove first bitmask and table
hkBst Jul 3, 2025
148a220
remote-test-client: Exit code `128 + <signal-number>` instead of `3`
Enselic Jul 4, 2025
7fc2127
bootstrap/miri: avoid rebuilds for test builds
RalfJung Jul 9, 2025
4c94798
random: Add comment on `RandomSource::fill_bytes` about multiple calls
joshtriplett Jul 9, 2025
ef5c209
tidy: clippy fixes
hkBst Jul 9, 2025
a4e994e
tidy: simplify fluent file extension checking
hkBst Jul 10, 2025
9bd4c90
tidy: move to edition 2024
hkBst Jul 10, 2025
6356faf
tidy: use flatten instead of manual flatten
hkBst Jul 10, 2025
8bf88a2
tidy: use write_all
hkBst Jul 10, 2025
cfb66e5
Consolidate infinity tests
rocurley Jul 10, 2025
c5e67b4
Consolidate test_num tests
rocurley Jul 10, 2025
c2e6b39
Consolidate neg_infinity tests
rocurley Jul 10, 2025
0c01322
Consolidate zero tests
rocurley Jul 10, 2025
fc01eed
Consolidate negative zero tests
rocurley Jul 10, 2025
868020e
Consolidate one tests
rocurley Jul 10, 2025
1b8904c
Consolidate is_nan
rocurley Jul 10, 2025
e3d8367
Consolidate is_infinite tests
rocurley Jul 10, 2025
7dd2811
Consolidate is_finite tests
rocurley Jul 10, 2025
d2c1900
Consolidate is_normal tests
rocurley Jul 10, 2025
79769f2
Consolidate classify tests
rocurley Jul 10, 2025
5e20385
random: Provide a `Distribution<T>` trait
joshtriplett Jul 9, 2025
900aa00
Update miri for change to random API
joshtriplett Jul 11, 2025
5d7db7e
Fixed a core crate compilation failure when enabling the `optimize_fo…
nazo6 Jul 12, 2025
b703451
refine comment
RalfJung Jul 12, 2025
86349e3
Port `#[omit_gdb_pretty_printer_section]` to the new attribute parsin…
JonathanBrouwer Jul 12, 2025
a5ab682
warn on align on fields to avoid breaking changes
jdonszelmann Jul 13, 2025
75561c4
Port `#[link_ordinal]` to the new attribute parsing infrastructure.
Periodic1911 Jun 29, 2025
377aa76
Attempt to fix up SGX for random API updates
joshtriplett Jul 13, 2025
a2d4139
Use zero for initialized Once state
orlp Jul 13, 2025
f041962
Add comment why we use zero for COMPLETE
orlp Jul 13, 2025
a3c90b6
Run bootstrap tests sooner in the `x test` pipeline
Kobzol Jul 13, 2025
25794b1
Compiletest: Simplify {Html,Json}DocCk directive handling
fmease Jul 12, 2025
98eadb3
Don't unnecessarily require `eh_personality`
ChrisDenton Jul 13, 2025
6b02597
update issue number for `const_trait_impl`
fee1-dead Jul 13, 2025
c2c9aad
Make sure that users don't take region obligations in a snapshot
compiler-errors Jul 13, 2025
f6f2f83
Simplify make_query_region_constraints
compiler-errors Jul 13, 2025
5feadc3
Rollup merge of #142885 - a1phyr:borrowed_cursor_to_buf, r=Mark-Simul…
jhpratt Jul 14, 2025
40f511f
Rollup merge of #143217 - Periodic1911:link-ordinal, r=jdonszelmann
jhpratt Jul 14, 2025
fffc52e
Rollup merge of #143355 - hkBst:cleanup-shift-double-bitmask, r=Mark-…
jhpratt Jul 14, 2025
7b668ec
Rollup merge of #143448 - Enselic:remote-test-client-signals, r=Mark-…
jhpratt Jul 14, 2025
89c7256
Rollup merge of #143681 - RalfJung:bootstrap-miri-rebuilds, r=Kobzol
jhpratt Jul 14, 2025
c230be7
Rollup merge of #143710 - joshtriplett:random-updates, r=joshtriplett
jhpratt Jul 14, 2025
1969d41
Rollup merge of #143724 - hkBst:tidy-cleanup, r=Mark-Simulacrum
jhpratt Jul 14, 2025
32e6850
Rollup merge of #143738 - rocurley:float_tests_refactor_2, r=tgross35
jhpratt Jul 14, 2025
3e990a2
Rollup merge of #143820 - nazo6:fix-optimize-for-size, r=Mark-Simulacrum
jhpratt Jul 14, 2025
ad34942
Rollup merge of #143850 - fmease:comptest-simp-docck-handling, r=jiey…
jhpratt Jul 14, 2025
1b4f3ad
Rollup merge of #143855 - JonathanBrouwer:omit_gdb_pretty_printer_sec…
jhpratt Jul 14, 2025
7f7f2d4
Rollup merge of #143868 - jdonszelmann:fix-align-on-fields, r=working…
jhpratt Jul 14, 2025
d446ddc
Rollup merge of #143875 - fee1-dead-contrib:push-zvqrmzrprpzt, r=comp…
jhpratt Jul 14, 2025
b56c69d
Rollup merge of #143881 - orlp:once-state-repr, r=tgross35
jhpratt Jul 14, 2025
943771b
Rollup merge of #143887 - Kobzol:reroder-bootstrap-tests, r=jieyouxu
jhpratt Jul 14, 2025
ff20a84
Rollup merge of #143893 - ChrisDenton:eh_personality_optional, r=comp…
jhpratt Jul 14, 2025
5b8ac1b
Rollup merge of #143901 - compiler-errors:region-constraint-nits, r=lcnr
jhpratt Jul 14, 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
Consolidate neg_infinity tests
  • Loading branch information
rocurley committed Jul 11, 2025
commit c2e6b39474beacf2be7313326f0a06e3d7f85f04
12 changes: 0 additions & 12 deletions library/coretests/tests/floats/f128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ const NAN_MASK2: u128 = 0x00005555555555555555555555555555;
// FIXME(f16_f128,miri): many of these have to be disabled since miri does not yet support
// the intrinsics.

#[test]
fn test_neg_infinity() {
let neg_inf: f128 = f128::NEG_INFINITY;
assert!(neg_inf.is_infinite());
assert!(!neg_inf.is_finite());
assert!(!neg_inf.is_sign_positive());
assert!(neg_inf.is_sign_negative());
assert!(!neg_inf.is_nan());
assert!(!neg_inf.is_normal());
assert_eq!(Fp::Infinite, neg_inf.classify());
}

#[test]
fn test_zero() {
let zero: f128 = 0.0f128;
Expand Down
12 changes: 0 additions & 12 deletions library/coretests/tests/floats/f16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,6 @@ const NAN_MASK2: u16 = 0x0155;
// FIXME(f16_f128,miri): many of these have to be disabled since miri does not yet support
// the intrinsics.

#[test]
fn test_neg_infinity() {
let neg_inf: f16 = f16::NEG_INFINITY;
assert!(neg_inf.is_infinite());
assert!(!neg_inf.is_finite());
assert!(!neg_inf.is_sign_positive());
assert!(neg_inf.is_sign_negative());
assert!(!neg_inf.is_nan());
assert!(!neg_inf.is_normal());
assert_eq!(Fp::Infinite, neg_inf.classify());
}

#[test]
fn test_zero() {
let zero: f16 = 0.0f16;
Expand Down
12 changes: 0 additions & 12 deletions library/coretests/tests/floats/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@ const NAN_MASK2: u32 = 0x0055_5555;
/// They serve as a way to get an idea of the real precision of floating point operations on different platforms.
const APPROX_DELTA: f32 = if cfg!(miri) { 1e-4 } else { 1e-6 };

#[test]
fn test_neg_infinity() {
let neg_inf: f32 = f32::NEG_INFINITY;
assert!(neg_inf.is_infinite());
assert!(!neg_inf.is_finite());
assert!(!neg_inf.is_sign_positive());
assert!(neg_inf.is_sign_negative());
assert!(!neg_inf.is_nan());
assert!(!neg_inf.is_normal());
assert_eq!(Fp::Infinite, neg_inf.classify());
}

#[test]
fn test_zero() {
let zero: f32 = 0.0f32;
Expand Down
12 changes: 0 additions & 12 deletions library/coretests/tests/floats/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ const NAN_MASK1: u64 = 0x000a_aaaa_aaaa_aaaa;
/// Second pattern over the mantissa
const NAN_MASK2: u64 = 0x0005_5555_5555_5555;

#[test]
fn test_neg_infinity() {
let neg_inf: f64 = f64::NEG_INFINITY;
assert!(neg_inf.is_infinite());
assert!(!neg_inf.is_finite());
assert!(!neg_inf.is_sign_positive());
assert!(neg_inf.is_sign_negative());
assert!(!neg_inf.is_nan());
assert!(!neg_inf.is_normal());
assert_eq!(Fp::Infinite, neg_inf.classify());
}

#[test]
fn test_zero() {
let zero: f64 = 0.0f64;
Expand Down
18 changes: 18 additions & 0 deletions library/coretests/tests/floats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,24 @@ float_test! {
}
}

float_test! {
name: neg_infinity,
attrs: {
f16: #[cfg(any(miri, target_has_reliable_f16))],
f128: #[cfg(any(miri, target_has_reliable_f128))],
},
test<Float> {
let neg_inf: Float = Float::NEG_INFINITY;
assert!(neg_inf.is_infinite());
assert!(!neg_inf.is_finite());
assert!(!neg_inf.is_sign_positive());
assert!(neg_inf.is_sign_negative());
assert!(!neg_inf.is_nan());
assert!(!neg_inf.is_normal());
assert!(matches!(neg_inf.classify(), Fp::Infinite));
}
}

float_test! {
name: min,
attrs: {
Expand Down