We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed897d5 commit 90fecc7Copy full SHA for 90fecc7
src/librustdoc/doctest/runner.rs
@@ -136,7 +136,7 @@ mod __doctest_mod {{
136
137
#[rustc_main]
138
fn main() -> std::process::ExitCode {{
139
-const TESTS: [test::TestDescAndFn; {nb_tests}] = [{ids}];
+const TESTS: &[test::TestDescAndFn] = &[{ids}];
140
let test_marker = std::ffi::OsStr::new(__doctest_mod::RUN_OPTION);
141
let test_args = &[{test_args}];
142
const ENV_BIN: &'static str = \"RUSTDOC_DOCTEST_BIN_PATH\";
@@ -160,7 +160,6 @@ eprintln!(\"WARNING: No rustdoc doctest environment variable provided so doctest
160
the same process\");
161
std::process::Termination::report(test::test_main(test_args, Vec::from(TESTS), None))
162
}}",
163
- nb_tests = self.nb_tests,
164
output = self.output,
165
ids = self.ids,
166
)
0 commit comments