Skip to content

Commit feb3eae

Browse files
Rollup merge of rust-lang#144297 - GuillaumeGomez:ERROR_EXIT_CODE, r=Amanieu
Make `libtest::ERROR_EXIT_CODE` const public to not redefine it in rustdoc I think it's better to make this constant public so it can be used by crates using `libtest` as dependency. As a side-note, I will update rust-lang#143900 to make use of this constant once this is current PR is merged.
2 parents f4d1221 + 371ea17 commit feb3eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ use options::RunStrategy;
8989
use test_result::*;
9090
use time::TestExecTime;
9191

92-
// Process exit code to be used to indicate test failures.
93-
const ERROR_EXIT_CODE: i32 = 101;
92+
/// Process exit code to be used to indicate test failures.
93+
pub const ERROR_EXIT_CODE: i32 = 101;
9494

9595
const SECONDARY_TEST_INVOKER_VAR: &str = "__RUST_TEST_INVOKE";
9696
const SECONDARY_TEST_BENCH_BENCHMARKS_VAR: &str = "__RUST_TEST_BENCH_BENCHMARKS";

0 commit comments

Comments
 (0)