Rollup merge of #136722 - kornelski:visit-spans, r=chenyukang
Visit all debug info in MIR Visitor I've been experimenting with simplifying debug info in MIR inliner, and discovered that MIR Visitor doesn't reliably visit all spans. This PR adds the missing visitor calls.
This commit is contained in:
commit
d64bd3bedd
2 changed files with 8 additions and 3 deletions
|
@ -1257,6 +1257,8 @@ impl<'tcx> MutVisitor<'tcx> for Integrator<'_, 'tcx> {
|
|||
// replaced down below anyways).
|
||||
if !matches!(terminator.kind, TerminatorKind::Return) {
|
||||
self.super_terminator(terminator, loc);
|
||||
} else {
|
||||
self.visit_source_info(&mut terminator.source_info);
|
||||
}
|
||||
|
||||
match terminator.kind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue