Skip to content

Commit bce9c6d

Browse files
How expensive is if_cause
1 parent f06e5c1 commit bce9c6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_hir_typeck/src/_match.rs

Lines changed: 4 additions & 0 deletions
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)