Skip to content

Commit 59457ab

Browse files
committed
Reduce log level used by tracing instrumentation from info to debug
1 parent 9a9477f commit 59457ab

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
@@ -789,7 +789,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
789789
}
790790
}
791791

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

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
@@ -466,7 +466,7 @@ pub(super) fn check_opaque<'tcx>(
466466

467467
/// Checks that an opaque type does not use `Self` or `T::Foo` projections that would result
468468
/// in "inheriting lifetimes".
469-
#[instrument(skip(tcx, span))]
469+
#[instrument(level = "debug", skip(tcx, span))]
470470
pub(super) fn check_opaque_for_inheriting_lifetimes(
471471
tcx: TyCtxt<'tcx>,
472472
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)