Skip to content

Commit 26e5bcd

Browse files
committed
Auto merge of #81350 - tmiasko:instrument-debug, r=lcnr
Reduce log level used by tracing instrumentation from info to debug Restore log level to debug to avoid make info log level overly verbose (the uses of instrument attribute modified there, were for the most part a replacement for `debug!`; one use was novel).
2 parents 2918062 + 59457ab commit 26e5bcd

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

compiler/rustc_mir/src/interpret/intern.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ pub enum InternKind {
292292
/// tracks where in the value we are and thus can show much better error messages.
293293
/// Any errors here would anyway be turned into `const_err` lints, whereas validation failures
294294
/// are hard errors.
295-
#[tracing::instrument(skip(ecx))]
295+
#[tracing::instrument(level = "debug", skip(ecx))]
296296
pub fn intern_const_alloc_recursive<M: CompileTimeMachine<'mir, 'tcx, const_eval::MemoryKind>>(
297297
ecx: &mut InterpCx<'mir, 'tcx, M>,
298298
intern_kind: InternKind,

compiler/rustc_mir/src/transform/check_consts/validation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
812812
}
813813
}
814814

815-
#[instrument(skip(self))]
815+
#[instrument(level = "debug", skip(self))]
816816
fn visit_terminator(&mut self, terminator: &Terminator<'tcx>, location: Location) {
817817
use rustc_target::spec::abi::Abi::RustIntrinsic;
818818

compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl<'a, 'tcx> PatCtxt<'a, 'tcx> {
1818
/// Converts an evaluated constant to a pattern (if possible).
1919
/// This means aggregate values (like structs and enums) are converted
2020
/// to a pattern that matches the value (as if you'd compared via structural equality).
21-
#[instrument(skip(self))]
21+
#[instrument(level = "debug", skip(self))]
2222
pub(super) fn const_to_pat(
2323
&self,
2424
cv: &'tcx ty::Const<'tcx>,

compiler/rustc_trait_selection/src/traits/query/normalize.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl<'cx, 'tcx> TypeFolder<'tcx> for QueryNormalizer<'cx, 'tcx> {
9797
self.infcx.tcx
9898
}
9999

100-
#[instrument(skip(self))]
100+
#[instrument(level = "debug", skip(self))]
101101
fn fold_ty(&mut self, ty: Ty<'tcx>) -> Ty<'tcx> {
102102
if !ty.has_projections() {
103103
return ty;

compiler/rustc_typeck/src/check/check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ pub(super) fn check_opaque<'tcx>(
477477

478478
/// Checks that an opaque type does not use `Self` or `T::Foo` projections that would result
479479
/// in "inheriting lifetimes".
480-
#[instrument(skip(tcx, span))]
480+
#[instrument(level = "debug", skip(tcx, span))]
481481
pub(super) fn check_opaque_for_inheriting_lifetimes(
482482
tcx: TyCtxt<'tcx>,
483483
def_id: LocalDefId,

compiler/rustc_typeck/src/check/pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
150150
///
151151
/// Outside of this module, `check_pat_top` should always be used.
152152
/// Conversely, inside this module, `check_pat_top` should never be used.
153-
#[instrument(skip(self, ti))]
153+
#[instrument(level = "debug", skip(self, ti))]
154154
fn check_pat(
155155
&self,
156156
pat: &'tcx Pat<'tcx>,

compiler/rustc_typeck/src/variance/constraints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ impl<'a, 'tcx> ConstraintContext<'a, 'tcx> {
207207
}
208208
}
209209

210-
#[instrument(skip(self, current))]
210+
#[instrument(level = "debug", skip(self, current))]
211211
fn add_constraints_from_invariant_substs(
212212
&mut self,
213213
current: &CurrentItem,

0 commit comments

Comments
 (0)