Fix #[track_caller] location for function chains

This commit is contained in:
bjorn3 2022-04-30 16:21:43 +02:00
parent f3fc94f239
commit f52162f75c

View File

@ -393,12 +393,18 @@ fn codegen_fn_content(fx: &mut FunctionCx<'_, '_, '_>) {
func,
args,
destination,
fn_span: _,
fn_span,
cleanup: _,
from_hir_call: _,
} => {
fx.tcx.sess.time("codegen call", || {
crate::abi::codegen_terminator_call(fx, source_info, func, args, *destination)
crate::abi::codegen_terminator_call(
fx,
mir::SourceInfo { span: *fn_span, ..source_info },
func,
args,
*destination,
)
});
}
TerminatorKind::InlineAsm {