Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cda0221

Browse files
committed
ci/doc: check for private items as well
We check also the documentation of private items to find linting errors, such as broken intra-doc links.
1 parent 01b27af commit cda0221

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

‎.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
cargo xtask clippy --warnings-as-errors
9999
100100
- name: Run cargo doc
101-
run: cargo xtask doc --warnings-as-errors
101+
run: cargo xtask doc --warnings-as-errors --document-private-items
102102

103103
- name: Verify generated code is up-to-date
104104
run: cargo xtask gen-code --check

‎xtask/src/opt.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ pub struct DocOpt {
8686
#[clap(long, action)]
8787
pub open: bool,
8888

89+
/// Tells whether private items should be documented. This is convenient to check for
90+
/// broken intra-doc links in private items.
91+
#[clap(long, action)]
92+
pub document_private_items: bool,
93+
8994
#[clap(flatten)]
9095
pub warning: WarningOpt,
9196
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /