1
Fork 0

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).
This commit is contained in:
bors 2021-02-11 13:44:00 +00:00
commit 26e5bcd220
7 changed files with 7 additions and 7 deletions

View file

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

View file

@ -812,7 +812,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
} }
} }
#[instrument(skip(self))] #[instrument(level = "debug", skip(self))]
fn visit_terminator(&mut self, terminator: &Terminator<'tcx>, location: Location) { fn visit_terminator(&mut self, terminator: &Terminator<'tcx>, location: Location) {
use rustc_target::spec::abi::Abi::RustIntrinsic; use rustc_target::spec::abi::Abi::RustIntrinsic;

View file

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

View file

@ -97,7 +97,7 @@ impl<'cx, 'tcx> TypeFolder<'tcx> for QueryNormalizer<'cx, 'tcx> {
self.infcx.tcx self.infcx.tcx
} }
#[instrument(skip(self))] #[instrument(level = "debug", skip(self))]
fn fold_ty(&mut self, ty: Ty<'tcx>) -> Ty<'tcx> { fn fold_ty(&mut self, ty: Ty<'tcx>) -> Ty<'tcx> {
if !ty.has_projections() { if !ty.has_projections() {
return ty; return ty;

View file

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

View file

@ -150,7 +150,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
/// ///
/// Outside of this module, `check_pat_top` should always be used. /// Outside of this module, `check_pat_top` should always be used.
/// Conversely, inside this module, `check_pat_top` should never be used. /// Conversely, inside this module, `check_pat_top` should never be used.
#[instrument(skip(self, ti))] #[instrument(level = "debug", skip(self, ti))]
fn check_pat( fn check_pat(
&self, &self,
pat: &'tcx Pat<'tcx>, pat: &'tcx Pat<'tcx>,

View file

@ -207,7 +207,7 @@ impl<'a, 'tcx> ConstraintContext<'a, 'tcx> {
} }
} }
#[instrument(skip(self, current))] #[instrument(level = "debug", skip(self, current))]
fn add_constraints_from_invariant_substs( fn add_constraints_from_invariant_substs(
&mut self, &mut self,
current: &CurrentItem, current: &CurrentItem,