File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed
branches/tmp/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 @@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32
32
refs/heads/beta: 9854143cba679834bc4ef932858cd5303f015a0e
33
33
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
34
34
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35
- refs/heads/tmp: b85c4d16d52c7f0a3fec5d4ce4d686f0a70fa512
35
+ refs/heads/tmp: c8bf5f5d9742ea94a8a024ff1d9776090718c61d
36
36
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
37
37
refs/tags/homu-tmp: 53a183f0274316596bf9405944d4f0468d8c93e4
38
38
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412
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