File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ fn main() {
7
7
rustc_minor_nightly ( ) . expect ( "Failed to get rustc version" ) ;
8
8
let rustc_dep_of_std = env:: var ( "CARGO_FEATURE_RUSTC_DEP_OF_STD" ) . is_ok ( ) ;
9
9
let align_cargo_feature = env:: var ( "CARGO_FEATURE_ALIGN" ) . is_ok ( ) ;
10
- let const_extern_fn_cargo_feature = env:: var ( "CARGO_FEATURE_CONST_EXTERN_FN" ) . is_ok ( ) ;
10
+ let const_extern_fn_cargo_feature =
11
+ env:: var ( "CARGO_FEATURE_CONST_EXTERN_FN" ) . is_ok ( ) ;
11
12
let libc_ci = env:: var ( "LIBC_CI" ) . is_ok ( ) ;
12
13
13
14
if env:: var ( "CARGO_FEATURE_USE_STD" ) . is_ok ( ) {
@@ -103,7 +104,8 @@ fn rustc_minor_nightly() -> Option<(u32, bool)> {
103
104
104
105
let minor = pieces. next ( ) ;
105
106
let nightly_raw = otry ! ( otry!( pieces. next( ) ) . split( '-' ) . nth( 1 ) ) ;
106
- let nightly = nightly_raw. starts_with ( "dev" ) || nightly_raw. starts_with ( "nightly" ) ;
107
+ let nightly =
108
+ nightly_raw. starts_with ( "dev" ) || nightly_raw. starts_with ( "nightly" ) ;
107
109
let minor = otry ! ( otry!( minor) . parse( ) . ok( ) ) ;
108
110
109
111
Some ( ( minor, nightly) )
Original file line number Diff line number Diff line change 1
1
#![ cfg( libc_const_extern_fn) ] // If this does not hold, the file is empty
2
2
3
3
#[ cfg( target_os = "linux" ) ]
4
- const _FOO: libc:: c_uint = unsafe { libc:: CMSG_SPACE ( 1 ) } ;
4
+ const _FOO: libc:: c_uint = unsafe { libc:: CMSG_SPACE ( 1 ) } ;
5
5
//^ if CMSG_SPACE is not const, this will fail to compile
You can’t perform that action at this time.
0 commit comments