-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - fixes complaints about missing docs #4551
Conversation
Preference is for generic documentation line; this struct was deliberately not hidden. |
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Wait, isn't it meant to inherit the docstring on the derived struct? |
Why not just silence the lint? |
@bjorn3 this is dealt with in packages like |
Yep; silencing the lint won't work with forbid missing docs either. |
|
Excellent, thank you @bjorn3. I'd seen |
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
bors r+ |
# Objective When using `derive(WorldQuery)`, then clippy complains with the following: ```rust warning: missing documentation for a struct --> src\wild_boar_type\marker_vital_status.rs:35:17 | 35 | #[derive(Debug, WorldQuery)] | ^^^^^^^^^^ | = note: this warning originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info) ``` ## Solution * Either `#[doc(hidden)]` or * Add a generic documentation line to it. I don't know what is preferred, but I'd gladly add it in here.
# Objective When using `derive(WorldQuery)`, then clippy complains with the following: ```rust warning: missing documentation for a struct --> src\wild_boar_type\marker_vital_status.rs:35:17 | 35 | #[derive(Debug, WorldQuery)] | ^^^^^^^^^^ | = note: this warning originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info) ``` ## Solution * Either `#[doc(hidden)]` or * Add a generic documentation line to it. I don't know what is preferred, but I'd gladly add it in here.
# Objective When using `derive(WorldQuery)`, then clippy complains with the following: ```rust warning: missing documentation for a struct --> src\wild_boar_type\marker_vital_status.rs:35:17 | 35 | #[derive(Debug, WorldQuery)] | ^^^^^^^^^^ | = note: this warning originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info) ``` ## Solution * Either `#[doc(hidden)]` or * Add a generic documentation line to it. I don't know what is preferred, but I'd gladly add it in here.
Objective
When using
derive(WorldQuery)
, then clippy complains with the following:Solution
#[doc(hidden)]
orI don't know what is preferred, but I'd gladly add it in here.