mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Visit fn_span of calls in MIR Visitor
This commit is contained in:
@@ -527,8 +527,9 @@ fn super_terminator(&mut self,
|
||||
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 @@ fn super_terminator(&mut self,
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user