Restore shadowing warning

This was inadvertently removed by cf8af09a40e5fd9fff8d1c481fb98b017545f49b

We need to restore the warning because the feature is really deprecated and users have a bad time when they use it inadvertently.