Warn about casting an enum variant function

Closes #18154.
Our [lint name conventions](https://github.com/rust-lang/rfcs/blob/cc53afbe5dea41e1f7d1c3dce71e013abe025211/text/0344-conventions-galore.md#lints) in general pluralize names such as this.