File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -42,22 +42,15 @@ fn num_cpus() {
42
42
assert_eq ! ( num_cpus:: get( ) , 1 ) ;
43
43
}
44
44
45
-
46
- // FIXME: Remove this `cfg` once we fix https://github.com/rust-lang/miri/issues/1059.
47
- // We cfg-gate the `should_panic` attribute and the `panic!` itself, so that the test
48
- // stdout does not depend on the target.
49
45
#[ test]
50
- #[ cfg_attr ( not ( windows ) , should_panic( expected="Explicit panic" ) ) ]
46
+ #[ should_panic( expected="Explicit panic" ) ]
51
47
fn do_panic ( ) { // In large, friendly letters :)
52
- #[ cfg( not( windows) ) ]
53
48
panic ! ( "Explicit panic from test!" ) ;
54
49
}
55
50
56
- // FIXME: see above
57
51
#[ test]
58
52
#[ allow( unconditional_panic) ]
59
- #[ cfg_attr ( not ( windows ) , should_panic( expected="the len is 0 but the index is 42" ) ) ]
53
+ #[ should_panic( expected="the len is 0 but the index is 42" ) ]
60
54
fn fail_index_check ( ) {
61
- #[ cfg( not( windows) ) ]
62
55
[ ] [ 42 ]
63
56
}
You can’t perform that action at this time.
0 commit comments