I'd like to add a structured suggestion to derive
Debug if possible on a lint, but I'd prefer to not emit the suggestion if the
derive woudn't work. Is there a way to check if the derive is possible? It's fine if there are false positives in more complex cases.
That sounds like something that chalk is able to do
but I have no idea to be honest
Debug can be derived if all fields implement
Debug, so you should be able to check that
You could also check it recursively, adding
Debug for nested types.
I understand conceptually that I can do that, but how would I do that within a lint?