]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #52453 - srijs:fix-52436, r=TimNN
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 15 Aug 2018 17:20:19 +0000 (19:20 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Aug 2018 17:20:19 +0000 (19:20 +0200)
commitd8815cfe7daf571617ddd0eeecdf8cb9041b893a
treee08138b608ced9233c17eec512166b31a9e2e6de
parent0f4b4987cd6dea5406dec0634770839fb31ce72c
parent6411aef60952bc0cbad8095d689a6c532f2f31d1
Rollup merge of #52453 - srijs:fix-52436, r=TimNN

improve diagnostics for tests with custom return values

This is an attempt at getting the ball rolling to improve the diagnostics for test functions that return custom `impl Termination` values (see #52436).

An alternative could be to use `eprintln!`, but including this in the panic message felt nicely consistent with how failing test assertions would be reported.

Let me know what you think!
src/libtest/lib.rs