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_save_analysis/src | |
| parent | 6c529ded8674b89c46052da92399227c3b764c6a (diff) | |
| download | rust-1cd30e7b32df602cf455d34ff8042079b8e082a3.tar.gz rust-1cd30e7b32df602cf455d34ff8042079b8e082a3.zip | |
move else block into the `Local` struct
Diffstat (limited to 'compiler/rustc_save_analysis/src')
| -rw-r--r-- | compiler/rustc_save_analysis/src/dump_visitor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_save_analysis/src/dump_visitor.rs b/compiler/rustc_save_analysis/src/dump_visitor.rs index 2aaacad4ba4..a4175f4c5f3 100644 --- a/compiler/rustc_save_analysis/src/dump_visitor.rs +++ b/compiler/rustc_save_analysis/src/dump_visitor.rs @@ -1414,14 +1414,14 @@ impl<'tcx> Visitor<'tcx> for DumpVisitor<'tcx> { intravisit::walk_stmt(self, s) } - fn visit_local(&mut self, l: &'tcx hir::Local<'tcx>, e: Option<&'tcx hir::Block<'tcx>>) { + fn visit_local(&mut self, l: &'tcx hir::Local<'tcx>) { self.process_macro_use(l.span); self.process_var_decl(&l.pat); // Just walk the initializer, the else branch and type (don't want to walk the pattern again). walk_list!(self, visit_ty, &l.ty); walk_list!(self, visit_expr, &l.init); - walk_list!(self, visit_block, e); + walk_list!(self, visit_block, l.els); } fn visit_foreign_item(&mut self, item: &'tcx hir::ForeignItem<'tcx>) { |
