Skip to content

Commit

Permalink
bless clippy test
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Aug 14, 2023
1 parent 298ca67 commit 58aa903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/tools/clippy/tests/ui/if_same_then_else2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fn if_same_then_else2() -> Result<&'static str, ()> {
};

if true {
//~^ ERROR: this `if` has identical blocks
// FIXME: should emit "this `if` has identical blocks"
Ok("foo")?;
} else {
Ok("foo")?;
Expand Down
21 changes: 1 addition & 20 deletions src/tools/clippy/tests/ui/if_same_then_else2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -82,25 +82,6 @@ LL | | f32::NAN
LL | | };
| |_____^

error: this `if` has identical blocks
--> $DIR/if_same_then_else2.rs:100:13
|
LL | if true {
| _____________^
LL | |
LL | | Ok("foo")?;
LL | | } else {
| |_____^
|
note: same as this
--> $DIR/if_same_then_else2.rs:103:12
|
LL | } else {
| ____________^
LL | | Ok("foo")?;
LL | | }
| |_____^

error: this `if` has identical blocks
--> $DIR/if_same_then_else2.rs:124:20
|
Expand All @@ -122,5 +103,5 @@ LL | | return Ok(&foo[0..]);
LL | | }
| |_____^

error: aborting due to 6 previous errors
error: aborting due to 5 previous errors

0 comments on commit 58aa903

Please sign in to comment.