mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 18:15:01 +00:00
76 lines
2.0 KiB
Plaintext
76 lines
2.0 KiB
Plaintext
error: this `if` has the same function call as a previous `if`
|
|
--> $DIR/same_functions_in_if_condition.rs:29: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:28:8
|
|
|
|
|
LL | if function() {
|
|
| ^^^^^^^^^^
|
|
|
|
error: this `if` has the same function call as a previous `if`
|
|
--> $DIR/same_functions_in_if_condition.rs:34:15
|
|
|
|
|
LL | } else if fn_arg(a) {
|
|
| ^^^^^^^^^
|
|
|
|
|
note: same as this
|
|
--> $DIR/same_functions_in_if_condition.rs:33: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:39:15
|
|
|
|
|
LL | } else if obj.method() {
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
note: same as this
|
|
--> $DIR/same_functions_in_if_condition.rs:38:8
|
|
|
|
|
LL | if obj.method() {
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: this `if` has the same function call as a previous `if`
|
|
--> $DIR/same_functions_in_if_condition.rs:44:15
|
|
|
|
|
LL | } else if obj.method_arg(a) {
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: same as this
|
|
--> $DIR/same_functions_in_if_condition.rs:43: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:51:15
|
|
|
|
|
LL | } else if v.pop() == None {
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
note: same as this
|
|
--> $DIR/same_functions_in_if_condition.rs:49:8
|
|
|
|
|
LL | if v.pop() == None {
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: this `if` has the same function call as a previous `if`
|
|
--> $DIR/same_functions_in_if_condition.rs:56:15
|
|
|
|
|
LL | } else if v.len() == 42 {
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
note: same as this
|
|
--> $DIR/same_functions_in_if_condition.rs:54:8
|
|
|
|
|
LL | if v.len() == 42 {
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 6 previous errors
|
|
|