File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -42,22 +42,15 @@ fn num_cpus() {
4242 assert_eq ! ( num_cpus:: get( ) , 1 ) ;
4343}
4444
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.
4945#[ test]
50- #[ cfg_attr ( not ( windows ) , should_panic( expected="Explicit panic" ) ) ]
46+ #[ should_panic( expected="Explicit panic" ) ]
5147fn do_panic ( ) { // In large, friendly letters :)
52- #[ cfg( not( windows) ) ]
5348 panic ! ( "Explicit panic from test!" ) ;
5449}
5550
56- // FIXME: see above
5751#[ test]
5852#[ 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" ) ]
6054fn fail_index_check ( ) {
61- #[ cfg( not( windows) ) ]
6255 [ ] [ 42 ]
6356}
You can’t perform that action at this time.
0 commit comments