about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2020-08-05 11:25:57 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2020-08-05 11:25:57 +1000
commit5f8a11279d75dc0078edbd8fa9d1fd1184c3f4ec (patch)
tree4994a4b0348c45a27a3afa36b5d42e457c4acbda /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parentaf4e3e08ea3d9739e5af541b737527584cea1d8f (diff)
downloadrust-5f8a11279d75dc0078edbd8fa9d1fd1184c3f4ec.tar.gz
rust-5f8a11279d75dc0078edbd8fa9d1fd1184c3f4ec.zip
Be smarter about error handling in `run()`.
`run()` returns `Result<(), String>`. But on failure it always returns
an empty string, and then `wrap_return()` treats an empty string
specially, by not reporting the error.

It turns out we already have the `ErrorReported` type for this sort of
behaviour. This commit changes `run()` to use it.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions