Matthias Krüger dbc5e72ea2
Rollup merge of #147292 - Urgau:rustdoc-test-unstable_opts, r=fmease
Respect `-Z` unstable options in `rustdoc --test`

This PR makes rustdoc respect `-Z` unstable options when collecting doctests (`rustdoc --test`).

In the process I also realized that `--error-format` wasn't respected as well, making UI annotations impossible to write so I fixed that as well.

Best reviewed commit by commit.

Fixes https://github.com/rust-lang/rust/issues/147276
Fixes https://github.com/rust-lang/rust/issues/143930
r? fmease
2025-10-03 21:10:33 +02:00
..
2025-07-24 11:06:28 +02:00
2025-07-24 11:06:28 +02:00
2025-07-24 11:06:28 +02:00
2025-07-24 11:06:28 +02:00
2025-07-24 11:06:28 +02:00
2025-07-24 11:06:28 +02:00
2025-07-24 11:06:28 +02:00
2025-07-24 11:06:28 +02:00
2025-07-24 11:06:28 +02:00