diff options
| author | Igor Matuszewski <Xanewok@gmail.com> | 2019-05-08 23:45:19 +0200 |
|---|---|---|
| committer | Igor Matuszewski <Xanewok@gmail.com> | 2019-05-14 00:07:07 +0200 |
| commit | 3c8db22e9c564af5f93b06e3f293ba6e64652e1e (patch) | |
| tree | ee53b03a57fa1bc66b0308a36f304545251a8e58 | |
| parent | 1486e1fb4bfa72f5a752c18ebf210de4194e04d0 (diff) | |
| download | rust-3c8db22e9c564af5f93b06e3f293ba6e64652e1e.tar.gz rust-3c8db22e9c564af5f93b06e3f293ba6e64652e1e.zip | |
save-analysis: Fix ICE when processing associated constant
| -rw-r--r-- | src/librustc_save_analysis/dump_visitor.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_save_analysis/dump_visitor.rs b/src/librustc_save_analysis/dump_visitor.rs index 7d400252594..3e86eff5498 100644 --- a/src/librustc_save_analysis/dump_visitor.rs +++ b/src/librustc_save_analysis/dump_visitor.rs @@ -463,10 +463,12 @@ impl<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> DumpVisitor<'l, 'tcx, 'll, O> { } // walk type and init value - self.visit_ty(typ); - if let Some(expr) = expr { - self.visit_expr(expr); - } + self.nest_tables(id, |v| { + v.visit_ty(typ); + if let Some(expr) = expr { + v.visit_expr(expr); + } + }); } // FIXME tuple structs should generate tuple-specific data. |
