fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this boolean expression can be simplified 2 --> $DIR/nonminimal_bool.rs:13:13 3 | 4LL | let _ = !true; 5 | ^^^^^ help: try: `false` 6 | 7 = note: `-D clippy::nonminimal-bool` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::nonminimal_bool)]` 9 10error: this boolean expression can be simplified 11 --> $DIR/nonminimal_bool.rs:16:13 12 | 13LL | let _ = !false; 14 | ^^^^^^ help: try: `true` 15 16error: this boolean expression can be simplified 17 --> $DIR/nonminimal_bool.rs:18:13 18 | 19LL | let _ = !!a; 20 | ^^^ help: try: `a` 21 22error: this boolean expression can be simplified 23 --> $DIR/nonminimal_bool.rs:20:13 24 | 25LL | let _ = false || a; 26 | ^^^^^^^^^^ help: try: `a` 27 28error: this boolean expression can be simplified 29 --> $DIR/nonminimal_bool.rs:25:13 30 | 31LL | let _ = !(!a && b); 32 | ^^^^^^^^^^ help: try: `a || !b` 33 34error: this boolean expression can be simplified 35 --> $DIR/nonminimal_bool.rs:27:13 36 | 37LL | let _ = !(!a || b); 38 | ^^^^^^^^^^ help: try: `a && !b` 39 40error: this boolean expression can be simplified 41 --> $DIR/nonminimal_bool.rs:29:13 42 | 43LL | let _ = !a && !(b && c); 44 | ^^^^^^^^^^^^^^^ help: try: `!(a || b && c)` 45 46error: this boolean expression can be simplified 47 --> $DIR/nonminimal_bool.rs:38:13 48 | 49LL | let _ = a == b && c == 5 && a == b; 50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 51 | 52help: try 53 | 54LL | let _ = !(a != b || c != 5); 55 | ~~~~~~~~~~~~~~~~~~~ 56LL | let _ = a == b && c == 5; 57 | ~~~~~~~~~~~~~~~~ 58 59error: this boolean expression can be simplified 60 --> $DIR/nonminimal_bool.rs:40:13 61 | 62LL | let _ = a == b || c == 5 || a == b; 63 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 64 | 65help: try 66 | 67LL | let _ = !(a != b && c != 5); 68 | ~~~~~~~~~~~~~~~~~~~ 69LL | let _ = a == b || c == 5; 70 | ~~~~~~~~~~~~~~~~ 71 72error: this boolean expression can be simplified 73 --> $DIR/nonminimal_bool.rs:42:13 74 | 75LL | let _ = a == b && c == 5 && b == a; 76 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 77 | 78help: try 79 | 80LL | let _ = !(a != b || c != 5); 81 | ~~~~~~~~~~~~~~~~~~~ 82LL | let _ = a == b && c == 5; 83 | ~~~~~~~~~~~~~~~~ 84 85error: this boolean expression can be simplified 86 --> $DIR/nonminimal_bool.rs:44:13 87 | 88LL | let _ = a != b || !(a != b || c == d); 89 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 90 | 91help: try 92 | 93LL | let _ = !(a == b && c == d); 94 | ~~~~~~~~~~~~~~~~~~~ 95LL | let _ = a != b || c != d; 96 | ~~~~~~~~~~~~~~~~ 97 98error: this boolean expression can be simplified 99 --> $DIR/nonminimal_bool.rs:46:13 100 | 101LL | let _ = a != b && !(a != b && c == d); 102 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 103 | 104help: try 105 | 106LL | let _ = !(a == b || c == d); 107 | ~~~~~~~~~~~~~~~~~~~ 108LL | let _ = a != b && c != d; 109 | ~~~~~~~~~~~~~~~~ 110 111error: this boolean expression can be simplified 112 --> $DIR/nonminimal_bool.rs:77:8 113 | 114LL | if matches!(true, true) && true { 115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `matches!(true, true)` 116 117error: aborting due to 13 previous errors 118