Visit SourceInfo of all Terminators
This commit is contained in:
parent
6573b6259b
commit
699567058f
1 changed files with 2 additions and 0 deletions
|
@ -1254,6 +1254,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