Skip to content

Commit 27fca17

Browse files
authored
Rollup merge of rust-lang#148056 - epage:merged, r=GuillaumeGomez
refactor(rustdoc): Remove redundant langstr checks These same checks feed into `doctest.can_be_merged`, making them redundant.
2 parents 7613af6 + aec6d51 commit 27fca17

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/librustdoc/doctest.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,9 +1016,6 @@ impl CreateRunnableDocTests {
10161016
.span(scraped_test.span)
10171017
.build(dcx);
10181018
let is_standalone = !doctest.can_be_merged
1019-
|| scraped_test.langstr.compile_fail
1020-
|| scraped_test.langstr.test_harness
1021-
|| scraped_test.langstr.standalone_crate
10221019
|| self.rustdoc_options.nocapture
10231020
|| self.rustdoc_options.test_args.iter().any(|arg| arg == "--show-output");
10241021
if is_standalone {

0 commit comments

Comments
 (0)