Extend wrong_serialize_struct_arg
to handle serialize_struct_variant
, etc.
#850
Labels
wrong_serialize_struct_arg
to handle serialize_struct_variant
, etc.
#850
wrong_serialize_struct_arg
is here: https://github.com/trailofbits/dylint/tree/master/examples/general/wrong_serialize_struct_argAdditional methods it might handle are the following:
The ones that are not
serialize_tuple
should be straightforward, as they also involve calls toserialize_field
. The main changes should be:dylint/examples/general/wrong_serialize_struct_arg/src/lib.rs
Line 125 in d75ae91
len
argument is extracted:dylint/examples/general/wrong_serialize_struct_arg/src/lib.rs
Lines 126 to 127 in d75ae91
dylint/examples/general/wrong_serialize_struct_arg/src/lib.rs
Lines 103 to 106 in d75ae91
Handling
serialize_tuple
will be slightly more involved, as it requires counting calls toserialize_element
instead ofserialize_field
.The text was updated successfully, but these errors were encountered: