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
Implement the manual_non_exhaustive lint
Some implementation notes:
* Not providing automatic fixups because additional changes may be needed in other parts of the code, e.g. when constructing a struct.
* Even though the attribute is valid on enum variants, it's not possible to use the manual implementation of the pattern because the visibility is always public, so the lint ignores enum variants.
* Unit structs are also ignored, it's not possible to implement the pattern manually without fields.
* The attribute is not accepted in unions, so those are ignored too.
* Even though the original issue did not mention it, tuple structs are also linted because it's possible to apply the pattern manually.
changelog: Added the manual non-exhaustive implementation lint
Closesrust-lang#2017
celinval
added a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
I removed the `kani_macro` documentation, since all the macros are actually documented as part of `kani` crate because we re-export all `kani_macro` items (and we don't expect users to directly mention / consume `kani_macro`.
I also changed how we invoke `cargo doc` to include `--cfg=kani` so the documentation comes from the macro definition that includes `#[cfg(kani)]`.
yields
The text was updated successfully, but these errors were encountered: