mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 10:33:27 +00:00
79 lines
2.1 KiB
Text
79 lines
2.1 KiB
Text
error: this `if` has the same function call as a previous `if`
|
|
--> $DIR/same_functions_in_if_condition.rs:39:15
|
|
|
|
|
LL | } else if function() {
|
|
| ^^^^^^^^^^
|
|
|
|
|
note: same as this
|
|
--> $DIR/same_functions_in_if_condition.rs:38:8
|
|
|
|
|
LL | if function() {
|
|
| ^^^^^^^^^^
|
|
note: the lint level is defined here
|
|
--> $DIR/same_functions_in_if_condition.rs:2:9
|
|
|
|
|
LL | #![deny(clippy::same_functions_in_if_condition)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: this `if` has the same function call as a previous `if`
|
|
--> $DIR/same_functions_in_if_condition.rs:44:15
|
|
|
|
|
LL | } else if fn_arg(a) {
|
|
| ^^^^^^^^^
|
|
|
|
|
note: same as this
|
|
--> $DIR/same_functions_in_if_condition.rs:43: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:49:15
|
|
|
|
|
LL | } else if obj.method() {
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
note: same as this
|
|
--> $DIR/same_functions_in_if_condition.rs:48:8
|
|
|
|
|
LL | if obj.method() {
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: this `if` has the same function call as a previous `if`
|
|
--> $DIR/same_functions_in_if_condition.rs:54:15
|
|
|
|
|
LL | } else if obj.method_arg(a) {
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: same as this
|
|
--> $DIR/same_functions_in_if_condition.rs:53: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:60:15
|
|
|
|
|
LL | } else if v.pop().is_none() {
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: same as this
|
|
--> $DIR/same_functions_in_if_condition.rs:59: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:65:15
|
|
|
|
|
LL | } else if v.len() == 42 {
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
note: same as this
|
|
--> $DIR/same_functions_in_if_condition.rs:64:8
|
|
|
|
|
LL | if v.len() == 42 {
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 6 previous errors
|
|
|