diff options
| author | Philipp Krones <hello@philkrones.com> | 2023-10-06 17:35:45 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-10-06 17:35:45 +0200 |
| commit | 8ebed4cc1a2e21844c58f3b0bfbad1a069bb09b6 (patch) | |
| tree | 917baf90e5136e5f6beca54bbc49ff775a1b9877 /clippy_lints/src/missing_assert_message.rs | |
| parent | 9de3e6c9281e284f81515345330fb74b0c4ad312 (diff) | |
| download | rust-8ebed4cc1a2e21844c58f3b0bfbad1a069bb09b6.tar.gz rust-8ebed4cc1a2e21844c58f3b0bfbad1a069bb09b6.zip | |
Merge commit 'b105fb4c39bc1a010807a6c076193cef8d93c109' into clippyup
Diffstat (limited to 'clippy_lints/src/missing_assert_message.rs')
| -rw-r--r-- | clippy_lints/src/missing_assert_message.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clippy_lints/src/missing_assert_message.rs b/clippy_lints/src/missing_assert_message.rs index c17f00c4275..136947a2c8c 100644 --- a/clippy_lints/src/missing_assert_message.rs +++ b/clippy_lints/src/missing_assert_message.rs @@ -15,6 +15,10 @@ declare_clippy_lint! { /// A good custom message should be more about why the failure of the assertion is problematic /// and not what is failed because the assertion already conveys that. /// + /// Although the same reasoning applies to testing functions, this lint ignores them as they would be too noisy. + /// Also, in most cases understanding the test failure would be easier + /// compared to understanding a complex invariant distributed around the codebase. + /// /// ### Known problems /// This lint cannot check the quality of the custom panic messages. /// Hence, you can suppress this lint simply by adding placeholder messages |
