2020-01-06 00:36:33 -06:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2022-10-02 14:13:22 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:37:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | } else if function() {
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2022-10-02 14:13:22 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:36:8
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | if function() {
|
|
|
|
| ^^^^^^^^^^
|
2023-04-20 09:37:15 -05:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/same_functions_in_if_condition.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![deny(clippy::same_functions_in_if_condition)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-11-13 23:06:34 -06:00
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2022-10-02 14:13:22 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:42:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | } else if fn_arg(a) {
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2022-10-02 14:13:22 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:41: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-10-02 14:13:22 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:47:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | } else if obj.method() {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2022-10-02 14:13:22 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:46: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-10-02 14:13:22 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:52:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | } else if obj.method_arg(a) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2022-10-02 14:13:22 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:51: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`
|
2023-04-20 10:19:36 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:58:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
2022-08-11 12:42:16 -05:00
|
|
|
LL | } else if v.pop().is_none() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
note: same as this
|
2022-10-02 14:13:22 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:57:8
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
2022-08-11 12:42:16 -05:00
|
|
|
LL | if v.pop().is_none() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2019-11-13 23:06:34 -06:00
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2023-04-20 10:19:36 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:63:15
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | } else if v.len() == 42 {
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2022-10-02 14:13:22 -05:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:62:8
|
2019-11-13 23:06:34 -06:00
|
|
|
|
|
|
|
|
LL | if v.len() == 42 {
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|