mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
29f31f1662
This is useful for changing the *default* for whether doctests are merged or not. Currently, that default is solely controlled by `edition = 2024`, which adds a high switching cost to get doctest merging. This flag allows opt-ing in even on earlier additions. Unlike the `edition = 2024` default, `--merge-doctests=yes` gives a hard error if merging fails instead of falling back to running standalone tests. The user has explicitly said they want merging, so we shouldn't silently do something else. `--merge-doctests=auto` is equivalent to the current 2024 edition behavior, but available on earlier editions.
9 lines
275 B
Plaintext
9 lines
275 B
Plaintext
|
|
running 2 tests
|
|
test $DIR/force-merge.rs - Foo (line 14) ... ok
|
|
test $DIR/force-merge.rs - Foo (line 20) ... ok
|
|
|
|
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
|
|
|
all doctests ran in $TIME; merged doctests compilation took $TIME
|