diff options
| author | Richo Healey <richo@psych0tik.net> | 2014-11-21 10:50:44 -0800 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2014-11-21 11:30:24 -0800 |
| commit | 68f90a2cad5d5230aa59ec95b87e5467cd554dac (patch) | |
| tree | 54511dbb225cfae48c608cb72cf3e721b891e77d /src | |
| parent | 7191cd92c1f0ef3d1373e9b494575cb336b5e4c7 (diff) | |
| download | rust-68f90a2cad5d5230aa59ec95b87e5467cd554dac.tar.gz rust-68f90a2cad5d5230aa59ec95b87e5467cd554dac.zip | |
compiletest: namespaced enums fallout
Diffstat (limited to 'src')
| -rw-r--r-- | src/compiletest/runtest.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 75dc45d16eb..616e44f1800 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -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) } |
