Skip to content

Commit da4cf03

Browse files
committed
Visit fn_span of calls in MIR Visitor
1 parent 6995670 commit da4cf03

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: compiler/rustc_middle/src/mir/visit.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,9 @@ macro_rules! make_mir_visitor {
527527
target: _,
528528
unwind: _,
529529
call_source: _,
530-
fn_span: _
530+
fn_span,
531531
} => {
532+
self.visit_span($(& $mutability)? *fn_span);
532533
self.visit_operand(func, location);
533534
for arg in args {
534535
self.visit_operand(&$($mutability)? arg.node, location);
@@ -543,8 +544,9 @@ macro_rules! make_mir_visitor {
543544
TerminatorKind::TailCall {
544545
func,
545546
args,
546-
fn_span: _,
547+
fn_span,
547548
} => {
549+
self.visit_span($(& $mutability)? *fn_span);
548550
self.visit_operand(func, location);
549551
for arg in args {
550552
self.visit_operand(&$($mutability)? arg.node, location);

0 commit comments

Comments
 (0)