File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,6 @@ pub struct Compilation<'cfg> {
69
69
/// Flags to pass to rustdoc when invoked from cargo test, per package.
70
70
pub rustdocflags : HashMap < PackageId , Vec < String > > ,
71
71
72
- pub host : String ,
73
- pub target : String ,
74
-
75
72
config : & ' cfg Config ,
76
73
77
74
/// Rustc process to be used by default
@@ -129,8 +126,6 @@ impl<'cfg> Compilation<'cfg> {
129
126
rustc_process : rustc,
130
127
rustc_workspace_wrapper_process,
131
128
primary_rustc_process,
132
- host : bcx. host_triple ( ) . to_string ( ) ,
133
- target : bcx. target_data . short_name ( & default_kind) . to_string ( ) ,
134
129
target_runner : target_runner ( bcx, default_kind) ?,
135
130
} )
136
131
}
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ fn run_doc_tests(
144
144
let mut runtool: & Option < ( std:: path:: PathBuf , Vec < String > ) > = & None ;
145
145
if doctest_xcompile {
146
146
runtool = compilation. target_runner ( ) ;
147
- } else if compilation . host != compilation . target {
147
+ } else if options . compile_opts . build_config . requested_kind . is_host ( ) {
148
148
return Ok ( ( Test :: Doc , errors) ) ;
149
149
}
150
150
You can’t perform that action at this time.
0 commit comments