]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #50669 - QuietMisdreavus:deprecated-attrs, r=GuillaumeGomez
authorkennytm <kennytm@gmail.com>
Wed, 16 May 2018 15:22:48 +0000 (23:22 +0800)
committerGitHub <noreply@github.com>
Wed, 16 May 2018 15:22:48 +0000 (23:22 +0800)
rustdoc: deprecate `#![doc(passes, plugins, no_default_passes)]`

Closes https://github.com/rust-lang/rust/issues/48164

Blocked on https://github.com/rust-lang/rust/pull/50541 - this includes those changes, which were necessary to create the UI test

cc https://github.com/rust-lang/rust/issues/44136

Turns out, there were special attributes to mess with rustdoc passes and plugins! Who knew! Since we deprecated the CLI flags for this functionality, it makes sense that we do the same for the attributes.

This PR also introduces a `#![doc(document_private_items)]` attribute, to match the `--document-private-items` flag introduced in https://github.com/rust-lang/rust/pull/44138 when the passes/plugins flags were deprecated.

I haven't done a search to see whether these attributes are being used at all, but if the flags were any indication, i don't expect to see any users of these.

1  2 
src/librustdoc/lib.rs

Simple merge