Rustdoc has a lint called rustdoc::broken_intra_doc_links
for checking doc status. I would like to make this lint into an error via command line flags. Most rust lints can be configured via -D flags
but I can't figure out how to do it for rustdoc, even when invoking it explicitly on the command line. I tried for example
cargo rustdoc -p mycrate -- -D "rustdoc::broken_intra_doc_links"
but this just gives me the error error[E0602]: unknown lint: 'broken_intra_doc_links'
I am aware that I can put #![deny(rustdoc::broken_intra_doc_links)]
into the code to flag this, I don't wish to do this.