@@ -22,63 +22,63 @@ fn test_with_teardown(rustc_calls: &dyn Fn()) {
2222}
2323
2424fn main ( ) {
25- test_with_teardown ( || {
25+ test_with_teardown ( & || {
2626 // Building just baz
2727 rustc ( ) . crate_type ( "rlib" ) . input ( "foo.rs" ) . run ( ) ;
2828 rustc ( ) . crate_type ( "dylib" ) . input ( "bar1.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
2929 rustc ( ) . crate_type ( "dylib,rlib" ) . input ( "baz.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
3030 rustc ( ) . crate_type ( "bin" ) . input ( "baz.rs" ) . run ( ) ;
3131 } ) ;
32- test_with_teardown ( || {
32+ test_with_teardown ( & || {
3333 rustc ( ) . crate_type ( "dylib" ) . input ( "foo.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
3434 rustc ( ) . crate_type ( "rlib" ) . input ( "bar1.rs" ) . run ( ) ;
3535 rustc ( ) . crate_type ( "dylib,rlib" ) . input ( "baz.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
3636 rustc ( ) . crate_type ( "bin" ) . input ( "baz.rs" ) . run ( ) ;
3737 } ) ;
38- test_with_teardown ( || {
38+ test_with_teardown ( & || {
3939 // Building baz2
4040 rustc ( ) . crate_type ( "rlib" ) . input ( "foo.rs" ) . run ( ) ;
4141 rustc ( ) . crate_type ( "dylib" ) . input ( "bar1.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
4242 rustc ( ) . crate_type ( "dylib" ) . input ( "bar2.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
4343 rustc ( ) . crate_type ( "dylib" ) . input ( "baz2.rs" ) . run_fail_assert_exit_code ( 1 ) ;
4444 rustc ( ) . crate_type ( "bin" ) . input ( "baz2.rs" ) . run_fail_assert_exit_code ( 1 ) ;
4545 } ) ;
46- test_with_teardown ( || {
46+ test_with_teardown ( & || {
4747 rustc ( ) . crate_type ( "rlib" ) . input ( "foo.rs" ) . run ( ) ;
4848 rustc ( ) . crate_type ( "rlib" ) . input ( "bar1.rs" ) . run ( ) ;
4949 rustc ( ) . crate_type ( "dylib" ) . input ( "bar2.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
5050 rustc ( ) . crate_type ( "dylib,rlib" ) . input ( "baz2.rs" ) . run ( ) ;
5151 rustc ( ) . crate_type ( "bin" ) . input ( "baz2.rs" ) . run ( ) ;
5252 } ) ;
53- test_with_teardown ( || {
53+ test_with_teardown ( & || {
5454 rustc ( ) . crate_type ( "rlib" ) . input ( "foo.rs" ) . run ( ) ;
5555 rustc ( ) . crate_type ( "dylib" ) . input ( "bar1.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
5656 rustc ( ) . crate_type ( "rlib" ) . input ( "bar2.rs" ) . run ( ) ;
5757 rustc ( ) . crate_type ( "dylib,rlib" ) . input ( "baz2.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
5858 rustc ( ) . crate_type ( "bin" ) . input ( "baz2.rs" ) . run ( ) ;
5959 } ) ;
60- test_with_teardown ( || {
60+ test_with_teardown ( & || {
6161 rustc ( ) . crate_type ( "rlib" ) . input ( "foo.rs" ) . run ( ) ;
6262 rustc ( ) . crate_type ( "rlib" ) . input ( "bar1.rs" ) . run ( ) ;
6363 rustc ( ) . crate_type ( "rlib" ) . input ( "bar2.rs" ) . run ( ) ;
6464 rustc ( ) . crate_type ( "dylib,rlib" ) . input ( "baz2.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
6565 rustc ( ) . crate_type ( "bin" ) . input ( "baz2.rs" ) . run ( ) ;
6666 } ) ;
67- test_with_teardown ( || {
67+ test_with_teardown ( & || {
6868 rustc ( ) . crate_type ( "dylib" ) . input ( "foo.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
6969 rustc ( ) . crate_type ( "rlib" ) . input ( "bar1.rs" ) . run ( ) ;
7070 rustc ( ) . crate_type ( "rlib" ) . input ( "bar2.rs" ) . run ( ) ;
7171 rustc ( ) . crate_type ( "dylib,rlib" ) . input ( "baz2.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
7272 rustc ( ) . crate_type ( "bin" ) . input ( "baz2.rs" ) . run ( ) ;
7373 } ) ;
74- test_with_teardown ( || {
74+ test_with_teardown ( & || {
7575 rustc ( ) . crate_type ( "dylib" ) . input ( "foo.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
7676 rustc ( ) . crate_type ( "dylib" ) . input ( "bar1.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
7777 rustc ( ) . crate_type ( "rlib" ) . input ( "bar2.rs" ) . run ( ) ;
7878 rustc ( ) . crate_type ( "dylib,rlib" ) . input ( "baz2.rs" ) . run ( ) ;
7979 rustc ( ) . crate_type ( "bin" ) . input ( "baz2.rs" ) . run ( ) ;
8080 } ) ;
81- test_with_teardown ( || {
81+ test_with_teardown ( & || {
8282 rustc ( ) . crate_type ( "dylib" ) . input ( "foo.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
8383 rustc ( ) . crate_type ( "rlib" ) . input ( "bar1.rs" ) . run ( ) ;
8484 rustc ( ) . crate_type ( "dylib" ) . input ( "bar2.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
0 commit comments