Skip to content

Commit 2820dc8

Browse files
committed
Remove dead code
1 parent cdbccf5 commit 2820dc8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/librustc_typeck/check/coercion.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1183,11 +1183,7 @@ impl<'gcx, 'tcx, 'exprs, E> CoerceMany<'gcx, 'tcx, 'exprs, E>
11831183
(self.final_ty.unwrap_or(self.expected_ty), expression_ty)
11841184
};
11851185

1186-
let reason_label = if label_expression_as_expected {
1187-
"found because of this statement"
1188-
} else {
1189-
"expected because of this statement"
1190-
};
1186+
let reason_label = "expected because of this statement";
11911187
let mut db;
11921188
match cause.code {
11931189
ObligationCauseCode::ReturnNoExpression => {

0 commit comments

Comments
 (0)