Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ba0ec68

Browse files
committed
Instrument deduced_param_attrs
1 parent d24d620 commit ba0ec68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_mir_transform/src/deduce_param_attrs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use rustc_middle::mir::visit::{NonMutatingUseContext, PlaceContext, Visitor};
1111
use rustc_middle::mir::{Body, Location, Operand, Place, RETURN_PLACE, Terminator, TerminatorKind};
1212
use rustc_middle::ty::{self, DeducedParamAttrs, Ty, TyCtxt};
1313
use rustc_session::config::OptLevel;
14+
use tracing::instrument;
1415

1516
/// A visitor that determines which arguments have been mutated. We can't use the mutability field
1617
/// on LocalDecl for this because it has no meaning post-optimization.
@@ -125,6 +126,7 @@ fn type_will_always_be_passed_directly(ty: Ty<'_>) -> bool {
125126
/// body of the function instead of just the signature. These can be useful for optimization
126127
/// purposes on a best-effort basis. We compute them here and store them into the crate metadata so
127128
/// dependent crates can use them.
129+
#[instrument(level = "debug", ret, skip(tcx))]
128130
pub(super) fn deduced_param_attrs<'tcx>(
129131
tcx: TyCtxt<'tcx>,
130132
def_id: LocalDefId,

0 commit comments

Comments
 (0)