rustdoc: Deprecate option --test-args in favor of new insta-stable option --test-arg by fmease · Pull Request #139869 · rust-lang/rust (original) (raw)

@rfcbot concern insta-stable

Should the new flag be insta-stable? If we keep the new flag unstable, we can't recommend a replacement for the newly deprecated flag. Should we just soft-deprecate the old flag first?

Potential solution: Only deprecate the flag under --edition=future (-Zunstable-options) and make the new flag unstable (requiring -Zunstable-options).

@rfcbot concern insuppressible-warning

We currently emit an insuppressible deprecation warning (IIRC it's infeasible or even impossible to make this an early buffered lint warning). However, that'll probably lead to a lot of terminal spam for Cargo users? Idk, does Cargo use this flag under the hood or do users usually pass these explicitly via env var RUSTDOCFLAGS / config opt rustdocflags?