We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[track_caller]
1 parent a43cf7f commit 1158a84Copy full SHA for 1158a84
src/librustc_mir/transform/inline.rs
@@ -234,6 +234,11 @@ impl Inliner<'tcx> {
234
235
let codegen_fn_attrs = tcx.codegen_fn_attrs(callsite.callee);
236
237
+ if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::TRACK_CALLER) {
238
+ debug!("`#[track_caller]` present - not inlining");
239
+ return false;
240
+ }
241
+
242
let hinted = match codegen_fn_attrs.inline {
243
// Just treat inline(always) as a hint for now,
244
// there are cases that prevent inlining that we
0 commit comments