I think this is a matter of just setting `RUSTDOCFLAGS` similarly to how we set `RUSTFLAGS` when doing code coverage. We may need https://github.com/rust-lang/rust/pull/79762 in order to get correct measurements.