checked_ilog2 test fails with imprecise float intrinsics #137591
Labels
A-floating-point
Area: Floating point numbers and arithmetic
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-bug
Category: This is a bug.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Miri made its floatig-point intrinsics imprecise to reflect that we don't guarantee an exact result, and now we are seeing test failures when bumping the Miri subtree:
The failure occurs here:
rust/library/coretests/tests/num/int_log.rs
Line 50 in b6a3841
log2
here is the float operation. We even document:So I think the test is bogus?
Cc @saethlin @tgross35
Note that this is somewhat urgent as it blocks updating Miri's subtree.
The text was updated successfully, but these errors were encountered: