librustc: Remove redundant cfg(test) attributes. Fixes 2119