summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/same_functions_in_if_condition.stderr
blob: cd438b830401d746587e10d51b646be076b6de58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
error: this `if` has the same function call as a previous `if`
  --> $DIR/same_functions_in_if_condition.rs:31:15
   |
LL |     } else if function() {
   |               ^^^^^^^^^^
   |
   = note: `-D clippy::same-functions-in-if-condition` implied by `-D warnings`
note: same as this
  --> $DIR/same_functions_in_if_condition.rs:30:8
   |
LL |     if function() {
   |        ^^^^^^^^^^

error: this `if` has the same function call as a previous `if`
  --> $DIR/same_functions_in_if_condition.rs:36:15
   |
LL |     } else if fn_arg(a) {
   |               ^^^^^^^^^
   |
note: same as this
  --> $DIR/same_functions_in_if_condition.rs:35:8
   |
LL |     if fn_arg(a) {
   |        ^^^^^^^^^

error: this `if` has the same function call as a previous `if`
  --> $DIR/same_functions_in_if_condition.rs:41:15
   |
LL |     } else if obj.method() {
   |               ^^^^^^^^^^^^
   |
note: same as this
  --> $DIR/same_functions_in_if_condition.rs:40:8
   |
LL |     if obj.method() {
   |        ^^^^^^^^^^^^

error: this `if` has the same function call as a previous `if`
  --> $DIR/same_functions_in_if_condition.rs:46:15
   |
LL |     } else if obj.method_arg(a) {
   |               ^^^^^^^^^^^^^^^^^
   |
note: same as this
  --> $DIR/same_functions_in_if_condition.rs:45:8
   |
LL |     if obj.method_arg(a) {
   |        ^^^^^^^^^^^^^^^^^

error: this `if` has the same function call as a previous `if`
  --> $DIR/same_functions_in_if_condition.rs:53:15
   |
LL |     } else if v.pop().is_none() {
   |               ^^^^^^^^^^^^^^^^^
   |
note: same as this
  --> $DIR/same_functions_in_if_condition.rs:51:8
   |
LL |     if v.pop().is_none() {
   |        ^^^^^^^^^^^^^^^^^

error: this `if` has the same function call as a previous `if`
  --> $DIR/same_functions_in_if_condition.rs:58:15
   |
LL |     } else if v.len() == 42 {
   |               ^^^^^^^^^^^^^
   |
note: same as this
  --> $DIR/same_functions_in_if_condition.rs:56:8
   |
LL |     if v.len() == 42 {
   |        ^^^^^^^^^^^^^

error: aborting due to 6 previous errors