File tree Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 277
277
#![ feature( allow_internal_unstable) ]
278
278
#![ feature( asm_experimental_arch) ]
279
279
#![ feature( autodiff) ]
280
- #![ feature( cfg_match) ]
281
280
#![ feature( cfg_sanitizer_cfi) ]
282
281
#![ feature( cfg_target_thread_local) ]
283
282
#![ feature( cfi_encoding) ]
Original file line number Diff line number Diff line change 1
- cfg_match ! {
2
- any(
3
- target_os = "linux" ,
4
- target_os = "android" ,
5
- target_os = "dragonfly" ,
6
- target_os = "freebsd" ,
7
- target_os = "openbsd" ,
8
- target_os = "netbsd" ,
9
- target_os = "solaris" ,
10
- target_os = "illumos" ,
11
- target_os = "haiku" ,
12
- target_os = "nto" ,
13
- target_os = "cygwin"
14
- ) => {
1
+ cfg_if:: cfg_if! {
2
+ if #[ cfg( any(
3
+ target_os = "linux" , target_os = "android" ,
4
+ target_os = "hurd" ,
5
+ target_os = "dragonfly" , target_os = "freebsd" ,
6
+ target_os = "openbsd" , target_os = "netbsd" ,
7
+ target_os = "solaris" , target_os = "illumos" ,
8
+ target_os = "haiku" , target_os = "nto" ,
9
+ target_os = "cygwin" ) ) ] {
15
10
use libc:: MSG_NOSIGNAL ;
16
- }
17
- _ => {
11
+ } else {
18
12
const MSG_NOSIGNAL : core:: ffi:: c_int = 0x0 ;
19
13
}
20
14
}
You can’t perform that action at this time.
0 commit comments