Skip to content

Commit

Permalink
Rollup merge of rust-lang#127554 - ferrocene:tshepang-add-missing-att…
Browse files Browse the repository at this point in the history
…ribute, r=pietroalbini

 do not run test where it cannot run

This was seen on Ferrocene, where we have a custom test target that does not have unwind support
  • Loading branch information
matthiaskrgr authored Jul 10, 2024
2 parents 4552576 + 7d20047 commit a18fbd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions alloc/src/slice/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ fn panic_safe() {

#[test]
#[cfg_attr(miri, ignore)] // Miri is too slow
#[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")]
fn test_sort() {
let mut rng = test_rng();

Expand Down

0 comments on commit a18fbd0

Please sign in to comment.