2020-01-06 06:36:33 +00:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2023-05-17 04:05:46 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:39:15
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
|
|
|
LL | } else if function() {
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2023-05-17 04:05:46 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:38:8
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
|
|
|
LL | if function() {
|
|
|
|
| ^^^^^^^^^^
|
2023-04-23 11:03:09 +00: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-14 05:06:34 +00:00
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2023-05-17 04:05:46 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:44:15
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
|
|
|
LL | } else if fn_arg(a) {
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2023-05-17 04:05:46 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:43:8
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
|
|
|
LL | if fn_arg(a) {
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2023-05-17 04:05:46 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:49:15
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
|
|
|
LL | } else if obj.method() {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2023-05-17 04:05:46 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:48:8
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
|
|
|
LL | if obj.method() {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2023-05-17 04:05:46 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:54:15
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
|
|
|
LL | } else if obj.method_arg(a) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2023-05-17 04:05:46 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:53:8
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
|
|
|
LL | if obj.method_arg(a) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2023-06-29 17:48:06 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:60:15
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
2022-08-11 17:42:16 +00:00
|
|
|
LL | } else if v.pop().is_none() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
|
|
|
note: same as this
|
2023-05-17 04:05:46 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:59:8
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
2022-08-11 17:42:16 +00:00
|
|
|
LL | if v.pop().is_none() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2019-11-14 05:06:34 +00:00
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
error: this `if` has the same function call as a previous `if`
|
2023-06-29 17:48:06 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:65:15
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
|
|
|
LL | } else if v.len() == 42 {
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: same as this
|
2023-05-17 04:05:46 +00:00
|
|
|
--> $DIR/same_functions_in_if_condition.rs:64:8
|
2019-11-14 05:06:34 +00:00
|
|
|
|
|
|
|
|
LL | if v.len() == 42 {
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|