2020-01-06 00:36:33 -06:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:31:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | } else if function() {
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::same-functions-in-if-condition` implied by `-D warnings`
|
|
|
|
note: same as this
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:30:8
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | if function() {
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:36:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | } else if fn_arg(a) {
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:35:8
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | if fn_arg(a) {
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:41:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | } else if obj.method() {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:40:8
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | if obj.method() {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:46:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | } else if obj.method_arg(a) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:45:8
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | if obj.method_arg(a) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:53:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | } else if v.pop() == None {
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:51:8
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | if v.pop() == None {
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:58:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | } else if v.len() == 42 {
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2022-04-09 23:54:41 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:56:8
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | if v.len() == 42 {
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|