File tree Expand file tree Collapse file tree 5 files changed +17
-24
lines changed Expand file tree Collapse file tree 5 files changed +17
-24
lines changed Original file line number Diff line number Diff line change 1+ #![ cfg_attr( bootstrap, feature( trait_upcasting) ) ]
12#![ feature( rustc_private) ]
23#![ feature( cell_update) ]
34#![ feature( float_gamma) ]
910#![ feature( yeet_expr) ]
1011#![ feature( nonzero_ops) ]
1112#![ feature( let_chains) ]
12- #![ feature( trait_upcasting) ]
1313#![ feature( strict_overflow_ops) ]
1414#![ feature( pointer_is_aligned_to) ]
1515#![ feature( unqualified_local_imports) ]
Original file line number Diff line number Diff line change 11// Validation stops this too early.
22//@compile-flags: -Zmiri-disable-validation
33
4- #![ feature( trait_upcasting) ]
5- #![ allow( incomplete_features) ]
6-
74trait Foo : PartialEq < i32 > + std:: fmt:: Debug + Send + Sync {
85 #[ allow( dead_code) ]
96 fn a ( & self ) -> i32 {
Original file line number Diff line number Diff line change 22
33fn test_nil ( ) {
44 assert_eq ! ( ( ) , ( ) ) ;
5- assert ! ( ( !( ( ) != ( ) ) ) ) ;
6- assert ! ( ( !( ( ) < ( ) ) ) ) ;
7- assert ! ( ( ( ) <= ( ) ) ) ;
8- assert ! ( ( !( ( ) > ( ) ) ) ) ;
9- assert ! ( ( ( ) >= ( ) ) ) ;
5+ assert ! ( !( ( ) != ( ) ) ) ;
6+ assert ! ( !( ( ) < ( ) ) ) ;
7+ assert ! ( ( ) <= ( ) ) ;
8+ assert ! ( !( ( ) > ( ) ) ) ;
9+ assert ! ( ( ) >= ( ) ) ;
1010}
1111
1212fn test_bool ( ) {
13- assert ! ( ( !( true < false ) ) ) ;
14- assert ! ( ( !( true <= false ) ) ) ;
15- assert ! ( ( true > false ) ) ;
16- assert ! ( ( true >= false ) ) ;
13+ assert ! ( !( true < false ) ) ;
14+ assert ! ( !( true <= false ) ) ;
15+ assert ! ( true > false ) ;
16+ assert ! ( true >= false ) ;
1717
18- assert ! ( ( false < true ) ) ;
19- assert ! ( ( false <= true ) ) ;
20- assert ! ( ( !( false > true ) ) ) ;
21- assert ! ( ( !( false >= true ) ) ) ;
18+ assert ! ( false < true ) ;
19+ assert ! ( false <= true ) ;
20+ assert ! ( !( false > true ) ) ;
21+ assert ! ( !( false >= true ) ) ;
2222
2323 // Bools support bitwise binops
2424 assert_eq ! ( false & false , false ) ;
@@ -65,9 +65,9 @@ fn test_class() {
6565
6666 assert_eq ! ( q, r) ;
6767 r. y = 17 ;
68- assert ! ( ( r. y != q. y) ) ;
68+ assert ! ( r. y != q. y) ;
6969 assert_eq ! ( r. y, 17 ) ;
70- assert ! ( ( q != r) ) ;
70+ assert ! ( q != r) ;
7171}
7272
7373pub fn main ( ) {
Original file line number Diff line number Diff line change 11//@revisions: stack tree
22//@[tree]compile-flags: -Zmiri-tree-borrows
3- #![ allow( incomplete_features) ] // for trait upcasting
4- #![ feature( allocator_api, trait_upcasting) ]
3+ #![ feature( allocator_api) ]
54
65use std:: alloc:: { AllocError , Allocator , Layout } ;
76use std:: cell:: Cell ;
Original file line number Diff line number Diff line change 1- #![ feature( trait_upcasting) ]
2- #![ allow( incomplete_features) ]
3-
41use std:: fmt;
52
63fn main ( ) {
You can’t perform that action at this time.
0 commit comments