about summary refs log tree commit diff
path: root/clippy_lints/src/ptr_eq.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-28 13:15:43 +0000
committerbors <bors@rust-lang.org>2021-07-28 13:15:43 +0000
commit92ca25b3ec8cef291f1d3b37bfd01d3cce8609e2 (patch)
treee58ac96a0819f774260a28ea7c1dcdcca567bee2 /clippy_lints/src/ptr_eq.rs
parentac0fd99194141f189b3fc41ef2d8925e6fa359c2 (diff)
parent464c85c8c1c71feda6e53eb9d8713bfdafaf7d8b (diff)
downloadrust-92ca25b3ec8cef291f1d3b37bfd01d3cce8609e2.tar.gz
rust-92ca25b3ec8cef291f1d3b37bfd01d3cce8609e2.zip
Auto merge of #7502 - flip1995:rollup-y3ho3w0, r=flip1995
Rollup of 3 pull requests

Successful merges:

 - #7279 (Adapting the lint list to Clippy's new metadata format)
 - #7298 (Switch CI to new metadata collection)
 - #7420 (Update lint documentation to use markdown headlines)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

changelog: rollup
Diffstat (limited to 'clippy_lints/src/ptr_eq.rs')
-rw-r--r--clippy_lints/src/ptr_eq.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/clippy_lints/src/ptr_eq.rs b/clippy_lints/src/ptr_eq.rs
index 77cfa3f6b17..d6d7049fb61 100644
--- a/clippy_lints/src/ptr_eq.rs
+++ b/clippy_lints/src/ptr_eq.rs
@@ -8,16 +8,15 @@ use rustc_lint::{LateContext, LateLintPass};
 use rustc_session::{declare_lint_pass, declare_tool_lint};
 
 declare_clippy_lint! {
-    /// **What it does:** Use `std::ptr::eq` when applicable
+    /// ### What it does
+    /// Use `std::ptr::eq` when applicable
     ///
-    /// **Why is this bad?** `ptr::eq` can be used to compare `&T` references
+    /// ### Why is this bad?
+    /// `ptr::eq` can be used to compare `&T` references
     /// (which coerce to `*const T` implicitly) by their address rather than
     /// comparing the values they point to.
     ///
-    /// **Known problems:** None.
-    ///
-    /// **Example:**
-    ///
+    /// ### Example
     /// ```rust
     /// let a = &[1, 2, 3];
     /// let b = &[1, 2, 3];