@@ -1161,7 +1161,7 @@ fn compile_test_(config: &Config, props: &TestProps,
1161
1161
let args = make_compile_args ( config,
1162
1162
props,
1163
1163
link_args,
1164
- |a, b| ThisFile ( make_exe_name ( a, b) ) , testfile) ;
1164
+ |a, b| TargetLocation :: ThisFile ( make_exe_name ( a, b) ) , testfile) ;
1165
1165
compose_and_run_compiler ( config, props, testfile, args, None )
1166
1166
}
1167
1167
@@ -1219,7 +1219,7 @@ fn compose_and_run_compiler(
1219
1219
crate_type,
1220
1220
|a, b| {
1221
1221
let f = make_lib_name ( a, b, testfile) ;
1222
- ThisDirectory ( f. dir_path ( ) )
1222
+ TargetLocation :: ThisDirectory ( f. dir_path ( ) )
1223
1223
} ,
1224
1224
& abs_ab) ;
1225
1225
let auxres = compose_and_run ( config,
@@ -1296,11 +1296,11 @@ fn make_compile_args(config: &Config,
1296
1296
args. push ( "prefer-dynamic" . to_string ( ) ) ;
1297
1297
}
1298
1298
let path = match xform_file {
1299
- ThisFile ( path) => {
1299
+ TargetLocation :: ThisFile ( path) => {
1300
1300
args. push ( "-o" . to_string ( ) ) ;
1301
1301
path
1302
1302
}
1303
- ThisDirectory ( path) => {
1303
+ TargetLocation :: ThisDirectory ( path) => {
1304
1304
args. push ( "--out-dir" . to_string ( ) ) ;
1305
1305
path
1306
1306
}
@@ -1672,7 +1672,8 @@ fn compile_test_and_save_bitcode(config: &Config, props: &TestProps,
1672
1672
let args = make_compile_args ( config,
1673
1673
props,
1674
1674
link_args,
1675
- |a, b| ThisDirectory ( output_base_name ( a, b) . dir_path ( ) ) ,
1675
+ |a, b| TargetLocation :: ThisDirectory (
1676
+ output_base_name ( a, b) . dir_path ( ) ) ,
1676
1677
testfile) ;
1677
1678
compose_and_run_compiler ( config, props, testfile, args, None )
1678
1679
}
0 commit comments