rust-lang/rust — pull request #19459 by hannobraun (2014-12-02 14:15:53+00:00)
Title: Implement BufWriter::into_slice

As the comment explains, this can be useful when getting the back the
original slice via an additional scope is not practical.