diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-07-11 23:39:53 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-07-12 21:00:13 +0400 |
| commit | df4fee9841e21ac84335d214af163a1b652ec9a2 (patch) | |
| tree | 1c4b627415d86b8c27061a26a97c6151f3812092 /compiler/rustc_save_analysis/src | |
| parent | 3ebb8529560b9b80f38467bac86d686f5dae4934 (diff) | |
| download | rust-df4fee9841e21ac84335d214af163a1b652ec9a2.tar.gz rust-df4fee9841e21ac84335d214af163a1b652ec9a2.zip | |
Add an indirection for closures in `hir::ExprKind`
This helps bring `hir::Expr` size down, `Closure` was the biggest variant, especially after `for<>` additions.
Diffstat (limited to 'compiler/rustc_save_analysis/src')
| -rw-r--r-- | compiler/rustc_save_analysis/src/dump_visitor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_save_analysis/src/dump_visitor.rs b/compiler/rustc_save_analysis/src/dump_visitor.rs index 6eb2f2d929d..e3798efc963 100644 --- a/compiler/rustc_save_analysis/src/dump_visitor.rs +++ b/compiler/rustc_save_analysis/src/dump_visitor.rs @@ -1360,7 +1360,7 @@ impl<'tcx> Visitor<'tcx> for DumpVisitor<'tcx> { } } } - hir::ExprKind::Closure { ref fn_decl, body, .. } => { + hir::ExprKind::Closure(&hir::Closure { ref fn_decl, body, .. }) => { let id = format!("${}", ex.hir_id); // walk arg and return types |
