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