mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Bless 32bit MIR opt tests
This commit is contained in:
@@ -106,7 +106,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
||||
ExprKind::Let { expr, ref pat } => {
|
||||
let scope = this.local_scope();
|
||||
let (true_block, false_block) = this.in_if_then_scope(scope, |this| {
|
||||
this.lower_let_else(block, &this.thir[expr], pat, scope, expr_span)
|
||||
this.lower_let_expr(block, &this.thir[expr], pat, scope, expr_span)
|
||||
});
|
||||
|
||||
let join_block = this.cfg.start_new_block();
|
||||
|
||||
@@ -60,7 +60,7 @@ pub(crate) fn then_else_break(
|
||||
})
|
||||
}
|
||||
ExprKind::Let { expr, ref pat } => {
|
||||
this.lower_let_else(block, &this.thir[expr], pat, break_scope, variable_scope_span)
|
||||
this.lower_let_expr(block, &this.thir[expr], pat, break_scope, variable_scope_span)
|
||||
}
|
||||
_ => {
|
||||
let mutability = Mutability::Mut;
|
||||
@@ -1754,7 +1754,7 @@ fn calculate_fake_borrows<'b>(
|
||||
// Pat binding - used for `let` and function parameters as well.
|
||||
|
||||
impl<'a, 'tcx> Builder<'a, 'tcx> {
|
||||
crate fn lower_let_else(
|
||||
crate fn lower_let_expr(
|
||||
&mut self,
|
||||
mut block: BasicBlock,
|
||||
expr: &Expr<'tcx>,
|
||||
@@ -1962,7 +1962,7 @@ fn bind_and_guard_matched_candidate<'pat>(
|
||||
Guard::IfLet(ref pat, scrutinee) => {
|
||||
let s = &this.thir[scrutinee];
|
||||
guard_span = s.span;
|
||||
this.lower_let_else(block, s, pat, match_scope, arm_span)
|
||||
this.lower_let_expr(block, s, pat, match_scope, arm_span)
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user