Commit graph

3 commits

Author SHA1 Message Date
Oleksii Lozovskyi
a8f4a6744c rustdoc: Test only in stage2
stage1's rustdoc is using stage0's libtest which does not have
a fix from 069cf9dfc9, making the test run fail. Ensure that
this test is executed with everything recompiled in stage2.
2025-12-16 21:10:29 +09:00
Oleksii Lozovskyi
069cf9dfc9 rustdoc: Write newline differently
Fix the panic in write_message() which expects messages to contain
no embedded newlines. We still want a trailing newline at the end
of the file though, so write it in different manner.

Doctest runner no longer panics, but the output is kinda broken
when `compile_fail` doctests are present. This is because they
are not mergeable.
2025-12-13 16:31:09 +09:00
Oleksii Lozovskyi
2cc434863c rustdoc: Test --format=junit
Copied validate_junit.py from libtest-junit.

JUnit format works well in edition 2021, but is currently broken
in edition 2024 by the mergeable doctest report.
2025-12-13 16:31:02 +09:00