about summary refs log tree commit diff
path: root/clippy_lints/src/mutable_debug_assertion.rs
diff options
context:
space:
mode:
authorflip1995 <philipp.krones@embecosm.com>2021-07-29 12:16:06 +0200
committerflip1995 <philipp.krones@embecosm.com>2021-07-29 12:16:06 +0200
commit2b20f49841dbfb773d47c008b4278885435483ac (patch)
treed0799017c6caa0d09cced4ef5e3726abb81b93ae /clippy_lints/src/mutable_debug_assertion.rs
parent5331fea87543eee06da7eef9f9854e89e9b5c7f3 (diff)
downloadrust-2b20f49841dbfb773d47c008b4278885435483ac.tar.gz
rust-2b20f49841dbfb773d47c008b4278885435483ac.zip
Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyup
Diffstat (limited to 'clippy_lints/src/mutable_debug_assertion.rs')
-rw-r--r--clippy_lints/src/mutable_debug_assertion.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/clippy_lints/src/mutable_debug_assertion.rs b/clippy_lints/src/mutable_debug_assertion.rs
index 25645a0e7a2..9b44cf9d43a 100644
--- a/clippy_lints/src/mutable_debug_assertion.rs
+++ b/clippy_lints/src/mutable_debug_assertion.rs
@@ -9,17 +9,17 @@ use rustc_session::{declare_lint_pass, declare_tool_lint};
 use rustc_span::Span;
 
 declare_clippy_lint! {
-    /// **What it does:** Checks for function/method calls with a mutable
+    /// ### What it does
+    /// Checks for function/method calls with a mutable
     /// parameter in `debug_assert!`, `debug_assert_eq!` and `debug_assert_ne!` macros.
     ///
-    /// **Why is this bad?** In release builds `debug_assert!` macros are optimized out by the
+    /// ### Why is this bad?
+    /// In release builds `debug_assert!` macros are optimized out by the
     /// compiler.
     /// Therefore mutating something in a `debug_assert!` macro results in different behaviour
     /// between a release and debug build.
     ///
-    /// **Known problems:** None
-    ///
-    /// **Example:**
+    /// ### Example
     /// ```rust,ignore
     /// debug_assert_eq!(vec![3].pop(), Some(3));
     /// // or