librustc: Implement coercion for traits.