batteries
batteries copied to clipboard
feat: apply dupNamespace linter to instances
This caught 14 bugs with no false positives over in https://github.com/leanprover-community/mathlib4/pull/10899
How does this interact with deriving instance ... and other automatically generated instances?
I don't know, but I have no reason to suspect those would introduce duplicate namespaces. If there's a way to exclude those, that's fine by me, of course.
How about adding some tests?
The test doesn't seem to include a result from the linter? Can you use #guard_msgs?