Skip to content

Commit 04a32fc

Browse files
committed
!! (WIP) then_else_break_inner
1 parent 5c960d4 commit 04a32fc

File tree

1 file changed

+17
-0
lines changed
  • compiler/rustc_mir_build/src/build/matches

1 file changed

+17
-0
lines changed

compiler/rustc_mir_build/src/build/matches/mod.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,23 @@ use std::mem;
3434

3535
impl<'a, 'tcx> Builder<'a, 'tcx> {
3636
pub(crate) fn then_else_break(
37+
&mut self,
38+
block: BasicBlock,
39+
expr: &Expr<'tcx>,
40+
temp_scope_override: Option<region::Scope>,
41+
break_scope: region::Scope,
42+
variable_source_info: SourceInfo,
43+
) -> BlockAnd<()> {
44+
self.then_else_break_inner(
45+
block,
46+
expr,
47+
temp_scope_override,
48+
break_scope,
49+
variable_source_info,
50+
)
51+
}
52+
53+
fn then_else_break_inner(
3754
&mut self,
3855
mut block: BasicBlock,
3956
expr: &Expr<'tcx>,

0 commit comments

Comments
 (0)