Skip to content

Commit

Permalink
disable a potentially bogus test on Miri
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Feb 25, 2025
1 parent cfb8278 commit 5e4c582
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/coretests/tests/num/int_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ fn checked_ilog() {
}

#[test]
#[cfg_attr(miri, ignore)] // FIXME test is broken on Miri: https://github.com/rust-lang/rust/issues/137591
fn checked_ilog2() {
assert_eq!(5u32.checked_ilog2(), Some(2));
assert_eq!(0u64.checked_ilog2(), None);
Expand Down

0 comments on commit 5e4c582

Please sign in to comment.