Visit fn_span of calls in MIR Visitor
This commit is contained in:
parent
699567058f
commit
da4cf03f82
1 changed files with 4 additions and 2 deletions
|
@ -527,8 +527,9 @@ macro_rules! make_mir_visitor {
|
|||
target: _,
|
||||
unwind: _,
|
||||
call_source: _,
|
||||
fn_span: _
|
||||
fn_span,
|
||||
} => {
|
||||
self.visit_span($(& $mutability)? *fn_span);
|
||||
self.visit_operand(func, location);
|
||||
for arg in args {
|
||||
self.visit_operand(&$($mutability)? arg.node, location);
|
||||
|
@ -543,8 +544,9 @@ macro_rules! make_mir_visitor {
|
|||
TerminatorKind::TailCall {
|
||||
func,
|
||||
args,
|
||||
fn_span: _,
|
||||
fn_span,
|
||||
} => {
|
||||
self.visit_span($(& $mutability)? *fn_span);
|
||||
self.visit_operand(func, location);
|
||||
for arg in args {
|
||||
self.visit_operand(&$($mutability)? arg.node, location);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue