@@ -364,9 +364,6 @@ fn test_apple(target: &str) {
364
364
// FIXME: "'__uint128' undeclared" in C
365
365
"__uint128" => true ,
366
366
367
- // `c_char_def` is always public but not always reexported.
368
- "c_char_def" => true ,
369
-
370
367
_ => false ,
371
368
}
372
369
} ) ;
@@ -647,11 +644,6 @@ fn test_openbsd(target: &str) {
647
644
}
648
645
} ) ;
649
646
650
- cfg. skip_type ( move |ty| {
651
- // `c_char_def` is always public but not always reexported.
652
- ty == "c_char_def"
653
- } ) ;
654
-
655
647
cfg. type_name ( move |ty, is_struct, is_union| {
656
648
match ty {
657
649
// Just pass all these through, no need for a "struct" prefix
@@ -766,8 +758,6 @@ fn test_windows(target: &str) {
766
758
"ssize_t" if !gnu => true ,
767
759
// FIXME: The size and alignment of this type are incorrect
768
760
"time_t" if gnu && i686 => true ,
769
- // `c_char_def` is always public but not always reexported.
770
- "c_char_def" => true ,
771
761
_ => false ,
772
762
} ) ;
773
763
@@ -985,8 +975,6 @@ fn test_solarish(target: &str) {
985
975
986
976
cfg. skip_type ( move |ty| match ty {
987
977
"sighandler_t" => true ,
988
- // `c_char_def` is always public but not always reexported.
989
- "c_char_def" => true ,
990
978
_ => false ,
991
979
} ) ;
992
980
@@ -1290,8 +1278,6 @@ fn test_netbsd(target: &str) {
1290
1278
match ty {
1291
1279
// FIXME: sighandler_t is crazy across platforms
1292
1280
"sighandler_t" => true ,
1293
- // `c_char_def` is always public but not always reexported.
1294
- "c_char_def" => true ,
1295
1281
_ => false ,
1296
1282
}
1297
1283
} ) ;
@@ -1511,8 +1497,6 @@ fn test_dragonflybsd(target: &str) {
1511
1497
match ty {
1512
1498
// sighandler_t is crazy across platforms
1513
1499
"sighandler_t" => true ,
1514
- // `c_char_def` is always public but not always reexported.
1515
- "c_char_def" => true ,
1516
1500
_ => false ,
1517
1501
}
1518
1502
} ) ;
@@ -1674,8 +1658,6 @@ fn test_wasi(target: &str) {
1674
1658
}
1675
1659
} ) ;
1676
1660
1677
- cfg. skip_type ( |ty| ty == "c_char_def" ) ;
1678
-
1679
1661
// These have a different and internal type in header files and are only
1680
1662
// used here to generate a pointer to them in bindings so skip these tests.
1681
1663
cfg. skip_static ( |c| c. starts_with ( "_CLOCK_" ) ) ;
@@ -1924,9 +1906,6 @@ fn test_android(target: &str) {
1924
1906
// FIXME: "'__uint128' undeclared" in C
1925
1907
"__uint128" => true ,
1926
1908
1927
- // `c_char_def` is always public but not always reexported.
1928
- "c_char_def" => true ,
1929
-
1930
1909
_ => false ,
1931
1910
}
1932
1911
} ) ;
@@ -2689,9 +2668,6 @@ fn test_freebsd(target: &str) {
2689
2668
// `eventfd(2)` and things come with it are added in FreeBSD 13
2690
2669
"eventfd_t" if Some ( 13 ) > freebsd_ver => true ,
2691
2670
2692
- // `c_char_def` is always public but not always reexported.
2693
- "c_char_def" => true ,
2694
-
2695
2671
_ => false ,
2696
2672
}
2697
2673
} ) ;
@@ -3012,9 +2988,6 @@ fn test_emscripten(target: &str) {
3012
2988
// https://github.com/emscripten-core/emscripten/issues/5033
3013
2989
ty if ty. starts_with ( "epoll" ) => true ,
3014
2990
3015
- // `c_char_def` is always public but not always reexported.
3016
- "c_char_def" => true ,
3017
-
3018
2991
// LFS64 types have been removed in Emscripten 3.1.44
3019
2992
// https://github.com/emscripten-core/emscripten/pull/19812
3020
2993
t => t. ends_with ( "64" ) || t. ends_with ( "64_t" ) ,
@@ -3286,9 +3259,6 @@ fn test_neutrino(target: &str) {
3286
3259
// Does not exist in Neutrino
3287
3260
"locale_t" => true ,
3288
3261
3289
- // `c_char_def` is always public but not always reexported.
3290
- "c_char_def" => true ,
3291
-
3292
3262
_ => false ,
3293
3263
}
3294
3264
} ) ;
@@ -3455,8 +3425,6 @@ fn test_vxworks(target: &str) {
3455
3425
// FIXME
3456
3426
cfg. skip_type ( move |ty| match ty {
3457
3427
"stat64" | "sighandler_t" | "off64_t" => true ,
3458
- // `c_char_def` is always public but not always reexported.
3459
- "c_char_def" => true ,
3460
3428
_ => false ,
3461
3429
} ) ;
3462
3430
@@ -3804,9 +3772,6 @@ fn test_linux(target: &str) {
3804
3772
// FIXME: "'__uint128' undeclared" in C
3805
3773
"__uint128" => true ,
3806
3774
3807
- // `c_char_def` is always public but not always reexported.
3808
- "c_char_def" => true ,
3809
-
3810
3775
t => {
3811
3776
if musl {
3812
3777
// LFS64 types have been removed in musl 1.2.4+
@@ -4036,7 +4001,7 @@ fn test_linux(target: &str) {
4036
4001
}
4037
4002
// FIXME: Requires >= 5.4 kernel headers
4038
4003
if name == "PTP_CLOCK_GETCAPS2"
4039
- || name == "PTP_ENABLE_PPS2"
4004
+ || name == "PTP_ENABLE_PPS2"
4040
4005
|| name == "PTP_EXTTS_REQUEST2"
4041
4006
|| name == "PTP_PEROUT_REQUEST2"
4042
4007
|| name == "PTP_PIN_GETFUNC2"
@@ -4759,8 +4724,6 @@ fn test_linux_like_apis(target: &str) {
4759
4724
} )
4760
4725
. skip_type ( move |ty| match ty {
4761
4726
"Elf64_Phdr" | "Elf32_Phdr" => false ,
4762
- // `c_char_def` is always public but not always reexported.
4763
- "c_char_def" => true ,
4764
4727
_ => true ,
4765
4728
} ) ;
4766
4729
cfg. generate ( src_hotfix_dir ( ) . join ( "lib.rs" ) , "linux_elf.rs" ) ;
@@ -4996,8 +4959,6 @@ fn test_haiku(target: &str) {
4996
4959
"pthread_condattr_t" => true ,
4997
4960
"pthread_mutexattr_t" => true ,
4998
4961
"pthread_rwlockattr_t" => true ,
4999
- // `c_char_def` is always public but not always reexported.
5000
- "c_char_def" => true ,
5001
4962
_ => false ,
5002
4963
}
5003
4964
} ) ;
0 commit comments