rustc: Remove some dead code from method resolution