Lint missing_reflect
does not check for fields that cannot be reflected
#141
Milestone
missing_reflect
does not check for fields that cannot be reflected
#141
Please see #139 (comment), #139 (comment), and #139 (comment) for context.
In summary: the
missing_reflect
lint pass currently emits the#[derive(Reflect)]
suggestion asMachineApplicable
, but this may not always be the case. Some fields of structs cannot be reflected, so derivingReflect
will fail.Quoting @MrGVSV:
For a short-term solution, the lint pass should check that all fields of a struct implement
Reflect
, and use that to determine theApplicability
. In the future, the lint should do the more complicated checks that @MrGVSV described and suggest using#[reflect(ignore)]
for bad fields.The text was updated successfully, but these errors were encountered: