Rollup merge of #127554 - ferrocene:tshepang-add-missing-attribute, 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
This commit is contained in:
Matthias Krüger 2024-07-10 17:54:26 +02:00 committed by GitHub
commit aae262cafa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();