@@ -7,55 +7,55 @@ LL | if f != None { "yay" } else { "nay" }
77 = note: `-D clippy::partialeq-to-none` implied by `-D warnings`
88
99error: binary comparison to literal `Option::None`
10- --> $DIR/partialeq_to_none.rs:32 :13
10+ --> $DIR/partialeq_to_none.rs:44 :13
1111 |
1212LL | let _ = x == None;
1313 | ^^^^^^^^^ help: use `Option::is_none()` instead: `x.is_none()`
1414
1515error: binary comparison to literal `Option::None`
16- --> $DIR/partialeq_to_none.rs:33 :13
16+ --> $DIR/partialeq_to_none.rs:45 :13
1717 |
1818LL | let _ = x != None;
1919 | ^^^^^^^^^ help: use `Option::is_some()` instead: `x.is_some()`
2020
2121error: binary comparison to literal `Option::None`
22- --> $DIR/partialeq_to_none.rs:34 :13
22+ --> $DIR/partialeq_to_none.rs:46 :13
2323 |
2424LL | let _ = None == x;
2525 | ^^^^^^^^^ help: use `Option::is_none()` instead: `x.is_none()`
2626
2727error: binary comparison to literal `Option::None`
28- --> $DIR/partialeq_to_none.rs:35 :13
28+ --> $DIR/partialeq_to_none.rs:47 :13
2929 |
3030LL | let _ = None != x;
3131 | ^^^^^^^^^ help: use `Option::is_some()` instead: `x.is_some()`
3232
3333error: binary comparison to literal `Option::None`
34- --> $DIR/partialeq_to_none.rs:37 :8
34+ --> $DIR/partialeq_to_none.rs:49 :8
3535 |
3636LL | if foobar() == None {}
3737 | ^^^^^^^^^^^^^^^^ help: use `Option::is_none()` instead: `foobar().is_none()`
3838
3939error: binary comparison to literal `Option::None`
40- --> $DIR/partialeq_to_none.rs:39 :8
40+ --> $DIR/partialeq_to_none.rs:51 :8
4141 |
4242LL | if bar().ok() != None {}
4343 | ^^^^^^^^^^^^^^^^^^ help: use `Option::is_some()` instead: `bar().ok().is_some()`
4444
4545error: binary comparison to literal `Option::None`
46- --> $DIR/partialeq_to_none.rs:41 :13
46+ --> $DIR/partialeq_to_none.rs:53 :13
4747 |
4848LL | let _ = Some(1 + 2) != None;
4949 | ^^^^^^^^^^^^^^^^^^^ help: use `Option::is_some()` instead: `Some(1 + 2).is_some()`
5050
5151error: binary comparison to literal `Option::None`
52- --> $DIR/partialeq_to_none.rs:43 :13
52+ --> $DIR/partialeq_to_none.rs:55 :13
5353 |
5454LL | let _ = { Some(0) } == None;
5555 | ^^^^^^^^^^^^^^^^^^^ help: use `Option::is_none()` instead: `{ Some(0) }.is_none()`
5656
5757error: binary comparison to literal `Option::None`
58- --> $DIR/partialeq_to_none.rs:45 :13
58+ --> $DIR/partialeq_to_none.rs:57 :13
5959 |
6060LL | let _ = {
6161 | _____________^
@@ -77,31 +77,31 @@ LL ~ }.is_some();
7777 |
7878
7979error: binary comparison to literal `Option::None`
80- --> $DIR/partialeq_to_none.rs:55 :13
80+ --> $DIR/partialeq_to_none.rs:67 :13
8181 |
8282LL | let _ = optref() == &&None;
8383 | ^^^^^^^^^^^^^^^^^^ help: use `Option::is_none()` instead: `optref().is_none()`
8484
8585error: binary comparison to literal `Option::None`
86- --> $DIR/partialeq_to_none.rs:56 :13
86+ --> $DIR/partialeq_to_none.rs:68 :13
8787 |
8888LL | let _ = &&None != optref();
8989 | ^^^^^^^^^^^^^^^^^^ help: use `Option::is_some()` instead: `optref().is_some()`
9090
9191error: binary comparison to literal `Option::None`
92- --> $DIR/partialeq_to_none.rs:57 :13
92+ --> $DIR/partialeq_to_none.rs:69 :13
9393 |
9494LL | let _ = **optref() == None;
9595 | ^^^^^^^^^^^^^^^^^^ help: use `Option::is_none()` instead: `optref().is_none()`
9696
9797error: binary comparison to literal `Option::None`
98- --> $DIR/partialeq_to_none.rs:58 :13
98+ --> $DIR/partialeq_to_none.rs:70 :13
9999 |
100100LL | let _ = &None != *optref();
101101 | ^^^^^^^^^^^^^^^^^^ help: use `Option::is_some()` instead: `optref().is_some()`
102102
103103error: binary comparison to literal `Option::None`
104- --> $DIR/partialeq_to_none.rs:61 :13
104+ --> $DIR/partialeq_to_none.rs:73 :13
105105 |
106106LL | let _ = None != *x;
107107 | ^^^^^^^^^^ help: use `Option::is_some()` instead: `(*x).is_some()`
0 commit comments