We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 167510f commit 54b5d30Copy full SHA for 54b5d30
src/librustdoc/test.rs
@@ -263,7 +263,12 @@ fn run_test(
263
if no_run && !compile_fail {
264
compiler.arg("--emit=metadata");
265
}
266
- compiler.arg("--target").arg(target.to_string());
+ compiler.arg("--target").arg(match target {
267
+ TargetTriple::TargetTriple(s) => s,
268
+ TargetTriple::TargetPath(path) => {
269
+ path.to_str().expect("target path must be valid unicode").to_string()
270
+ }
271
+ });
272
273
compiler.arg("-");
274
compiler.stdin(Stdio::piped());
@@ -312,8 +317,8 @@ fn run_test(
312
317
313
318
if let Some(tool) = runtool {
314
319
cmd = Command::new(tool);
315
- cmd.arg(output_file);
316
320
cmd.args(runtool_args);
321
+ cmd.arg(output_file);
322
} else {
323
cmd = Command::new(output_file);
324
0 commit comments