From e66bf08f93de71125765d0e7e1a5f5d1550406ea Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Fri, 28 Feb 2025 16:10:38 +0200 Subject: [PATCH 1/2] sort list --- .../ui/attributes/auxiliary/used_pre_main_constructor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs b/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs index 686dcb277f89e..192594d2d1049 100644 --- a/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs +++ b/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs @@ -10,14 +10,14 @@ #[cfg_attr( any( - target_os = "linux", target_os = "android", + target_os = "dragonfly", target_os = "freebsd", + target_os = "haiku", + target_os = "illumos", + target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_os = "dragonfly", - target_os = "illumos", - target_os = "haiku" ), link_section = ".init_array" )] From f8091c49ffc2bccce89972b0b4058b92a62ee260 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Fri, 28 Feb 2025 16:10:14 +0200 Subject: [PATCH 2/2] qnx: avoid test failure Fixes tests/ui/attributes/used_with_archive.rs fail --- tests/ui/attributes/auxiliary/used_pre_main_constructor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs b/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs index 192594d2d1049..d94572ef5d6cd 100644 --- a/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs +++ b/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs @@ -17,6 +17,7 @@ target_os = "illumos", target_os = "linux", target_os = "netbsd", + target_os = "nto", target_os = "openbsd", ), link_section = ".init_array"