librustc: Remove another deprecated use of `as Trait`. rs=burningtree