compiletest: namespaced enums fallout
This commit is contained in:
parent
7191cd92c1
commit
68f90a2cad
@ -1161,7 +1161,7 @@ fn compile_test_(config: &Config, props: &TestProps,
|
||||
let args = make_compile_args(config,
|
||||
props,
|
||||
link_args,
|
||||
|a, b| ThisFile(make_exe_name(a, b)), testfile);
|
||||
|a, b| TargetLocation::ThisFile(make_exe_name(a, b)), testfile);
|
||||
compose_and_run_compiler(config, props, testfile, args, None)
|
||||
}
|
||||
|
||||
@ -1219,7 +1219,7 @@ fn compose_and_run_compiler(
|
||||
crate_type,
|
||||
|a,b| {
|
||||
let f = make_lib_name(a, b, testfile);
|
||||
ThisDirectory(f.dir_path())
|
||||
TargetLocation::ThisDirectory(f.dir_path())
|
||||
},
|
||||
&abs_ab);
|
||||
let auxres = compose_and_run(config,
|
||||
@ -1296,11 +1296,11 @@ fn make_compile_args(config: &Config,
|
||||
args.push("prefer-dynamic".to_string());
|
||||
}
|
||||
let path = match xform_file {
|
||||
ThisFile(path) => {
|
||||
TargetLocation::ThisFile(path) => {
|
||||
args.push("-o".to_string());
|
||||
path
|
||||
}
|
||||
ThisDirectory(path) => {
|
||||
TargetLocation::ThisDirectory(path) => {
|
||||
args.push("--out-dir".to_string());
|
||||
path
|
||||
}
|
||||
@ -1672,7 +1672,8 @@ fn compile_test_and_save_bitcode(config: &Config, props: &TestProps,
|
||||
let args = make_compile_args(config,
|
||||
props,
|
||||
link_args,
|
||||
|a, b| ThisDirectory(output_base_name(a, b).dir_path()),
|
||||
|a, b| TargetLocation::ThisDirectory(
|
||||
output_base_name(a, b).dir_path()),
|
||||
testfile);
|
||||
compose_and_run_compiler(config, props, testfile, args, None)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user