diff options
| author | bors <bors@rust-lang.org> | 2014-08-01 05:41:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-08-01 05:41:05 +0000 |
| commit | 9f0b91985fb99730f145b62f2d3b4c10f54e27f0 (patch) | |
| tree | 25ecb89241b9081954eb2ea6e79d058650c25cfa /src/liballoc | |
| parent | b495933a7fdc5e7b28ddbb058d1e2dab330ace7b (diff) | |
| parent | dac9a1c5207cb33a0b40813896b74d00bbbd1d36 (diff) | |
| download | rust-9f0b91985fb99730f145b62f2d3b4c10f54e27f0.tar.gz rust-9f0b91985fb99730f145b62f2d3b4c10f54e27f0.zip | |
auto merge of #16130 : apoelstra/rust/decode-error, r=alexcrichton
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.
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions
