File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,16 @@ fn run_doc_tests(
173
173
CompileKind :: Target ( target) => {
174
174
if target. short_name ( ) != compilation. host {
175
175
// Skip doctests, -Zdoctest-xcompile not enabled.
176
+ config. shell ( ) . verbose ( |shell| {
177
+ shell. note ( format ! (
178
+ "skipping doctests for {} ({}), \
179
+ cross-compilation doctests are not yet supported\n \
180
+ See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#doctest-xcompile \
181
+ for more information.",
182
+ unit. pkg,
183
+ unit. target. description_named( )
184
+ ) )
185
+ } ) ?;
176
186
continue ;
177
187
}
178
188
}
Original file line number Diff line number Diff line change @@ -617,6 +617,10 @@ fn no_cross_doctests() {
617
617
[COMPILING] foo v0.0.1 ([CWD])
618
618
[RUNNING] `rustc --crate-name foo [..]
619
619
[FINISHED] test [unoptimized + debuginfo] target(s) in [..]
620
+ [NOTE] skipping doctests for foo v0.0.1 ([ROOT]/foo) (lib), \
621
+ cross-compilation doctests are not yet supported
622
+ See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#doctest-xcompile \
623
+ for more information.
620
624
" ,
621
625
)
622
626
. run ( ) ;
@@ -634,6 +638,10 @@ fn no_cross_doctests() {
634
638
[RUNNING] `rustc --crate-name foo [..]--test[..]
635
639
[FINISHED] test [unoptimized + debuginfo] target(s) in [..]
636
640
[RUNNING] `[CWD]/target/{triple}/debug/deps/foo-[..][EXE]`
641
+ [NOTE] skipping doctests for foo v0.0.1 ([ROOT]/foo) (lib), \
642
+ cross-compilation doctests are not yet supported
643
+ See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#doctest-xcompile \
644
+ for more information.
637
645
" ,
638
646
triple = target
639
647
) )
You can’t perform that action at this time.
0 commit comments