Remove unnecessary references to oldvisit.
Ported check_const from oldvisit to <V:Visitor> trait API.