librustc: Port writeback to the new API.

r? @brson or @pnkfelix