Disable merged doctests by default

This commit is contained in:
Guillaume Gomez 2024-06-19 00:16:05 +02:00
parent 0bd2c99ce8
commit 112e44740e
2 changed files with 1 additions and 2 deletions

View File

@ -772,7 +772,7 @@ struct CreateRunnableDoctests {
impl CreateRunnableDoctests {
fn new(rustdoc_options: RustdocOptions, opts: GlobalTestOptions) -> CreateRunnableDoctests {
let can_merge_doctests = true; //rustdoc_options.edition >= Edition::Edition2024;
let can_merge_doctests = rustdoc_options.edition >= Edition::Edition2024;
CreateRunnableDoctests {
standalone_tests: Vec::new(),
mergeable_tests: FxHashMap::default(),

View File

@ -5,7 +5,6 @@ test $DIR/failed-doctest-should-panic.rs - Foo (line 9) - should panic ... FAILE
failures:
---- $DIR/failed-doctest-should-panic.rs - Foo (line 9) stdout ----
Hello, world!
note: test did not panic as expected
failures: