about summary refs log tree commit diff
path: root/src/docs/cmp_null.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/cmp_null.txt')
-rw-r--r--src/docs/cmp_null.txt23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/docs/cmp_null.txt b/src/docs/cmp_null.txt
deleted file mode 100644
index 02fd15124f0..00000000000
--- a/src/docs/cmp_null.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-### What it does
-This lint checks for equality comparisons with `ptr::null`
-
-### Why is this bad?
-It's easier and more readable to use the inherent
-`.is_null()`
-method instead
-
-### Example
-```
-use std::ptr;
-
-if x == ptr::null {
-    // ..
-}
-```
-
-Use instead:
-```
-if x.is_null() {
-    // ..
-}
-```
\ No newline at end of file