We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b1c48 commit f9f62ffCopy full SHA for f9f62ff
src/cargo/ops/cargo_test.rs
@@ -1,6 +1,6 @@
1
use std::ffi::OsString;
2
3
-use crate::core::compiler::{Compilation, Doctest};
+use crate::core::compiler::{Compilation, CompileKind, Doctest};
4
use crate::core::shell::Verbosity;
5
use crate::core::Workspace;
6
use crate::ops;
@@ -163,7 +163,9 @@ fn run_doc_tests(
163
.arg(&target.crate_name());
164
165
if doctest_xcompile {
166
- p.arg("--target").arg(&compilation.target);
+ if let CompileKind::Target(target) = options.compile_opts.build_config.requested_kind {
167
+ p.arg("--target").arg(target.rustc_target());
168
+ }
169
p.arg("-Zunstable-options");
170
p.arg("--enable-per-target-ignores");
171
}
0 commit comments