about summary refs log tree commit diff
path: root/src/docs/needless_bitwise_bool.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/needless_bitwise_bool.txt')
-rw-r--r--src/docs/needless_bitwise_bool.txt22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/docs/needless_bitwise_bool.txt b/src/docs/needless_bitwise_bool.txt
deleted file mode 100644
index fcd7b730aaa..00000000000
--- a/src/docs/needless_bitwise_bool.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-### What it does
-Checks for uses of bitwise and/or operators between booleans, where performance may be improved by using
-a lazy and.
-
-### Why is this bad?
-The bitwise operators do not support short-circuiting, so it may hinder code performance.
-Additionally, boolean logic "masked" as bitwise logic is not caught by lints like `unnecessary_fold`
-
-### Known problems
-This lint evaluates only when the right side is determined to have no side effects. At this time, that
-determination is quite conservative.
-
-### Example
-```
-let (x,y) = (true, false);
-if x & !y {} // where both x and y are booleans
-```
-Use instead:
-```
-let (x,y) = (true, false);
-if x && !y {}
-```
\ No newline at end of file