Stabilize --color and --error-format options in rustdoc by GuillaumeGomez · Pull Request #53003 · rust-lang/rust (original) (raw)
These flags were added in #49542 when rustdoc started emitting warnings for intra-doc links. The flags and parameters are the same as for rustc. These parameters are passed to any error emitter that rustdoc uses, so that errors from both rustc and rustdoc follow the same style. The defaults are auto
and human
.
A pending bugfix in Cargo (rust-lang/cargo#5862) will make it start capturing output from rustc/rustdoc, but to do so it needs to override their color settings so they don't accidentally strip color codes from their output due to being piped.
I had personally forgotten that these flags were this recent and that they were unstable. Unless anyone else in @rust-lang/rustdoc objects, i'm merging this.
@bors r+