@@ -409,15 +409,9 @@ mod imp {
409409
410410 unsafe {
411411 // this way someone on any unix-y OS can check that all these compile
412- if cfg ! ( all(
413- target_os = "linux" ,
414- not( any( target_env = "musl" , target_env = "pauthtest" ) )
415- ) ) {
412+ if cfg ! ( all( target_os = "linux" , not( target_env = "musl" ) ) ) {
416413 install_main_guard_linux ( page_size)
417- } else if cfg ! ( all(
418- target_os = "linux" ,
419- any( target_env = "musl" , target_env = "pauthtest" )
420- ) ) {
414+ } else if cfg ! ( all( target_os = "linux" , target_env = "musl" ) ) {
421415 install_main_guard_linux_musl ( page_size)
422416 } else if cfg ! ( target_os = "freebsd" ) {
423417 #[ cfg( not( target_os = "freebsd" ) ) ]
@@ -594,10 +588,7 @@ mod imp {
594588 let mut guardsize = 0 ;
595589 assert_eq ! ( libc:: pthread_attr_getguardsize( attr. as_ptr( ) , & mut guardsize) , 0 ) ;
596590 if guardsize == 0 {
597- if cfg ! ( all(
598- target_os = "linux" ,
599- any( target_env = "musl" , target_env = "pauthtest" )
600- ) ) {
591+ if cfg ! ( all( target_os = "linux" , target_env = "musl" ) ) {
601592 // musl versions before 1.1.19 always reported guard
602593 // size obtained from pthread_attr_get_np as zero.
603594 // Use page size as a fallback.
@@ -613,10 +604,7 @@ mod imp {
613604 let stackaddr = stackptr. addr ( ) ;
614605 ret = if cfg ! ( any( target_os = "freebsd" , target_os = "netbsd" , target_os = "hurd" ) ) {
615606 Some ( stackaddr - guardsize..stackaddr)
616- } else if cfg ! ( all(
617- target_os = "linux" ,
618- any( target_env = "musl" , target_env = "pauthtest" )
619- ) ) {
607+ } else if cfg ! ( all( target_os = "linux" , target_env = "musl" ) ) {
620608 Some ( stackaddr - guardsize..stackaddr)
621609 } else if cfg ! ( all( target_os = "linux" , any( target_env = "gnu" , target_env = "uclibc" ) ) )
622610 {
0 commit comments