rust-lang/rust — pull request #19980 by erickt (2014-12-18 14:58:48+00:00)
Title: Cleanup serialize

This brings over some changes from [rustc-serialize](https://github.com/rust-lang/rustc-serialize). It makes sense to keep the two in sync until we finally remove libserialize, just to make sure they don't diverge from each other.