Fix #[track_caller] location for function chains
This commit is contained in:
parent
f3fc94f239
commit
f52162f75c
10
src/base.rs
10
src/base.rs
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user