librustc: Port writeback to the new API.
auto merge of #9086 : pcwalton/rust/writeback-port, r=brson

r? @brson or @pnkfelix