Skip to content

Commit e472fea

Browse files
committed
Add test for deprecation warning for --passes
1 parent 258fd89 commit e472fea

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

src/test/rustdoc-ui/issue-91713.rs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// check-pass
2+
// compile-flags: --passes list
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
warning: the `passes` flag is deprecated
2+
|
3+
= note: see issue #44136 <https://github.com/rust-lang/rust/issues/44136> for more information
4+
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Available passes for running rustdoc:
2+
check_doc_test_visibility - run various visibility-related lints on doctests
3+
strip-hidden - strips all `#[doc(hidden)]` items from the output
4+
unindent-comments - removes excess indentation on comments in order for markdown to like it
5+
strip-private - strips all private items from a crate which cannot be seen externally, implies strip-priv-imports
6+
strip-priv-imports - strips all private import statements (`use`, `extern crate`) from a crate
7+
propagate-doc-cfg - propagates `#[doc(cfg(...))]` to child items
8+
collect-intra-doc-links - resolves intra-doc links
9+
check-code-block-syntax - validates syntax inside Rust code blocks
10+
collect-trait-impls - retrieves trait impls for items in the crate
11+
calculate-doc-coverage - counts the number of items with and without documentation
12+
check-invalid-html-tags - detects invalid HTML tags in doc comments
13+
check-bare-urls - detects URLs that are not hyperlinks
14+
15+
Default passes for rustdoc:
16+
collect-trait-impls
17+
unindent-comments
18+
check_doc_test_visibility
19+
strip-hidden (when not --document-hidden-items)
20+
strip-private (when not --document-private-items)
21+
strip-priv-imports (when --document-private-items)
22+
collect-intra-doc-links
23+
check-code-block-syntax
24+
check-invalid-html-tags
25+
propagate-doc-cfg
26+
check-bare-urls
27+
28+
Passes run with `--show-coverage`:
29+
strip-hidden (when not --document-hidden-items)
30+
strip-private (when not --document-private-items)
31+
calculate-doc-coverage

0 commit comments

Comments
 (0)