rustdoc lint missing_doc_code_examples not working on stable #76194
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I wanted to try out the missing_doc_code_examples rustdoc lint, but it seems to
be bugged.
I tried following the example given in the book.
Steps to reproduce:
Create a new crate:
Then edit the src/main.rs file:
I would now expect to get a linting error when building the crate, since the add
function is public, but does not have a code example. However,
cargo build
aswell as
cargo doc
andcargo test --doc
completes without any errors.The text was updated successfully, but these errors were encountered: