librustc: fix bad imports in encoder/decoder