File tree 13 files changed +24
-13
lines changed
13 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -258,8 +258,10 @@ cfg_if! {
258
258
if #[ cfg( windows) ] {
259
259
mod windows;
260
260
pub use windows:: * ;
261
- } else {
261
+ } else if # [ cfg ( unix ) ] {
262
262
mod unix;
263
263
pub use unix:: * ;
264
+ } else {
265
+ // Unknown target_family
264
266
}
265
267
}
Original file line number Diff line number Diff line change @@ -946,6 +946,6 @@ cfg_if! {
946
946
mod b64;
947
947
pub use self :: b64:: * ;
948
948
} else {
949
- // unknown arch...
949
+ // Unknown target_arch
950
950
}
951
951
}
Original file line number Diff line number Diff line change @@ -89,6 +89,6 @@ cfg_if! {
89
89
mod x86_64;
90
90
pub use self :: x86_64:: * ;
91
91
} else {
92
- // ...
92
+ // Unknown target_arch
93
93
}
94
94
}
Original file line number Diff line number Diff line change @@ -350,6 +350,6 @@ cfg_if! {
350
350
mod freebsdlike;
351
351
pub use self :: freebsdlike:: * ;
352
352
} else {
353
- // ...
353
+ // Unknown target_os
354
354
}
355
355
}
Original file line number Diff line number Diff line change @@ -402,8 +402,10 @@ cfg_if! {
402
402
} else if #[ cfg( target_os = "netbsd" ) ] {
403
403
mod netbsd;
404
404
pub use self :: netbsd:: * ;
405
- } else {
405
+ } else if # [ cfg ( target_os = "openbsd" ) ] {
406
406
mod openbsd;
407
407
pub use self :: openbsd:: * ;
408
+ } else {
409
+ // Unknown target_os
408
410
}
409
411
}
Original file line number Diff line number Diff line change @@ -733,6 +733,6 @@ cfg_if! {
733
733
mod solaris;
734
734
pub use self :: solaris:: * ;
735
735
} else {
736
- // ...
736
+ // Unknown target_os
737
737
}
738
738
}
Original file line number Diff line number Diff line change @@ -657,6 +657,6 @@ cfg_if! {
657
657
mod b64;
658
658
pub use self :: b64:: * ;
659
659
} else {
660
- // ...
660
+ // Unknown target_pointer_width
661
661
}
662
662
}
Original file line number Diff line number Diff line change @@ -38,5 +38,7 @@ cfg_if! {
38
38
} else if #[ cfg( any( target_arch = "asmjs" ) ) ] {
39
39
mod asmjs;
40
40
pub use self :: asmjs:: * ;
41
- } else { }
41
+ } else {
42
+ // Unknown target_arch
43
+ }
42
44
}
Original file line number Diff line number Diff line change @@ -90,6 +90,6 @@ cfg_if! {
90
90
mod powerpc;
91
91
pub use self :: powerpc:: * ;
92
92
} else {
93
- // ...
93
+ // Unknown target_arch
94
94
}
95
95
}
Original file line number Diff line number Diff line change @@ -25,8 +25,10 @@ cfg_if! {
25
25
} else if #[ cfg( any( target_arch = "powerpc64" ) ) ] {
26
26
mod powerpc64;
27
27
pub use self :: powerpc64:: * ;
28
- } else {
28
+ } else if # [ cfg ( any ( target_arch = "x86_64" ) ) ] {
29
29
mod x86_64;
30
30
pub use self :: x86_64:: * ;
31
+ } else {
32
+ // Unknown target_arch
31
33
}
32
34
}
Original file line number Diff line number Diff line change @@ -491,6 +491,6 @@ cfg_if! {
491
491
mod b64;
492
492
pub use self :: b64:: * ;
493
493
} else {
494
- // ...
494
+ // Unknown target_arch
495
495
}
496
496
}
Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ cfg_if! {
133
133
} else if #[ cfg( target_pointer_width = "64" ) ] {
134
134
const ULONG_SIZE : usize = 64 ;
135
135
} else {
136
+ // Unknown target_pointer_width
136
137
}
137
138
}
138
139
@@ -680,6 +681,6 @@ cfg_if! {
680
681
mod android;
681
682
pub use self :: android:: * ;
682
683
} else {
683
- // ...
684
+ // Unknown target_os
684
685
}
685
686
}
Original file line number Diff line number Diff line change @@ -72,9 +72,11 @@ cfg_if! {
72
72
if #[ cfg( all( target_env = "gnu" ) ) ] {
73
73
pub const L_tmpnam : :: c_uint = 14 ;
74
74
pub const TMP_MAX : :: c_uint = 0x7fff ;
75
- } else {
75
+ } else if # [ cfg ( all ( target_env = "msvc" ) ) ] {
76
76
pub const L_tmpnam : :: c_uint = 260 ;
77
77
pub const TMP_MAX : :: c_uint = 0x7fff_ffff ;
78
+ } else {
79
+ // Unknown target_env
78
80
}
79
81
}
80
82
You can’t perform that action at this time.
0 commit comments