-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for deprecation warning for --passes
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// check-pass | ||
// compile-flags: --passes list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
warning: the `passes` flag is deprecated | ||
| | ||
= note: see issue #44136 <https://github.com/rust-lang/rust/issues/44136> for more information | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Available passes for running rustdoc: | ||
check_doc_test_visibility - run various visibility-related lints on doctests | ||
strip-hidden - strips all `#[doc(hidden)]` items from the output | ||
unindent-comments - removes excess indentation on comments in order for markdown to like it | ||
strip-private - strips all private items from a crate which cannot be seen externally, implies strip-priv-imports | ||
strip-priv-imports - strips all private import statements (`use`, `extern crate`) from a crate | ||
propagate-doc-cfg - propagates `#[doc(cfg(...))]` to child items | ||
collect-intra-doc-links - resolves intra-doc links | ||
check-code-block-syntax - validates syntax inside Rust code blocks | ||
collect-trait-impls - retrieves trait impls for items in the crate | ||
calculate-doc-coverage - counts the number of items with and without documentation | ||
check-invalid-html-tags - detects invalid HTML tags in doc comments | ||
check-bare-urls - detects URLs that are not hyperlinks | ||
|
||
Default passes for rustdoc: | ||
collect-trait-impls | ||
unindent-comments | ||
check_doc_test_visibility | ||
strip-hidden (when not --document-hidden-items) | ||
strip-private (when not --document-private-items) | ||
strip-priv-imports (when --document-private-items) | ||
collect-intra-doc-links | ||
check-code-block-syntax | ||
check-invalid-html-tags | ||
propagate-doc-cfg | ||
check-bare-urls | ||
|
||
Passes run with `--show-coverage`: | ||
strip-hidden (when not --document-hidden-items) | ||
strip-private (when not --document-private-items) | ||
calculate-doc-coverage |