]> git.lizzy.rs Git - rust.git/commit
Improve error handling in libflate
authorTobias Bucher <tobiasbucher5991@gmail.com>
Sun, 15 Mar 2015 20:35:48 +0000 (21:35 +0100)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Mon, 16 Mar 2015 18:15:20 +0000 (19:15 +0100)
commit1b894c65de8e5bf03225afa29664045f5622e6d7
treec0124f5885a5196d6c1d640e7b8c890abdb65132
parentb4f5e78b467fff62bcb5287f34940fd0037f2216
Improve error handling in libflate

This removes the error case of the compression functions, the only errors that
can occur are incorrect parameters or an out-of-memory condition, both of which
are handled with panics in Rust.

Also introduces an extensible `Error` type instead of returning an `Option`.
src/libflate/lib.rs
src/librustc/metadata/loader.rs
src/librustc_trans/back/link.rs
src/librustc_trans/back/lto.rs
src/librustc_trans/trans/base.rs