Add missing deprecation warning left out of !2842