Skip to content

Commit 58aa903

Browse files
committed
bless clippy test
1 parent 298ca67 commit 58aa903

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

src/tools/clippy/tests/ui/if_same_then_else2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn if_same_then_else2() -> Result<&'static str, ()> {
9898
};
9999

100100
if true {
101-
//~^ ERROR: this `if` has identical blocks
101+
// FIXME: should emit "this `if` has identical blocks"
102102
Ok("foo")?;
103103
} else {
104104
Ok("foo")?;

src/tools/clippy/tests/ui/if_same_then_else2.stderr

+1-20
Original file line numberDiff line numberDiff line change
@@ -82,25 +82,6 @@ LL | | f32::NAN
8282
LL | | };
8383
| |_____^
8484

85-
error: this `if` has identical blocks
86-
--> $DIR/if_same_then_else2.rs:100:13
87-
|
88-
LL | if true {
89-
| _____________^
90-
LL | |
91-
LL | | Ok("foo")?;
92-
LL | | } else {
93-
| |_____^
94-
|
95-
note: same as this
96-
--> $DIR/if_same_then_else2.rs:103:12
97-
|
98-
LL | } else {
99-
| ____________^
100-
LL | | Ok("foo")?;
101-
LL | | }
102-
| |_____^
103-
10485
error: this `if` has identical blocks
10586
--> $DIR/if_same_then_else2.rs:124:20
10687
|
@@ -122,5 +103,5 @@ LL | | return Ok(&foo[0..]);
122103
LL | | }
123104
| |_____^
124105

125-
error: aborting due to 6 previous errors
106+
error: aborting due to 5 previous errors
126107

0 commit comments

Comments
 (0)