Prefer trace level instrumentation for the new noisy instrument attri… · rust-lang/rust@82c73af (original) (raw)

File tree

4 files changed

lines changed

4 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -464,7 +464,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
464 464 }
465 465 }
466 466
467 -#[instrument(level = "debug", skip(self))]
467 +#[instrument(level = "trace", skip(self))]
468 468 fn load_operand(&mut self, place: PlaceRef<'tcx, &'ll Value>) -> OperandRef<'tcx, &'ll Value> {
469 469 assert_eq!(place.llextra.is_some(), place.layout.is_unsized());
470 470
Original file line number Diff line number Diff line change
@@ -421,7 +421,7 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
421 421 }
422 422
423 423 impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
424 -#[instrument(level = "debug", skip(self, bx))]
424 +#[instrument(level = "trace", skip(self, bx))]
425 425 pub fn codegen_place(
426 426 &mut self,
427 427 bx: &mut Bx,
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ use rustc_middle::ty::{self, adjustment::PointerCast, Instance, Ty, TyCtxt};
14 14 use rustc_span::source_map::{Span, DUMMY_SP};
15 15
16 16 impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
17 -#[instrument(level = "debug", skip(self, bx))]
17 +#[instrument(level = "trace", skip(self, bx))]
18 18 pub fn codegen_rvalue(
19 19 &mut self,
20 20 mut bx: Bx,
Original file line number Diff line number Diff line change
@@ -32,14 +32,14 @@ impl<'tcx> Cx<'tcx> {
32 32 exprs.iter().map(|expr
33 33 }
34 34
35 -#[instrument(level = "debug", skip(self, hir_expr))]
35 +#[instrument(level = "trace", skip(self, hir_expr))]
36 36 pub(super) fn mirror_expr_inner(&mut self, hir_expr: &'tcx hir::Expr<'tcx>) -> ExprId {
37 37 let temp_lifetime =
38 38 self.rvalue_scopes.temporary_scope(self.region_scope_tree, hir_expr.hir_id.local_id);
39 39 let expr_scope =
40 40 region::Scope { id: hir_expr.hir_id.local_id, data: region::ScopeData::Node };
41 41
42 -debug!(?hir_expr.hir_id, ?hir_expr.span);
42 +trace!(?hir_expr.hir_id, ?hir_expr.span);
43 43
44 44 let mut expr = self.make_mirror_unadjusted(hir_expr);
45 45