mirror of https://github.com/rust-lang/rust.git
Prefer trace level instrumentation for the new noisy instrument attributes
This commit is contained in:
parent
c3aec3056e
commit
82c73af4a6
|
@ -464,7 +464,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(level = "debug", skip(self))]
|
#[instrument(level = "trace", skip(self))]
|
||||||
fn load_operand(&mut self, place: PlaceRef<'tcx, &'ll Value>) -> OperandRef<'tcx, &'ll Value> {
|
fn load_operand(&mut self, place: PlaceRef<'tcx, &'ll Value>) -> OperandRef<'tcx, &'ll Value> {
|
||||||
assert_eq!(place.llextra.is_some(), place.layout.is_unsized());
|
assert_eq!(place.llextra.is_some(), place.layout.is_unsized());
|
||||||
|
|
||||||
|
|
|
@ -421,7 +421,7 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
||||||
#[instrument(level = "debug", skip(self, bx))]
|
#[instrument(level = "trace", skip(self, bx))]
|
||||||
pub fn codegen_place(
|
pub fn codegen_place(
|
||||||
&mut self,
|
&mut self,
|
||||||
bx: &mut Bx,
|
bx: &mut Bx,
|
||||||
|
|
|
@ -14,7 +14,7 @@ use rustc_middle::ty::{self, adjustment::PointerCast, Instance, Ty, TyCtxt};
|
||||||
use rustc_span::source_map::{Span, DUMMY_SP};
|
use rustc_span::source_map::{Span, DUMMY_SP};
|
||||||
|
|
||||||
impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
||||||
#[instrument(level = "debug", skip(self, bx))]
|
#[instrument(level = "trace", skip(self, bx))]
|
||||||
pub fn codegen_rvalue(
|
pub fn codegen_rvalue(
|
||||||
&mut self,
|
&mut self,
|
||||||
mut bx: Bx,
|
mut bx: Bx,
|
||||||
|
|
|
@ -32,14 +32,14 @@ impl<'tcx> Cx<'tcx> {
|
||||||
exprs.iter().map(|expr| self.mirror_expr_inner(expr)).collect()
|
exprs.iter().map(|expr| self.mirror_expr_inner(expr)).collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(level = "debug", skip(self, hir_expr))]
|
#[instrument(level = "trace", skip(self, hir_expr))]
|
||||||
pub(super) fn mirror_expr_inner(&mut self, hir_expr: &'tcx hir::Expr<'tcx>) -> ExprId {
|
pub(super) fn mirror_expr_inner(&mut self, hir_expr: &'tcx hir::Expr<'tcx>) -> ExprId {
|
||||||
let temp_lifetime =
|
let temp_lifetime =
|
||||||
self.rvalue_scopes.temporary_scope(self.region_scope_tree, hir_expr.hir_id.local_id);
|
self.rvalue_scopes.temporary_scope(self.region_scope_tree, hir_expr.hir_id.local_id);
|
||||||
let expr_scope =
|
let expr_scope =
|
||||||
region::Scope { id: hir_expr.hir_id.local_id, data: region::ScopeData::Node };
|
region::Scope { id: hir_expr.hir_id.local_id, data: region::ScopeData::Node };
|
||||||
|
|
||||||
debug!(?hir_expr.hir_id, ?hir_expr.span);
|
trace!(?hir_expr.hir_id, ?hir_expr.span);
|
||||||
|
|
||||||
let mut expr = self.make_mirror_unadjusted(hir_expr);
|
let mut expr = self.make_mirror_unadjusted(hir_expr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue