diff options
| author | Ding Xiang Fei <dingxiangfei2009@protonmail.ch> | 2022-07-05 23:31:18 +0200 |
|---|---|---|
| committer | Ding Xiang Fei <dingxiangfei2009@protonmail.ch> | 2022-07-11 23:20:37 +0200 |
| commit | 1cd30e7b32df602cf455d34ff8042079b8e082a3 (patch) | |
| tree | 8e1718add47e77e23a2895a900767a5e44f38f25 /compiler/rustc_mir_build/src/thir/cx | |
| parent | 6c529ded8674b89c46052da92399227c3b764c6a (diff) | |
| download | rust-1cd30e7b32df602cf455d34ff8042079b8e082a3.tar.gz rust-1cd30e7b32df602cf455d34ff8042079b8e082a3.zip | |
move else block into the `Local` struct
Diffstat (limited to 'compiler/rustc_mir_build/src/thir/cx')
| -rw-r--r-- | compiler/rustc_mir_build/src/thir/cx/block.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_build/src/thir/cx/block.rs b/compiler/rustc_mir_build/src/thir/cx/block.rs index d77d74e25f6..4079470c255 100644 --- a/compiler/rustc_mir_build/src/thir/cx/block.rs +++ b/compiler/rustc_mir_build/src/thir/cx/block.rs @@ -66,7 +66,7 @@ impl<'tcx> Cx<'tcx> { // ignore for purposes of the MIR None } - hir::StmtKind::Local(local, els) => { + hir::StmtKind::Local(local) => { let remainder_scope = region::Scope { id: block_id, data: region::ScopeData::Remainder(region::FirstStatementIndex::new( @@ -74,7 +74,7 @@ impl<'tcx> Cx<'tcx> { )), }; - let else_block = els.map(|els| self.mirror_block(els)); + let else_block = local.els.map(|els| self.mirror_block(els)); let mut pattern = self.pattern_from_hir(local.pat); debug!(?pattern); |
