Skip to content

Commit

Permalink
as per issue/comment #12118 (comment) added warning about skipping do…
Browse files Browse the repository at this point in the history
…ctest on xcompiling even when not under verbose flag
  • Loading branch information
progressive-galib committed Dec 11, 2024
1 parent 298e403 commit 4639cf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cargo/ops/cargo_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ fn run_doc_tests(
CompileKind::Host => {}
CompileKind::Target(target) => {
if target.short_name() != compilation.host {

gctx.shell().concise(|shell| {
shell.warn("skipping cross-compilation doctest(s), use --verbose to see the full list in detail".to_string())
})?;
// Skip doctests, -Zdoctest-xcompile not enabled.
gctx.shell().verbose(|shell| {
shell.note(format!(
Expand Down

0 comments on commit 4639cf5

Please sign in to comment.