]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #16130 : apoelstra/rust/decode-error, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 1 Aug 2014 05:41:05 +0000 (05:41 +0000)
committerbors <bors@rust-lang.org>
Fri, 1 Aug 2014 05:41:05 +0000 (05:41 +0000)
A quick and dirty fix for #15036 until we get serious decoder reform.

Right now it is impossible for a `Decodable` to signal a decode error, for example if it has only finitely many allowed values, is a string which must be encoded a certain way, needs a valid checksum, etc. For example in the `libuuid` implementation of `Decodable` an `Option` is unwrapped, meaning that a decode of a malformed UUID will cause the task to fail.


Trivial merge