about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-07-22 13:31:12 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-07-31 10:45:18 +0200
commitbee5fbf36e9cbb7f3317ce6a71b3574dc007dee5 (patch)
treea55741de30bc1010d79f81b879ffcb19041513c9
parent227abb70ab2e3d10f05fe933d3c77ecbb04eb9a9 (diff)
downloadrust-bee5fbf36e9cbb7f3317ce6a71b3574dc007dee5.tar.gz
rust-bee5fbf36e9cbb7f3317ce6a71b3574dc007dee5.zip
Fix CI build failure when using new libtest public constant
-rw-r--r--src/librustdoc/doctest.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustdoc/doctest.rs b/src/librustdoc/doctest.rs
index a4344c87e02..35ace656638 100644
--- a/src/librustdoc/doctest.rs
+++ b/src/librustdoc/doctest.rs
@@ -409,8 +409,9 @@ pub(crate) fn run_tests(
         // We ensure temp dir destructor is called.
         std::mem::drop(temp_dir);
         times.display_times();
-        // libtest::ERROR_EXIT_CODE is not public but it's the same value.
-        std::process::exit(test::ERROR_EXIT_CODE);
+        // FIXME(GuillaumeGomez): Uncomment the next line once #144297 has been merged.
+        // std::process::exit(test::ERROR_EXIT_CODE);
+        std::process::exit(101);
     }
 }