File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed
branches/beta/src/test/run-pass Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
29
29
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
30
30
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
31
31
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32
- refs/heads/beta: b85c4d16d52c7f0a3fec5d4ce4d686f0a70fa512
32
+ refs/heads/beta: c8bf5f5d9742ea94a8a024ff1d9776090718c61d
33
33
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
34
34
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35
35
refs/heads/tmp: 9de34a84bb300bab1bf0227f577331620cd60511
Original file line number Diff line number Diff line change 16
16
#![ deny( overflowing_literals) ]
17
17
18
18
pub fn main ( ) {
19
- assert_eq ! ( 0xffffffff , ( - 1 as u32 ) ) ;
20
- assert_eq ! ( 4294967295 , ( - 1 as u32 ) ) ;
21
- assert_eq ! ( 0xffffffffffffffff , ( - 1 as u64 ) ) ;
22
- assert_eq ! ( 18446744073709551615 , ( - 1 as u64 ) ) ;
19
+ assert_eq ! ( 0xffffffff , ( ! 0 as u32 ) ) ;
20
+ assert_eq ! ( 4294967295 , ( ! 0 as u32 ) ) ;
21
+ assert_eq ! ( 0xffffffffffffffff , ( ! 0 as u64 ) ) ;
22
+ assert_eq ! ( 18446744073709551615 , ( ! 0 as u64 ) ) ;
23
23
24
24
assert_eq ! ( ( -2147483648i32 ) . wrapping_sub( 1 ) , 2147483647 ) ;
25
25
}
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
+ #![ feature( negate_unsigned) ]
11
12
12
13
#[ cfg( any( target_arch = "x86" , target_arch = "arm" ) ) ]
13
14
fn target ( ) {
Original file line number Diff line number Diff line change 10
10
11
11
// pretty-expanded FIXME #23616
12
12
13
+ #![ feature( negate_unsigned) ]
13
14
#![ feature( intrinsics) ]
14
15
15
16
mod rusti {
Original file line number Diff line number Diff line change 10
10
11
11
// pretty-expanded FIXME #23616
12
12
13
- static X2 : u64 = - 1 as u16 as u64 ;
14
- static Y2 : u64 = - 1 as u32 as u64 ;
15
- const X : u64 = - 1 as u16 as u64 ;
16
- const Y : u64 = - 1 as u32 as u64 ;
13
+ static X2 : u64 = ! 0 as u16 as u64 ;
14
+ static Y2 : u64 = ! 0 as u32 as u64 ;
15
+ const X : u64 = ! 0 as u16 as u64 ;
16
+ const Y : u64 = ! 0 as u32 as u64 ;
17
17
18
18
fn main ( ) {
19
19
assert_eq ! ( match 1 {
You can’t perform that action at this time.
0 commit comments