You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using derive(CheckedBitPattern) unconditionally triggers the missing_docs lint. This seems to be because the generated FooBits type is public and without documentation. For example, if a crate using bytemuck would have the following src/lib.rs:
Using
derive(CheckedBitPattern)
unconditionally triggers themissing_docs
lint. This seems to be because the generatedFooBits
type is public and without documentation. For example, if a crate usingbytemuck
would have the followingsrc/lib.rs
:There would be some
FooBits
public type generated as follow (according tocargo expand
):This type does not have a documentation although
Foo
has one.There are at least 3 options to solve this issue:
Foo
forFooBits
.Foo
forFooBits
but slightly modify it to say that all bit patterns are valid.FooBits
stating that it's a version ofFoo
with only valid bit patterns.The text was updated successfully, but these errors were encountered: