rustc: added a check for builtin bounds to vtable search

Closes #10751