Skip to content

Commit 727bfb0

Browse files
committed
Return mistakenly removed instrument annotations
1 parent 4d78cf1 commit 727bfb0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • compiler/rustc_hir_analysis/src/hir_ty_lowering

compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2797,6 +2797,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
27972797
}
27982798

27992799
/// Literals are eagerly converted to a constant, everything else becomes `Unevaluated`.
2800+
#[instrument(skip(self), level = "debug")]
28002801
fn lower_const_arg_anon(&self, anon: &AnonConst) -> Const<'tcx> {
28012802
let tcx = self.tcx();
28022803

@@ -2827,6 +2828,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
28272828
tcx.at(span).lit_to_const(input)
28282829
}
28292830

2831+
#[instrument(skip(self), level = "debug")]
28302832
fn try_lower_anon_const_lit(
28312833
&self,
28322834
ty: Ty<'tcx>,
@@ -2949,6 +2951,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
29492951
}
29502952

29512953
/// Lower a type from the HIR to our internal notion of a type.
2954+
#[instrument(level = "debug", skip(self), ret)]
29522955
pub fn lower_ty(&self, hir_ty: &hir::Ty<'tcx>) -> Ty<'tcx> {
29532956
let tcx = self.tcx();
29542957

0 commit comments

Comments
 (0)