Skip to content

Commit aa2e738

Browse files
committed
Auto merge of rust-lang#139594 - compiler-errors:if-cause, r=<try>
[experiment] How expensive is `if_cause`? TODO r? `@ghost`
2 parents 48f89e7 + bce9c6d commit aa2e738

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_hir_typeck/src/_match.rs

+4
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,10 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
420420
else_ty: Ty<'tcx>,
421421
tail_defines_return_position_impl_trait: Option<LocalDefId>,
422422
) -> ObligationCause<'tcx> {
423+
if true {
424+
return self.misc(span);
425+
}
426+
423427
let mut outer_span = if self.tcx.sess.source_map().is_multiline(span) {
424428
// The `if`/`else` isn't in one line in the output, include some context to make it
425429
// clear it is an if/else expression:

0 commit comments

Comments
 (0)