missing_docs_in_private_items
config suggestion allow_unused
#14413
Labels
missing_docs_in_private_items
config suggestion allow_unused
#14413
What it does
This is a suggestion for an additional configuration option for
missing_docs_in_private_items
calledallow_unused
whereby_underscored
fields do not have to have documentation even ifmissing_docs_in_private_items
is enabled.Advantage
When writing structures that must adhere to a specific format (such as memory mapped I/O structures) there are inevitably fields that are "reserved" by specifications and thus need no documentation. In cases where private docs are preferred but reserved fields need no explanation, having to
#[allow/expect]
this lint removes the ability to check for otherwise used fields' documentation.Drawbacks
None that I can think of.
Example
Could be written as:
The text was updated successfully, but these errors were encountered: