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

Skip to content

Commit af3aa36

Browse files
authored
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
1 parent 7fdefb8 commit af3aa36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/alloc/src/slice/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ fn panic_safe() {
240240

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

0 commit comments

Comments
 (0)