Skip to content

Commit 58d39a9

Browse files
committed
save-analysis: Fix ICE when processing associated constant
1 parent e630580 commit 58d39a9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: src/librustc_save_analysis/dump_visitor.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,12 @@ impl<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> DumpVisitor<'l, 'tcx, 'll, O> {
463463
}
464464

465465
// walk type and init value
466-
self.visit_ty(typ);
467-
if let Some(expr) = expr {
468-
self.visit_expr(expr);
469-
}
466+
self.nest_tables(id, |v| {
467+
v.visit_ty(typ);
468+
if let Some(expr) = expr {
469+
v.visit_expr(expr);
470+
}
471+
});
470472
}
471473

472474
// FIXME tuple structs should generate tuple-specific data.

0 commit comments

Comments
 (0)