Skip to content

Commit 6995670

Browse files
committed
Visit SourceInfo of all Terminators
1 parent 6573b62 commit 6995670

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: compiler/rustc_mir_transform/src/inline.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,8 @@ impl<'tcx> MutVisitor<'tcx> for Integrator<'_, 'tcx> {
12541254
// replaced down below anyways).
12551255
if !matches!(terminator.kind, TerminatorKind::Return) {
12561256
self.super_terminator(terminator, loc);
1257+
} else {
1258+
self.visit_source_info(&mut terminator.source_info);
12571259
}
12581260

12591261
match terminator.kind {

0 commit comments

Comments
 (0)