We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
missing_assert_message
1 parent 4494b69 commit 62b8ef3Copy full SHA for 62b8ef3
clippy_lints/src/missing_assert_message.rs
@@ -15,6 +15,10 @@ declare_clippy_lint! {
15
/// A good custom message should be more about why the failure of the assertion is problematic
16
/// and not what is failed because the assertion already conveys that.
17
///
18
+ /// Although the same reasoning applies to testing functions, this lint ignores them as they would be too noisy.
19
+ /// Also, in most cases understanding the test failure would be easier
20
+ /// compared to understanding a complex invariant distributed around the codebase.
21
+ ///
22
/// ### Known problems
23
/// This lint cannot check the quality of the custom panic messages.
24
/// Hence, you can suppress this lint simply by adding placeholder messages
0 commit comments