Skip to content

Commit 82c73af

Browse files
committed
Prefer trace level instrumentation for the new noisy instrument attributes
1 parent c3aec30 commit 82c73af

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: compiler/rustc_codegen_llvm/src/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
464464
}
465465
}
466466

467-
#[instrument(level = "debug", skip(self))]
467+
#[instrument(level = "trace", skip(self))]
468468
fn load_operand(&mut self, place: PlaceRef<'tcx, &'ll Value>) -> OperandRef<'tcx, &'ll Value> {
469469
assert_eq!(place.llextra.is_some(), place.layout.is_unsized());
470470

Diff for: compiler/rustc_codegen_ssa/src/mir/place.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
421421
}
422422

423423
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))]
425425
pub fn codegen_place(
426426
&mut self,
427427
bx: &mut Bx,

Diff for: compiler/rustc_codegen_ssa/src/mir/rvalue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use rustc_middle::ty::{self, adjustment::PointerCast, Instance, Ty, TyCtxt};
1414
use rustc_span::source_map::{Span, DUMMY_SP};
1515

1616
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))]
1818
pub fn codegen_rvalue(
1919
&mut self,
2020
mut bx: Bx,

Diff for: compiler/rustc_mir_build/src/thir/cx/expr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ impl<'tcx> Cx<'tcx> {
3232
exprs.iter().map(|expr| self.mirror_expr_inner(expr)).collect()
3333
}
3434

35-
#[instrument(level = "debug", skip(self, hir_expr))]
35+
#[instrument(level = "trace", skip(self, hir_expr))]
3636
pub(super) fn mirror_expr_inner(&mut self, hir_expr: &'tcx hir::Expr<'tcx>) -> ExprId {
3737
let temp_lifetime =
3838
self.rvalue_scopes.temporary_scope(self.region_scope_tree, hir_expr.hir_id.local_id);
3939
let expr_scope =
4040
region::Scope { id: hir_expr.hir_id.local_id, data: region::ScopeData::Node };
4141

42-
debug!(?hir_expr.hir_id, ?hir_expr.span);
42+
trace!(?hir_expr.hir_id, ?hir_expr.span);
4343

4444
let mut expr = self.make_mirror_unadjusted(hir_expr);
4545

0 commit comments

Comments
 (0)