7
7
8
8
fn main ( ) {
9
9
let a = 413 ;
10
- #[ cfg( unset ) ]
10
+ #[ cfg( FALSE ) ]
11
11
let a = ( ) ;
12
12
assert_eq ! ( a, 413 ) ;
13
13
14
14
let mut b = 612 ;
15
- #[ cfg( unset ) ]
15
+ #[ cfg( FALSE ) ]
16
16
{
17
17
b = 1111 ;
18
18
}
19
19
assert_eq ! ( b, 612 ) ;
20
20
21
- #[ cfg( unset ) ]
21
+ #[ cfg( FALSE ) ]
22
22
undefined_fn ( ) ;
23
23
24
- #[ cfg( unset ) ]
24
+ #[ cfg( FALSE ) ]
25
25
undefined_macro ! ( ) ;
26
- #[ cfg( unset ) ]
26
+ #[ cfg( FALSE ) ]
27
27
undefined_macro ! [ ] ;
28
- #[ cfg( unset ) ]
28
+ #[ cfg( FALSE ) ]
29
29
undefined_macro ! { } ;
30
30
31
31
// pretty printer bug...
32
- // #[cfg(unset )]
32
+ // #[cfg(FALSE )]
33
33
// undefined_macro!{}
34
34
35
- let ( ) = ( #[ cfg( unset ) ] 341 , ) ; // Should this also work on parens?
36
- let t = ( 1 , #[ cfg( unset ) ] 3 , 4 ) ;
35
+ let ( ) = ( #[ cfg( FALSE ) ] 341 , ) ; // Should this also work on parens?
36
+ let t = ( 1 , #[ cfg( FALSE ) ] 3 , 4 ) ;
37
37
assert_eq ! ( t, ( 1 , 4 ) ) ;
38
38
39
39
let f = |_: u32 , _: u32 | ( ) ;
40
- f ( 2 , 1 , #[ cfg( unset ) ] 6 ) ;
40
+ f ( 2 , 1 , #[ cfg( FALSE ) ] 6 ) ;
41
41
42
- let _: u32 = a. clone ( #[ cfg( unset ) ] undefined) ;
42
+ let _: u32 = a. clone ( #[ cfg( FALSE ) ] undefined) ;
43
43
44
- let _: [ ( ) ; 0 ] = [ #[ cfg( unset ) ] 126 ] ;
45
- let t = [ #[ cfg( unset ) ] 1 , 2 , 6 ] ;
44
+ let _: [ ( ) ; 0 ] = [ #[ cfg( FALSE ) ] 126 ] ;
45
+ let t = [ #[ cfg( FALSE ) ] 1 , 2 , 6 ] ;
46
46
assert_eq ! ( t, [ 2 , 6 ] ) ;
47
47
48
48
{
49
49
let r;
50
- #[ cfg( unset ) ]
50
+ #[ cfg( FALSE ) ]
51
51
( r = 5 ) ;
52
- #[ cfg( not( unset ) ) ]
52
+ #[ cfg( not( FALSE ) ) ]
53
53
( r = 10 ) ;
54
54
assert_eq ! ( r, 10 ) ;
55
55
}
@@ -69,13 +69,13 @@ fn main() {
69
69
}
70
70
}
71
71
72
- let n = if_cfg ! ( unset ? {
72
+ let n = if_cfg ! ( FALSE ? {
73
73
413
74
74
} else {
75
75
612
76
76
} ) ;
77
77
78
- assert_eq ! ( ( #[ cfg( unset ) ] 1 , #[ cfg( not( unset ) ) ] 2 ) , ( 2 , ) ) ;
78
+ assert_eq ! ( ( #[ cfg( FALSE ) ] 1 , #[ cfg( not( FALSE ) ) ] 2 ) , ( 2 , ) ) ;
79
79
assert_eq ! ( n, 612 ) ;
80
80
81
81
// check that lints work
0 commit comments