lint: port variant size difference diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
e5f2e0e16c
commit
14c3016583
3 changed files with 54 additions and 6 deletions
|
@ -230,3 +230,6 @@ lint-improper-ctypes-array-reason = passing raw arrays by value is not FFI-safe
|
|||
lint-improper-ctypes-array-help = consider passing a pointer to the array
|
||||
|
||||
lint-improper-ctypes-only-phantomdata = composed only of `PhantomData`
|
||||
|
||||
lint-variant-size-differences =
|
||||
enum variant is more than three times larger ({$largest} bytes) than the next largest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue