There isn't currently a way to turn on warnings for missing any
s in your code. That's intentional; we're working on a lot of generics ergonomics features right now that may change the way programmers update their current use of existential types.
A lot of Swift code today uses existential types where it doesn't need to because existential types were the more natural thing to write. With opaque parameters and existential opening for function arguments that's being worked on right now, a lot of code can switch from an any
type to a some
type with better performance, fewer limitations, and the code behaving in the same way. When warnings are eventually added for missing any
, we'll take these new features into account and suggest the best transition possible for the given code.